
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%); min-height: 100vh; padding: 15px; }
.container { max-width: 800px; margin: 5px auto; background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; }
.header { background: linear-gradient(135deg, #1565c0, #1976d2); color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.header h2 { font-size: 18px; }
.btn-back { background: rgba(255,255,255,0.2); color: white; border: 2px solid white; padding: 7px 13px; border-radius: 6px; font-weight: 600; font-size: 13px; text-decoration: none; }
.content { padding: 15px 20px; }

.info-box { background: #e3f2fd; border-left: 4px solid #1565c0; border-radius: 6px; padding: 12px 14px; margin-bottom: 16px; font-size: 13px; color: #0d47a1; }
.info-box strong { display: block; margin-bottom: 4px; font-size: 14px; }

.progress-bar { background: #e0e0e0; border-radius: 10px; height: 8px; margin-bottom: 6px; overflow: hidden; }
.progress-fill { background: linear-gradient(90deg, #1565c0, #42a5f5); height: 100%; border-radius: 10px; transition: width 0.4s; }
.progress-label { font-size: 12px; color: #666; margin-bottom: 16px; }

.search-box { position: relative; margin-bottom: 14px; }
.search-box input { width: 100%; padding: 10px 14px 10px 36px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 14px; outline: none; transition: border 0.2s; }
.search-box input:focus { border-color: #1565c0; }
.search-box::before { content: '🔍'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; }

.filter-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-btn { padding: 5px 14px; border-radius: 20px; border: 2px solid #ddd; background: white; font-size: 12px; font-weight: 600; cursor: pointer; color: #555; }
.filter-btn.active { background: #1565c0; color: white; border-color: #1565c0; }

.buyer-list { display: flex; flex-direction: column; gap: 8px; }

.buyer-card { border: 2px solid #e0e0e0; border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; transition: border 0.2s; }
.buyer-card.has-phone { border-color: #a5d6a7; }
.buyer-card.no-phone { border-color: #ffcc80; background: #fff8e1; }
.buyer-card.saved { border-color: #1565c0; background: #e3f2fd; }

.buyer-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.buyer-icon.ok { background: #e8f5e9; }
.buyer-icon.pending { background: #fff3e0; }

.buyer-info { flex: 1; min-width: 0; }
.buyer-name { font-size: 13px; font-weight: 700; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buyer-email { font-size: 11px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.phone-group { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.phone-input { padding: 7px 10px; border: 2px solid #ddd; border-radius: 7px; font-size: 13px; width: 140px; outline: none; transition: border 0.2s; font-family: 'Segoe UI', monospace; }
.phone-input:focus { border-color: #1565c0; }
.phone-input.filled { border-color: #66bb6a; background: #f1f8e9; }

.btn-save-phone { background: #1565c0; color: white; border: none; padding: 8px 12px; border-radius: 7px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-save-phone:hover { background: #0d47a1; }
.btn-save-phone:disabled { background: #bbb; cursor: default; }
.btn-save-phone.saved { background: #2e7d32; }

.save-all-row { text-align: center; margin-top: 16px; padding-top: 16px; border-top: 2px solid #f0f0f0; }
.btn-save-all { background: linear-gradient(135deg, #1565c0, #1976d2); color: white; border: none; padding: 12px 28px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-save-all:hover { opacity: 0.9; }

.toast { position: fixed; top: 20px; right: 20px; background: #1565c0; color: white; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 13px; z-index: 9999; display: none; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.toast.success { background: #2e7d32; }
.toast.error { background: #c62828; }

@media (max-width: 600px) {
    .buyer-card { flex-wrap: wrap; }
    .phone-group { width: 100%; }
    .phone-input { flex: 1; width: auto; }
}
    .version { font-size: 10px; opacity: 0.5; text-align: right; padding: 4px 20px 8px; }

