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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #2c3e50 0%, #3b4371 50%, #4a5568 100%);
  min-height: 100vh;
  color: #333;
}

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

/* Header */
header {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(45deg, #4fd1c7, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #4fd1c7;
  transform: translateY(-2px);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: linear-gradient(45deg, #4fd1c7, #06b6d4);
  transition: all 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
  box-shadow: 0 4px 15px rgba(45, 138, 127, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 138, 127, 0.6);
  background: linear-gradient(45deg, #1e5b54, #065f73);
}

.btn-secondary {
  background: transparent;
  color: #4fd1c7;
  border: 2px solid #2d8a7f;
}

.btn-secondary:hover {
  background: #2d8a7f;
  color: #e2e8f0;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  color: #e2e8f0;
  text-decoration: none;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #4fd1c7;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #4fd1c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #2d8a7f;
}

.breadcrumb span {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* Profile Layout */
.profile-container {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin: 2rem 0;
}

/* Profile Header */
.profile-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  box-shadow: 0 8px 25px rgba(45, 138, 127, 0.3);
}

.profile-info {
  color: #e2e8f0;
}

.profile-name {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: white;
}

.profile-location {
  color: #9ca3af;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.profile-joined {
  color: #9ca3af;
  font-size: 0.9rem;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.action-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  display: inline-block;
}

.btn-games {
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
}

.btn-games:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 138, 127, 0.4);
}

.btn-messages {
  background: transparent;
  color: #4fd1c7;
  border: 2px solid #4fd1c7;
}

.btn-messages:hover {
  background: #4fd1c7;
  color: white;
}

.unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: rgba(45, 55, 72, 0.5);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #4fd1c7;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #cbd5e0;
  font-size: 1rem;
  font-weight: 500;
}

/* Form Sections */
.about-section {
  background: rgba(45, 55, 72, 0.5);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.about-section h3 {
  color: #4fd1c7;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input {
  padding: 1rem;
  border: 2px solid rgba(79, 209, 199, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #e2e8f0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #4fd1c7;
  box-shadow: 0 0 0 3px rgba(79, 209, 199, 0.1);
}

.form-group input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(74, 85, 104, 0.3);
}

.form-group input::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

.form-note {
  color: #9ca3af;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.save-btn {
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
  border: none;
  padding: 1rem 2rem;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 138, 127, 0.4);
}

.success-message {
  background: linear-gradient(45deg, #27ae60, #2ecc71);
  color: white;
}

.error-message {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    flex-wrap: wrap;
    position: relative;
    padding: 1.2rem 0;
  }

  .logo {
    font-size: 1.5rem;
  }

  .profile-container {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .profile-header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    justify-self: center;
  }

  .profile-name {
    font-size: 2rem;
  }

  .profile-actions {
    flex-direction: row;
    justify-content: center;
  }

  .stats-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .profile-container {
    padding: 1rem;
  }

  .profile-name {
    font-size: 1.8rem;
  }

  .stats-section {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }

  .about-section {
    padding: 1.5rem;
  }

  .profile-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .action-btn {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
}