.profile__hero-section {
  padding: 120px 0 30px 0;
}

/* Profile Navigation Menu */
.profile__navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 30px 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  overflow-x: auto;
}


.profile__nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
}

.profile__nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  text-decoration: none;
}

.profile__nav-item.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.profile__nav-item.active:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.profile__nav-item i {
  font-size: 13px;
  flex-shrink: 0;
}

.profile__card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  padding: 20px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-secondary);
}

/* Avatar Section */
.profile__avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile__avatar-container {
  position: relative;
  display: inline-block;
}

.profile__avatar img {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid var(--border-color);
  transition: all 0.3s ease;
}

.profile__avatar-upload {
  position: absolute;
  bottom: 8px;
  right: 8px;
  cursor: pointer;
}

.avatar-upload-overlay {
  width: 40px;
  height: 40px;
  background: rgba(108, 92, 231, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.avatar-upload-overlay:hover {
  background: rgba(108, 92, 231, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

/* Profile Main Info */
.profile__main-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile__header {
  flex-shrink: 0;
}

.profile__name {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 700;
  margin-top: -12px;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile__meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.profile__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile__meta i { 
  color: var(--primary-color);
  font-size: 13px;
}

.profile__actions {
  display: flex;
  gap: 12px;
}

.profile__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-xxl);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.profile__btn.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.profile__btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.profile__btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.profile__btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Profile About (inline with header) */
.profile__about-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 6px 0 12px 0;
}


/* Stats Section */
.profile__stats {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: stretch;
  grid-column: 1 / -1;
}

.profile__stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.profile__stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile__stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.profile__stat-icon.rating {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #000;
}

.profile__stat-icon.servers {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
}

.profile__stat-icon.achievements {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.profile__stat-content {
  flex: 1;
  text-align: left;
}

.profile__stat-value {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.profile__stat-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.profile__stat-stars {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}

.profile__stat-stars i {
  color: #ffd700;
  font-size: 12px;
}

.profile__stat-stars .rating-text {
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Content Section */
.profile__content-section { 
  padding: 20px 0 40px; 
}

.profile__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.profile__panel {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  padding: 24px;
  transition: all 0.3s ease;
}

.profile__panel:hover {
  border-color: rgba(108, 92, 231, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.profile__section-title {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile__section-title i { 
  color: var(--primary-color);
  font-size: 16px;
}

/* Personal Info */
.profile__rows {
  display: grid;
  gap: 12px;
}

.profile__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile__rows .profile__row:last-child { 
  border-bottom: 0; 
}

.profile__row span { 
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.profile__row strong { 
  color: var(--text-primary); 
  font-weight: 600; 
  letter-spacing: 0.2px;
}

/* Activity Section */
.profile__activity {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity__item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.activity__item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(108, 92, 231, 0.2);
  transform: translateX(4px);
}

.activity__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: 14px;
  flex-shrink: 0;
}

.activity__content {
  flex: 1;
}

.activity__text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.activity__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.activity__rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 4px;
}

.activity__rating i {
  color: #ffd700;
  font-size: 12px;
}

.activity__rating .rating-text {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.activity__time {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

/* Back Button */
.profile__back-section { 
  text-align: center; 
  margin-top: 32px; 
}

.profile__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-xxl);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.profile__back-btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
  text-decoration: none;
  color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .profile__card { 
    grid-template-columns: 140px 1fr;
    gap: 20px;
  }
  
  .profile__stats { 
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;
  }
  
  .profile__stat-card {
    flex: 1;
    min-width: 0;
    padding: 12px;
  }
  
  .profile__avatar img { 
    width: 140px; 
    height: 140px; 
  }
  
}

@media (max-width: 900px) {
  .profile__card { 
    grid-template-columns: 120px 1fr;
    padding: 20px;
    gap: 16px;
  }
  
  .profile__avatar img { 
    width: 120px; 
    height: 120px; 
  }
  
  .profile__name {
    font-size: 24px;
  }
  
  .profile__main-info {
    gap: 16px;
  }
  
  
  .profile__stats {
    gap: 8px;
  }
  
  .profile__stat-card {
    padding: 10px;
  }
  
  .profile__stat-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .profile__stat-value {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .profile__navigation {
    margin: 15px 0 25px 0;
    padding: 6px;
    gap: 6px;
  }
  
  .profile__nav-item {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .profile__nav-item i {
    font-size: 12px;
  }
  
  .profile__grid { 
    grid-template-columns: 1fr; 
  }
  
  .profile__meta { 
    flex-direction: column; 
    gap: 8px; 
  }
  
  .profile__actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .profile__btn {
    justify-content: center;
  }
  
  .profile__stats {
    flex-direction: column;
  }
  
}

@media (max-width: 600px) {
  .profile__navigation {
    margin: 12px 0 20px 0;
    padding: 4px;
    gap: 4px;
  }
  
  .profile__nav-item {
    padding: 8px 10px;
    font-size: 12px;
    gap: 6px;
  }
  
  .profile__nav-item i {
    font-size: 11px;
  }
  
  .profile__card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  
  .profile__main-info {
    order: 2;
    text-align: left;
  }
  
  .profile__stats {
    order: 3;
    grid-column: 1;
  }
  
  .profile__avatar img {
    width: 100px;
    height: 100px;
  }
  
  .avatar-upload-overlay {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
}

/*=================================================================================
РАЗДЕЛ "МОИ СЕРВЕРА"
=================================================================================*/

.profile__servers-section {
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-secondary);
}

.profile__servers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.profile__servers-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile__servers-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.profile__servers-stat:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.profile__servers-stat i {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.profile__servers-stat .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.profile__servers-stat .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.profile__servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.profile__server-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.profile__server-card:hover {
  border-color: rgba(108, 92, 231, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.profile__server-card.premium {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.1);
}

.profile__server-card.premium:hover {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

.server__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.server__info {
  display: flex;
  gap: 15px;
  align-items: center;
  flex: 1;
}

.server__avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.server__details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.server__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.server__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.server__type {
  display: inline-block;
  background: rgba(108, 92, 231, 0.2);
  color: var(--primary-color);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.server__status {
  display: inline-block;
  background: rgba(0, 255, 127, 0.2);
  color: #00ff7f;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.server__actions {
  display: flex;
  gap: 8px;
}

.server__action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
}

.server__action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.server__action-btn.edit:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.server__action-btn.stats:hover {
  border-color: #10b981;
  color: #10b981;
}

.server__action-btn.settings:hover {
  border-color: #6b7280;
  color: #6b7280;
}

.server__stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.server__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.server__stat i {
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 2px;
}

.server__stat span {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.server__stat small {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.server__meta-info {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.server__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.server__meta-item i {
  color: var(--primary-color);
  font-size: 11px;
}


/* Placeholder для других вкладок */
.profile__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}

.placeholder__content {
  text-align: center;
  padding: 40px;
  max-width: 400px;
}

.placeholder__content i {
  font-size: 64px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.placeholder__content h3 {
  color: var(--text-primary);
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 600;
}

.placeholder__content p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Responsive для серверов */
@media (max-width: 1200px) {
  .profile__servers-grid {
    grid-template-columns: 1fr;
  }
  
  .profile__servers-stats {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .profile__servers-section {
    padding: 20px;
  }
  
  .profile__servers-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .profile__servers-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .server__stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
  }
  
  .server__card-header {
    flex-direction: column;
    gap: 15px;
  }
  
  .server__actions {
    align-self: flex-start;
  }
  
  .server__meta-info {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .profile__servers-section {
    padding: 15px;
  }
  
  .server__info {
    gap: 12px;
  }
  
  .server__avatar {
    width: 50px;
    height: 50px;
  }
  
  .server__name {
    font-size: 16px;
  }
  
  .server__stats-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }
  
  .server__stat {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .server__stat span {
    font-size: 14px;
  }
  
  .server__stat small {
    font-size: 10px;
  }
}

/*=================================================================================
РАЗДЕЛ "МОИ ОТЗЫВЫ"
=================================================================================*/

.profile__reviews-section {
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-secondary);
}

.profile__reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.profile__reviews-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile__reviews-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.profile__reviews-stat:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.profile__reviews-stat i {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.profile__reviews-stat .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.profile__reviews-stat .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.profile__reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile__review-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
}

.profile__review-card:hover {
  border-color: rgba(108, 92, 231, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.profile__review-card.featured {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.1);
}

.profile__review-card.featured:hover {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.review__featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #000;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.review__featured-badge i {
  font-size: 10px;
}

.review__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.review__server-info {
  display: flex;
  gap: 15px;
  align-items: center;
  flex: 1;
}

.review__server-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.review__server-details {
  flex: 1;
}

.review__server-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.review__rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.review__rating i {
  font-size: 14px;
}

.review__rating i.filled {
  color: #ffd700;
}

.review__rating i.empty {
  color: var(--text-muted);
}

.review__rating-number {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.review__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.review__date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.review__date i {
  font-size: 11px;
  color: var(--primary-color);
}

.review__actions {
  display: flex;
  gap: 8px;
}

.review__action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
}

.review__action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.review__action-btn.edit:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.review__action-btn.delete:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.review__content {
  margin-bottom: 20px;
}

.review__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.review__text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.review__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.review__stats {
  display: flex;
  gap: 16px;
}

.review__stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.review__stat:hover {
  background: rgba(255, 255, 255, 0.08);
}

.review__stat i {
  font-size: 12px;
}

.review__stat.positive i {
  color: #10b981;
}

.review__stat.negative i {
  color: #ef4444;
}

.review__stat.replies i {
  color: var(--primary-color);
}

.review__stat span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 4px;
}

.review__stat small {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.review__server-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.review__server-link:hover {
  background: rgba(108, 92, 231, 0.1);
  border-color: var(--primary-color);
  text-decoration: none;
  color: var(--primary-color);
}

.review__server-link i {
  font-size: 11px;
}

/* Responsive для отзывов */
@media (max-width: 1200px) {
  .profile__reviews-stats {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .profile__reviews-section {
    padding: 20px;
  }
  
  .profile__reviews-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .profile__reviews-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .review__header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .review__meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .review__footer {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .review__stats {
    justify-content: center;
  }
  
  .review__server-link {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .profile__reviews-section {
    padding: 15px;
  }
  
  .profile__review-card {
    padding: 20px;
  }
  
  .review__server-info {
    gap: 12px;
  }
  
  .review__server-avatar {
    width: 40px;
    height: 40px;
  }
  
  .review__server-name {
    font-size: 14px;
  }
  
  .review__title {
    font-size: 15px;
  }
  
  .review__text {
    font-size: 13px;
  }
  
  .review__stats {
    gap: 12px;
    justify-content: space-between;
  }
  
  .review__stat {
    padding: 6px 8px;
  }
  
  .review__stat span {
    font-size: 13px;
  }
  
  .review__stat small {
    font-size: 10px;
  }
}

/*=================================================================================
РАЗДЕЛ "МОИ ДОСТИЖЕНИЯ"
=================================================================================*/

.profile__achievements-section {
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-secondary);
}

.profile__achievements-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.profile__achievements-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile__achievements-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.profile__achievements-stat:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.profile__achievements-stat i {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.profile__achievements-stat .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.profile__achievements-stat .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.profile__achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.profile__achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-secondary);
  display: flex;
  flex-direction: column;
  min-height: fit-content;
}

.profile__achievement-card.unlocked {
  background: rgba(108, 92, 231, 0.03);
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.15);
}

.profile__achievement-card.locked {
  opacity: 0.7;
  background: rgba(75, 85, 99, 0.02);
  border-color: rgba(75, 85, 99, 0.2);
}

.profile__achievement-card:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 92, 231, 0.4);
  box-shadow: 0 12px 30px rgba(108, 92, 231, 0.2);
}

.profile__achievement-card.locked:hover {
  transform: translateY(-1px);
  border-color: rgba(75, 85, 99, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Специальный фон для легендарных достижений */
.profile__achievement-card.rarity-legendary.unlocked {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(108, 92, 231, 0.03));
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.profile__achievement-card.rarity-legendary.unlocked:hover {
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.25);
}

.achievement__card-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  position: relative;
}

.achievement__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

.profile__achievement-card.locked .achievement__icon {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.15);
  opacity: 0.8;
}

.achievement__header-content {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.achievement__header-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.achievement__rarity-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.achievement__rarity-badge.rarity-common {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

.achievement__rarity-badge.rarity-rare {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.achievement__rarity-badge.rarity-epic {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.achievement__rarity-badge.rarity-legendary {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.achievement__status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
}

.achievement__status-badge.unlocked {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.achievement__status-badge.locked {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.achievement__status-badge i {
  font-size: 10px;
}

.achievement__content {
  margin-bottom: 12px;
}

.achievement__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.achievement__description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.achievement__progress-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
  min-width: 60px;
  text-align: right;
}

.achievement__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: auto;
}

.achievement__points {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 600;
}

.achievement__points i {
  font-size: 12px;
  color: #ffd700;
}

.achievement__unlock-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
}

.achievement__unlock-date i {
  font-size: 10px;
  color: var(--primary-color);
}

.profile__achievements-summary {
  padding: 25px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.achievements-summary-card h3 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.achievements-summary-card h3 i {
  color: var(--primary-color);
  font-size: 16px;
}

.summary-stats {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.summary-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.summary-label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.summary-value {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.summary-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 200px;
}

.summary-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.summary-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.summary-percentage {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  min-width: 40px;
  text-align: right;
}

/* Responsive для достижений */
@media (max-width: 1200px) {
  .profile__achievements-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .profile__achievements-stats {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .profile__achievements-section {
    padding: 20px;
  }
  
  .profile__achievements-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .profile__achievements-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .profile__achievements-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .summary-stat {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .summary-progress {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .profile__achievements-section {
    padding: 15px;
  }
  
  .profile__achievement-card {
    padding: 15px;
  }
  
  .achievement__icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .achievement__name {
    font-size: 15px;
  }
  
  .achievement__description {
    font-size: 12px;
  }
  
  .achievement__footer {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  
  .achievements-summary-card {
    padding: 20px;
  }
}

/*=================================================================================
РАЗДЕЛ "МОИ ИЗБРАННЫЕ"
=================================================================================*/

.profile__favorites-section {
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-secondary);
}

.profile__favorites-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.profile__favorites-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile__favorites-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.profile__favorites-stat:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.profile__favorites-stat i {
  font-size: 24px;
  color: #ef4444;
  margin-bottom: 5px;
}

.profile__favorites-stat .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.profile__favorites-stat .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.profile__favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.profile__favorite-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-secondary);
  position: relative;
  overflow: hidden;
}

.profile__favorite-card:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.15);
}

.favorite__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.favorite__server-info {
  display: flex;
  gap: 15px;
  flex: 1;
}

.favorite__server-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorite__server-details {
  flex: 1;
  min-width: 0;
}

.favorite__server-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.favorite__server-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.favorite__server-type {
  padding: 4px 8px;
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.favorite__server-status {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.favorite__server-status.status-open {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.favorite__server-status.status-soon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.favorite__server-status.status-closed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.favorite__server-status.status-test {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.favorite__server-owner {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.favorite__server-owner i {
  color: #ffd700;
  font-size: 11px;
}

.favorite__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.favorite__action-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.favorite__action-btn.remove {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.favorite__action-btn.remove:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.05);
}

.favorite__action-btn.visit {
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(108, 92, 231, 0.2);
}

.favorite__action-btn.visit:hover {
  background: rgba(108, 92, 231, 0.2);
  transform: scale(1.05);
}

.favorite__description {
  margin-bottom: 18px;
}

.favorite__description p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.favorite__stats-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.favorite__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
}

.favorite__stat i {
  font-size: 16px;
  color: var(--primary-color);
  margin-bottom: 2px;
}

.favorite__stat span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.favorite__stat small {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.favorite__meta-info {
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.favorite__added-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.favorite__added-date i {
  color: #ef4444;
  font-size: 11px;
}

/* Responsive для избранных */
@media (max-width: 1200px) {
  .profile__favorites-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  
  .profile__favorites-stats {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .profile__favorites-section {
    padding: 20px;
  }
  
  .profile__favorites-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .profile__favorites-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .profile__favorites-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .favorite__stats-row {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .favorite__stat {
    min-width: calc(50% - 7.5px);
  }
}

@media (max-width: 480px) {
  .profile__favorites-section {
    padding: 15px;
  }
  
  .profile__favorite-card {
    padding: 20px;
  }
  
  .favorite__server-info {
    gap: 12px;
  }
  
  .favorite__server-avatar {
    width: 50px;
    height: 50px;
  }
  
  .favorite__server-name {
    font-size: 16px;
  }
  
  .favorite__description p {
    font-size: 13px;
  }
  
  .favorite__stats-row {
    padding: 12px;
  }
  
  .favorite__stat {
    min-width: calc(50% - 7.5px);
  }
}

/* ==================== СЕКЦИЯ ТИКЕТОВ ==================== */

.profile__tickets-section {
  background: var(--card-background);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  margin-top: 30px;
}

.profile__tickets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.profile__tickets-filter {
  margin-bottom: 20px;
}

.profile__tickets-categories {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.ticket-category-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-secondary);
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

.ticket-category-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.ticket-category-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #a5b4fc;
}

.ticket-category-btn i {
  font-size: 12px;
}

.ticket-category-btn span:first-of-type {
  font-weight: 500;
}

.category-count {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.ticket-category-btn.active .category-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.profile__tickets-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.profile__tickets-stat {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  flex: 1;
  min-width: 150px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile__tickets-stat i {
  font-size: 2rem;
  color: #6366f1;
  margin-bottom: 10px;
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  margin: 0 auto 10px auto;
}

.profile__tickets-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile__ticket-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.profile__ticket-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.profile__ticket-card.status-open {
  border-left: 4px solid #10b981;
}

.profile__ticket-card.status-processing {
  border-left: 4px solid #f59e0b;
}

.profile__ticket-card.status-waiting {
  border-left: 4px solid #6366f1;
}

.profile__ticket-card.status-solved {
  border-left: 4px solid #6b7280;
}

.ticket__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket__header-left {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex: 1;
}

.ticket__id-badge {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.ticket__main-info {
  flex: 1;
}

.ticket__subject {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.ticket__meta-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ticket__category {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ticket__priority {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ticket__priority.priority-high {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.ticket__priority.priority-medium {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.ticket__priority.priority-low {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.ticket__header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.ticket__status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.ticket__status-badge.status-open {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.ticket__status-badge.status-processing {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.ticket__status-badge.status-waiting {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.ticket__status-badge.status-solved {
  background: rgba(107, 114, 128, 0.2);
  color: #d1d5db;
}

.ticket__status-badge i {
  font-size: 8px;
}

.ticket__actions {
  display: flex;
  gap: 8px;
}

.ticket__action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ticket__action-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #a5b4fc;
}

.ticket__action-btn.view:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #86efac;
}

.ticket__action-btn.reply:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #93c5fd;
}

.ticket__action-btn.close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
}

.ticket__description {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket__description p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.ticket__footer {
  padding: 20px 25px;
}

.ticket__info-row {
  display: flex;
  gap: 25px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.ticket__info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.ticket__info-item i {
  color: #6366f1;
  font-size: 12px;
}

.ticket__footer-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket__stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.ticket__stat i {
  color: #6366f1;
  font-size: 12px;
}

.ticket__stat small {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 5px;
}

.ticket__admin-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.ticket__admin-info i {
  color: #f59e0b;
  font-size: 12px;
}

.ticket__admin-info strong {
  color: var(--text-primary);
}

/* Responsive для тикетов */
@media (max-width: 1200px) {
  .profile__tickets-stats {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .profile__tickets-section {
    padding: 20px;
  }
  
  .profile__tickets-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .profile__tickets-filter {
    margin-bottom: 20px;
  }
  
  .profile__tickets-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .ticket__card-header {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }
  
  .ticket__header-left {
    gap: 12px;
  }
  
  .ticket__header-right {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .ticket__subject {
    font-size: 16px;
  }
  
  .ticket__meta-tags {
    gap: 8px;
  }
  
  .ticket__description {
    padding: 15px 20px;
  }
  
  .ticket__footer {
    padding: 15px 20px;
  }
  
  .ticket__info-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .ticket__footer-stats {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .profile__tickets-section {
    padding: 15px;
  }
  
  .profile__tickets-filter {
    margin-bottom: 15px;
  }
  
  .ticket__card-header {
    padding: 15px;
  }
  
  .ticket__header-left {
    gap: 10px;
  }
  
  .ticket__id-badge {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .ticket__subject {
    font-size: 15px;
  }
  
  .ticket__description {
    padding: 12px 15px;
  }
  
  .ticket__footer {
    padding: 12px 15px;
  }
  
  .ticket__actions {
    gap: 6px;
  }
  
  .ticket__action-btn {
    width: 32px;
    height: 32px;
  }
}

/* Responsive для категорий тикетов */
@media (max-width: 768px) {
  .profile__tickets-categories {
    flex-direction: column;
    gap: 10px;
  }
  
  .ticket-category-btn {
    min-width: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .profile__tickets-filter {
    margin-bottom: 15px;
  }
  
  .profile__tickets-categories {
    margin-bottom: 20px;
  }
  
  .ticket-category-btn {
    padding: 10px 15px;
    gap: 8px;
  }
  
  .ticket-category-btn span:first-of-type {
    font-size: 14px;
  }
}


/* ==================== МОДАЛЬНОЕ ОКНО ТИКЕТА ==================== */

.ticket-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ticket-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.ticket-modal-content {
  position: relative;
  background: var(--card-background);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.ticket-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.ticket-modal-header-left {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex: 1;
}

.ticket-modal-id {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 10px 15px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
}

.ticket-modal-info {
  flex: 1;
}

.ticket-modal-info h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.ticket-modal-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-category {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-priority {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-priority.priority-high {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.modal-priority.priority-medium {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.modal-priority.priority-low {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.modal-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.modal-status.status-open {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.modal-status.status-processing {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.modal-status.status-waiting {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.modal-status.status-solved {
  background: rgba(107, 114, 128, 0.2);
  color: #d1d5db;
}

.modal-status i {
  font-size: 8px;
}

.ticket-modal-header-right {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.ticket-modal-actions {
  display: flex;
  gap: 10px;
}

.ticket-modal-action-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.ticket-modal-action-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

.ticket-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ticket-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
}

.ticket-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ticket-chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ticket-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.chat-message.user {
  flex-direction: row-reverse;
}

.chat-message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.chat-message.user .chat-message-avatar {
  background: linear-gradient(135deg, #10b981, #059669);
}

.chat-message-content {
  flex: 1;
  max-width: 70%;
  min-width: 0;
  overflow: hidden;
}

.chat-message.user .chat-message-content {
  text-align: right;
}

.chat-message-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.chat-message.user .chat-message-header {
  justify-content: flex-end;
}

.chat-message-author {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.chat-message-time {
  color: var(--text-muted);
  font-size: 12px;
}

.chat-message-text {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--text-secondary);
  line-height: 1.3;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 400px;
  width: auto;
  display: inline-block;
  text-align: left;
  box-sizing: border-box;
}

.chat-message.user .chat-message-text {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.ticket-chat-input {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.chat-input-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.chat-input-container textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 15px;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-height: 120px;
  min-height: 45px;
}

.chat-input-container textarea::placeholder {
  color: var(--text-muted);
}

.chat-input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-attach-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.chat-attach-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.chat-send-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.chat-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive для модального окна */
@media (max-width: 768px) {
  .ticket-modal {
    padding: 10px;
  }
  
  .ticket-modal-content {
    max-height: 95vh;
  }
  
  .ticket-modal-header {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }
  
  .ticket-modal-header-left {
    width: 100%;
  }
  
  .ticket-modal-header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .ticket-modal-info h3 {
    font-size: 18px;
  }
  
  .ticket-modal-meta {
    gap: 8px;
  }
  
  .ticket-chat-messages {
    padding: 15px;
  }
  
  .chat-message-content {
    max-width: 85%;
    min-width: 0;
  }
  
  .ticket-chat-input {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .ticket-modal {
    padding: 5px;
  }
  
  .ticket-modal-header {
    padding: 15px;
  }
  
  .ticket-modal-id {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .ticket-modal-info h3 {
    font-size: 16px;
  }
  
  .ticket-modal-meta {
    flex-direction: column;
    gap: 6px;
  }
  
  .ticket-modal-action-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .ticket-modal-action-btn span {
    display: none;
  }
  
  .ticket-chat-messages {
    padding: 12px;
    gap: 12px;
  }
  
  .chat-message-avatar {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }
  
  .chat-message-content {
    max-width: 90%;
    min-width: 0;
  }
  
  .chat-message-text {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .ticket-chat-input {
    padding: 12px;
  }
  
  .chat-input-container textarea {
    padding: 12px;
    font-size: 13px;
  }
  
  .chat-input-actions {
    padding: 10px 12px;
  }
  
  .chat-send-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
}

/* ==================== МОДАЛЬНОЕ ОКНО СОЗДАНИЯ ТИКЕТА ==================== */

.create-ticket-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.create-ticket-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.create-ticket-modal-content {
  position: relative;
  background: var(--card-background);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.create-ticket-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.create-ticket-modal-title {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.create-ticket-modal-title i {
  color: #10b981;
  font-size: 18px;
}

.create-ticket-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.create-ticket-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
}

.create-ticket-modal-body {
  flex: 1;
  padding: 25px;
  overflow-y: auto;
}

.create-ticket-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.form-row .form-group.half {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-label {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label i {
  color: #6366f1;
  font-size: 12px;
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
}

.form-select option {
  background: var(--card-background);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.form-hint {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 5px;
}

.file-upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.file-upload-area:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.file-upload-content i {
  font-size: 24px;
  color: #6366f1;
}

.file-upload-content span {
  color: var(--text-primary);
  font-weight: 500;
}

.file-upload-content small {
  color: var(--text-muted);
  font-size: 12px;
}

.files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.file-info i {
  color: #6366f1;
  font-size: 14px;
}

.file-name {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
}

.file-size {
  color: var(--text-muted);
  font-size: 12px;
}

.file-remove {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-remove:hover {
  background: rgba(239, 68, 68, 0.3);
}

.create-ticket-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 20px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.create-ticket-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid;
}

.create-ticket-btn.cancel {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
}

.create-ticket-btn.cancel:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
}

.create-ticket-btn.submit {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
  color: white;
}

.create-ticket-btn.submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.create-ticket-btn.submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive для модального окна создания тикета */
@media (max-width: 768px) {
  .create-ticket-modal {
    padding: 10px;
  }
  
  .create-ticket-modal-content {
    max-height: 95vh;
  }
  
  .create-ticket-modal-header {
    padding: 20px;
  }
  
  .create-ticket-modal-title {
    font-size: 18px;
  }
  
  .create-ticket-modal-body {
    padding: 20px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .file-upload-area {
    padding: 20px;
  }
  
  .create-ticket-modal-footer {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
  }
  
  .create-ticket-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .create-ticket-modal {
    padding: 5px;
  }
  
  .create-ticket-modal-header {
    padding: 15px;
  }
  
  .create-ticket-modal-title {
    font-size: 16px;
  }
  
  .create-ticket-modal-body {
    padding: 15px;
  }
  
  .create-ticket-form {
    gap: 15px;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .file-upload-area {
    padding: 15px;
  }
  
  .file-upload-content i {
    font-size: 20px;
  }
  
  .file-upload-content span {
    font-size: 14px;
  }
}

/*=================================================================================
РАЗДЕЛ "ПРЕМИУМ"
=================================================================================*/

.profile__premium-section {
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-secondary);
  position: relative;
  overflow: hidden;
}

/* Убрана верхняя полоска */

.profile__premium-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.premium-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-xxl);
  font-weight: 600;
  font-size: 14px;
}

.premium-status.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.premium-status.inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.premium-status i {
  font-size: 12px;
}

/* Текущая подписка */
.profile__premium-current {
  margin-bottom: 40px;
}

.premium-current-card {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(139, 92, 246, 0.05));
  border: 2px solid rgba(108, 92, 231, 0.3);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.15);
  position: relative;
  overflow: hidden;
}

/* Убрана верхняя полоска */

.premium-current-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.premium-crown {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
  animation: premium-glow 2s ease-in-out infinite alternate;
}

@keyframes premium-glow {
  from {
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
  }
  to {
    box-shadow: 0 12px 35px rgba(108, 92, 231, 0.6);
  }
}

.premium-current-info {
  flex: 1;
}

.premium-current-info h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.premium-current-info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.premium-current-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.premium-current-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}

.premium-detail i {
  color: var(--primary-color);
  font-size: 14px;
  width: 16px;
}

.premium-detail strong {
  color: var(--text-primary);
  font-weight: 600;
  margin-left: auto;
}

.premium-current-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.premium-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.premium-btn.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.premium-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.premium-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.premium-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

/* Планы подписки */
.profile__premium-plans {
  margin-bottom: 40px;
}

.premium-plans-title {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.premium-plans-title i {
  color: var(--primary-color);
  font-size: 18px;
}

.premium-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.premium-plan-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-secondary);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.premium-plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 92, 231, 0.4);
  box-shadow: 0 15px 35px rgba(108, 92, 231, 0.15);
}

.premium-plan-card.popular {
  border-color: rgba(108, 92, 231, 0.5);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), var(--bg-card));
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.2);
}

.premium-plan-card.current {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), var(--bg-card));
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.2);
}

.plan-popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 6px 16px;
  border-radius: 0 0 12px 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.plan-current-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 6px 16px;
  border-radius: 0 0 12px 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.plan-header {
  text-align: center;
  margin-bottom: 25px;
  padding-top: 15px;
}

.plan-duration {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.plan-price {
  margin-bottom: 10px;
}

.price-amount {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.price-currency {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 5px;
}

.plan-discount {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-per-month {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.plan-action {
  margin-top: auto;
}

.plan-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.plan-btn:not(.current) {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.plan-btn:not(.current):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.plan-btn.current {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  cursor: not-allowed;
  opacity: 0.8;
}

/* Возможности премиум */
.profile__premium-features {
  margin-bottom: 40px;
}

.premium-features-title {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.premium-features-title i {
  color: #8b5cf6;
  font-size: 18px;
}

.premium-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.premium-feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.3s ease;
  display: flex;
  gap: 16px;
}

.premium-feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.feature-content {
  flex: 1;
}

.feature-title {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.feature-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Call to Action */
.profile__premium-cta {
  margin-top: 30px;
}

.premium-cta-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.03));
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 25px;
  position: relative;
  overflow: hidden;
}

/* Убрана верхняя полоска */

.cta-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  animation: cta-pulse 2s ease-in-out infinite alternate;
}

@keyframes cta-pulse {
  from {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  }
  to {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
  }
}

.cta-content {
  flex: 1;
}

.cta-content h3 {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 15px;
}

.cta-benefits {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-benefit {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
}

.cta-benefit i {
  color: #10b981;
  font-size: 12px;
}

.cta-action {
  flex-shrink: 0;
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Responsive для премиум раздела */
@media (max-width: 1200px) {
  .premium-plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  
  .premium-features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .profile__premium-section {
    padding: 20px;
  }
  
  .profile__premium-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .premium-current-card {
    padding: 20px;
  }
  
  .premium-current-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .premium-crown {
    align-self: center;
  }
  
  .premium-current-details {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }
  
  .premium-current-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .premium-plans-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .premium-features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .premium-cta-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 25px;
  }
  
  .cta-benefits {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .profile__premium-section {
    padding: 15px;
  }
  
  .premium-current-card {
    padding: 15px;
  }
  
  .premium-crown {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .premium-current-info h3 {
    font-size: 18px;
  }
  
  .premium-current-details {
    padding: 12px;
  }
  
  .premium-detail {
    font-size: 13px;
  }
  
  .premium-plans-title {
    font-size: 18px;
  }
  
  .premium-features-title {
    font-size: 18px;
  }
  
  .premium-plan-card {
    padding: 20px;
  }
  
  .plan-header {
    padding-top: 10px;
  }
  
  .price-amount {
    font-size: 28px;
  }
  
  .premium-feature-card {
    padding: 15px;
    gap: 12px;
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .feature-title {
    font-size: 15px;
  }
  
  .feature-description {
    font-size: 13px;
  }
  
  .premium-cta-card {
    padding: 20px;
  }
  
  .cta-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .cta-content h3 {
    font-size: 18px;
  }
  
  .cta-content p {
    font-size: 14px;
  }
  
  .cta-benefits {
    flex-direction: column;
    gap: 8px;
  }
  
  .cta-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}