* { margin:0; padding:0; box-sizing:border-box; }
:root {
    --primary: #e91e63; --primary-dark: #c2185b; --primary-light: #f06292;
    --accent: #ff4081; --bg: #fafafa; --white: #fff; --text: #212121;
    --text-light: #757575; --border: #eee; --gold: #ffc107;
    --shadow: 0 2px 12px rgba(0,0,0,0.08); --radius: 16px; --radius-sm: 10px;
    --transition: all 0.25s ease;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }
.auth-wrap { min-height: 100vh; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-box { background: rgba(255,255,255,0.97); border-radius: 24px; padding: 32px 24px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.auth-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 28px; color: var(--white); }
.auth-title { font-size: 22px; margin-bottom: 4px; }
.auth-sub { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.auth-error { color: #e74c3c; font-size: 13px; margin-bottom: 10px; display: none; }
.inp-grp { display: flex; align-items: center; background: #f5f5f5; border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; border: 2px solid transparent; transition: border-color 0.2s; }
.inp-grp:focus-within { border-color: var(--primary); }
.inp-grp i { color: var(--text-light); font-size: 16px; width: 20px; text-align: center; }
.inp-grp input, .inp-grp select { flex: 1; border: none; background: none; font-size: 15px; color: var(--text); outline: none; padding: 0 10px; font-family: inherit; }
.btn-auth { width: 100%; padding: 15px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--white); border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 10px; transition: var(--transition); box-shadow: 0 4px 16px rgba(233,30,99,0.25); }
.btn-auth:hover { transform: translateY(-1px); }
.btn-auth:active { transform: scale(0.97); }
.auth-alt { font-size: 13px; color: var(--text-light); margin-top: 14px; }
.auth-alt a { color: var(--primary); text-decoration: none; font-weight: 600; }
.header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--white); position: sticky; top: 0; z-index: 100; }
.header-left { display: flex; align-items: center; gap: 4px; }
.header-left strong { font-size: 17px; }
.header-right { display: flex; gap: 6px; align-items: center; }
.btn-icon { background: rgba(255,255,255,0.15); border: none; color: var(--white); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.fab { position: fixed; bottom: 80px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--white); border: none; font-size: 24px; cursor: pointer; box-shadow: 0 4px 20px rgba(233,30,99,0.4); z-index: 50; display: flex; align-items: center; justify-content: center; }
.feed-item { background: var(--white); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow); }
.feed-header { display: flex; align-items: center; padding: 12px 16px; gap: 10px; }
.feed-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 16px; flex-shrink: 0; }
.feed-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.feed-user { font-size: 14px; font-weight: 600; }
.feed-time { font-size: 11px; color: var(--text-light); }
.feed-image { width: 100%; max-height: 400px; object-fit: cover; display: block; }
.feed-text { padding: 12px 16px 16px; font-size: 14px; line-height: 1.5; }
.profiles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 16px; }
.profile-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.pc-photo { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--border); }
.pc-photo-place { width: 100%; height: 180px; background: #fce4ec; display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--primary-light); }
.pc-body { padding: 10px 12px; }
.pc-name { font-size: 15px; font-weight: 600; }
.pc-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; display: flex; gap: 8px; }
.match-item { display: flex; align-items: center; padding: 12px 16px; background: var(--white); border-bottom: 1px solid var(--border); cursor: pointer; }
.match-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 18px; margin-right: 12px; flex-shrink: 0; }
.match-body { flex: 1; min-width: 0; }
.match-name { font-size: 15px; font-weight: 500; }
.match-preview { font-size: 13px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-time { font-size: 11px; color: var(--text-light); flex-shrink: 0; }
.my-profile { background: var(--white); padding: 24px; text-align: center; margin-bottom: 12px; }
.my-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; background: var(--border); }
.my-avatar-place { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 40px; color: var(--white); font-weight: 700; }
.my-name { font-size: 20px; font-weight: 700; }
.my-detail { font-size: 14px; color: var(--text-light); margin-top: 4px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: var(--transition); font-family: inherit; }
.form-group textarea { resize: vertical; }
.img-preview { display: flex; gap: 8px; margin-top: 8px; }
.img-preview img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; }
.menu-list { background: var(--white); }
.menu-item { display: flex; align-items: center; width: 100%; padding: 16px; border: none; background: none; cursor: pointer; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border); text-align: left; }
.menu-item i:first-child { width: 30px; font-size: 18px; color: var(--primary); }
.menu-item span { 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: flex-end; justify-content: center; padding: 0; }
.modal.active { display: flex; }
.modal-content { background: var(--white); border-radius: 24px 24px 0 0; width: 100%; max-width: 500px; max-height: 85vh; overflow: hidden; box-shadow: 0 -4px 30px rgba(0,0,0,0.15); animation: slideUp 0.3s ease; }
@keyframes slideUp { 0% { transform: translateY(100%); } 100% { transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 16px; }
.modal-close { background: none; border: none; font-size: 26px; color: var(--text-light); cursor: pointer; }
.modal-body { padding: 16px 20px 24px; overflow-y: auto; max-height: calc(85vh - 60px); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state i { font-size: 48px; margin-bottom: 12px; opacity: 0.3; }
.empty-state h3 { font-size: 18px; color: var(--text); margin-bottom: 6px; }
.pm-photos img { width: 100%; max-height: 250px; object-fit: cover; border-radius: var(--radius-sm); }
.tab-nav { display: flex; background: var(--white); box-shadow: 0 -1px 4px rgba(0,0,0,0.05); position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; border-top: 1px solid var(--border); }
.tab-btn { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 4px 4px; border: none; background: none; cursor: pointer; color: var(--text-light); font-size: 10px; transition: var(--transition); }
.tab-btn i { font-size: 22px; margin-bottom: 1px; }
.tab-btn span { font-size: 9px; font-weight: 500; }
.tab-btn.active { color: var(--primary); }
.tab-btn.active i { transform: translateY(-2px); }
.tab-badge { position:absolute; top:2px; right:8px; background:#e91e63; color:white; font-size:9px; min-width:16px; height:16px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-weight:700; padding:0 4px; }
.tab-btn { position:relative; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.main-content { padding-bottom: 60px; }
.chat-view { position: fixed; top: 52px; left: 0; right: 0; bottom: 0; background: #e5ddd5; display: flex; flex-direction: column; z-index: 150; }
.messages-container { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; }
.message { max-width: 80%; padding: 8px 14px; margin-bottom: 4px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.4; word-wrap: break-word; }
.message.sent { align-self: flex-end; background: #dcf8c6; border-bottom-right-radius: 4px; }
.message.received { align-self: flex-start; background: var(--white); border-bottom-left-radius: 4px; }
.message .msg-time { font-size: 10px; color: var(--text-light); text-align: right; margin-top: 2px; }
.message .msg-img { max-width: 200px; border-radius: 8px; margin-top: 4px; display: block; }
.message .msg-video-link { color: #1976d2; text-decoration: underline; cursor: pointer; display: block; margin-top: 4px; font-size: 13px; }
.message .msg-status { font-size: 10px; color: var(--gold); margin-left: 4px; }
.chat-toolbar { display: flex; gap: 8px; padding: 6px 12px; background: var(--white); border-top: 1px solid var(--border); }
.tool-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: #f0f2f5; cursor: pointer; font-size: 16px; color: var(--text); display: flex; align-items: center; justify-content: center; }
.tool-btn:hover { background: #e0e0e0; }
.message-input-bar { display: flex; align-items: center; padding: 8px 12px; background: var(--white); border-top: 1px solid var(--border); }
.message-input-bar input { flex: 1; padding: 10px 14px; border: none; border-radius: 24px; background: #f0f2f5; font-size: 14px; outline: none; }
.btn-send { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--white); border: none; cursor: pointer; font-size: 16px; margin-left: 8px; display: flex; align-items: center; justify-content: center; }
.payment-gate { background: var(--white); border-top: 1px solid var(--border); padding: 16px; }
.payment-gate-inner { text-align: center; max-width: 350px; margin: 0 auto; }
.credit-option { padding: 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: none; cursor: pointer; font-size: 13px; font-weight: 600; transition: var(--transition); }
.credit-option:hover { border-color: var(--primary); background: #fce4ec; }
.credit-option.selected { border-color: var(--primary); background: #fce4ec; }
.btn-sm { padding: 8px 14px; border: none; border-radius: 6px; font-size: 12px; cursor: pointer; font-weight: 600; background: rgba(255,255,255,0.2); color: var(--white); }
.btn-sm:hover { opacity: 0.85; }
.pay-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.pay-item .pay-info strong { display: block; }
.pay-item .pay-info small { color: var(--text-light); font-size: 11px; }
.pay-item .pay-status { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.pay-item .pay-status.pending { background: #fff3e0; color: #e65100; }
.pay-item .pay-status.approved { background: #e8f5e9; color: #2e7d32; }
@media (max-width:400px) { .profiles-grid { gap: 8px; padding: 8px 12px; } .pc-photo { height: 140px; } }
