* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f7fa;
  min-height: 100vh;
}

/* Navigation */
.navbar {
  background: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-size: 18px;
  font-weight: 700;
  color: #667eea;
  text-decoration: none;
}

.navbar-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.navbar-links a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.navbar-links a.active {
  color: #667eea;
}

.navbar-links .phone {
  color: #999;
  font-size: 13px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-card .label {
  color: #999;
  margin-bottom: 10px;
  font-size: 14px;
}

.stat-card .value {
  font-size: 32px;
  font-weight: bold;
  margin: 0;
}

.stat-card .value.blue { color: #667eea; }
.stat-card .value.green { color: #28a745; }
.stat-card .value.yellow { color: #ffc107; }

/* Panel */
.panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.panel-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h3 {
  margin: 0;
  font-size: 16px;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: #f8f9fa;
  font-weight: 600;
  color: #666;
  font-size: 13px;
}

td {
  font-size: 14px;
}

tr:hover {
  background: #f8f9fa;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-pending { background: #fff3cd; color: #856404; }
.badge-claimed { background: #d4edda; color: #155724; }
.badge-contacted { background: #cce5ff; color: #004085; }
.badge-converted { background: #d1ecf1; color: #0c5460; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5a6fd6;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-outline {
  background: #f0f0f0;
  color: #666;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #666;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

/* Auth page */
.auth-container {
  max-width: 400px;
  margin: 60px auto;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-title {
  text-align: center;
  margin-bottom: 5px;
  color: #667eea;
  font-size: 20px;
}

.auth-subtitle {
  text-align: center;
  color: #999;
  margin-bottom: 30px;
  font-size: 14px;
}

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

.auth-footer a {
  color: #667eea;
  text-decoration: none;
}

/* Pagination */
.pagination {
  padding: 15px;
  text-align: right;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #999;
}

.pagination button {
  margin-left: 5px;
}

/* Profile page */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: #667eea;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
}

.profile-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-label {
  color: #999;
  margin-bottom: 5px;
  font-size: 13px;
}

.info-value {
  font-weight: 500;
  margin: 0;
}

/* Video tooltip */
.video-tip {
  cursor: pointer;
  color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    padding: 10px 15px;
  }

  .container {
    padding: 15px 10px;
  }
}
