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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

header {
  text-align: center;
  color: white;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.subtitle {
  opacity: 0.9;
  font-size: 1.1rem;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.card h2 {
  color: #333;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

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

button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

button:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-premium {
  background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status {
  color: #666;
  font-size: 0.9rem;
}

.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-free {
  background: #e0e0e0;
  color: #666;
}

.badge-premium {
  background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
  color: white;
}

.hidden {
  display: none !important;
}

/* Profile */
.profile-header {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 20px;
}

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

.profile-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.profile-info p {
  color: #666;
  margin-bottom: 12px;
}

.stats {
  display: flex;
  gap: 20px;
}

.stats span {
  font-size: 0.9rem;
  color: #666;
}

.stats strong {
  color: #333;
}

/* Tabs */
.tabs, .changes-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.tab {
  padding: 10px 20px;
  background: #f0f0f0;
  border-radius: 8px;
  font-size: 0.9rem;
}

.tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.tab-content {
  min-height: 100px;
}

/* User List */
.user-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background 0.2s;
}

.user-item:hover {
  background: #e9ecef;
}

.user-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-item .user-info {
  flex: 1;
  min-width: 0;
}

.user-item .username {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-item .fullname {
  font-size: 0.8rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-item .badge-new {
  background: #4caf50;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
}

.user-item .badge-unfollowed {
  background: #f44336;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Premium Section */
.premium-section p {
  color: #666;
  margin-bottom: 16px;
}

.premium-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.subscription-options {
  margin-bottom: 20px;
}

.plan-card {
  position: relative;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.plan-card h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 8px;
}

.plan-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 8px;
}

.plan-card .desc {
  font-size: 0.9rem;
  color: #666;
}

/* Subscriptions */
#subscriptionsList {
  margin-bottom: 16px;
}

.subscription-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 8px;
}

.subscription-item button {
  padding: 6px 12px;
  font-size: 0.8rem;
  background: #f44336;
}

.btn-danger {
  background: #f44336 !important;
}

.btn-danger:hover {
  background: #d32f2f !important;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* Customer Center */
#customerCenterInfo {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

#customerCenterInfo p {
  margin-bottom: 8px;
  color: #333;
}

#customerCenterInfo span {
  font-weight: 600;
  color: #667eea;
}

/* Messages */
.message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.message-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.message-error {
  background: #ffebee;
  color: #c62828;
}

/* Loading */
.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* Responsive */
@media (max-width: 600px) {
  .input-group {
    flex-direction: column;
  }
  
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .stats {
    flex-direction: column;
    gap: 8px;
  }
  
  .premium-actions {
    flex-direction: column;
  }
}
