/* ===== PROFILE PAGE - CYBER PREMIUM GAMING DASHBOARD ===== */
/* Исправлено для стабильной работы на мобильных устройствах */

:root {
  --bg-deep: #050505;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(139, 92, 246, 0.3);
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.profile-page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 28px;
  min-height: 100vh;
  align-items: start;
  position: relative;
  z-index: 5;
}

/* ===== САЙДБАР (КАРТОЧКА ПРОФИЛЯ) ===== */
.profile-sidebar {
  position: sticky;
  top: 24px;
}

.profile-card {
  border-radius: 40px;
  padding: 40px 32px;
  text-align: center;
  background: rgba(8, 8, 18, 0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-subtle);
  box-shadow: 
    inset 0 2px 12px rgba(255, 255, 255, 0.02),
    0 30px 50px -25px #000000,
    0 0 0 1px rgba(139, 92, 246, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Отключаем размытие на мобильных для производительности */
@media (max-width: 768px) {
  .profile-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 12, 20, 0.9);
  }
}



/* ===== АВАТАР С ВРАЩАЮЩИМСЯ КОЛЬЦОМ ===== */
.avatar-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 28px;
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg, 
    #8b5cf6, 
    #10b981, 
    #3b82f6, 
    #f59e0b, 
    #8b5cf6
  );
  animation: spinRing 10s linear infinite;
  filter: blur(3px);
  opacity: 0.7;
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #0a0a14;
  opacity: 0.3;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.avatar-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: rgba(20, 20, 35, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
  background-size: cover;
  background-position: center;
}

.avatar-initial {
  font-size: 56px;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.avatar-status {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background: var(--accent-emerald);
  border-radius: 50%;
  border: 3px solid #0a0a14;
  box-shadow: 0 0 25px var(--accent-emerald);
  z-index: 3;
  animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
  0%, 100% { opacity: 1; box-shadow: 0 0 15px var(--accent-emerald); }
  50% { opacity: 0.6; box-shadow: 0 0 30px var(--accent-emerald); }
}

/* ===== ИНФОРМАЦИЯ ПРОФИЛЯ ===== */
.profile-username {
  font-size: 2.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff, #c4b5fd, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  line-height: 1.2;
  word-break: break-word;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 18px;
  border-radius: 60px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6ee7b7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  transition: all 0.2s;
}

.verified-badge:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
}

.verified-badge i {
  font-size: 11px;
  color: var(--accent-emerald);
}

/* Рейтинг */
.profile-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.stars {
  display: flex;
  gap: 3px;
  color: #fbbf24;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.5));
}

.stars i {
  font-size: 0.9rem;
}

.rating-value {
  font-weight: 700;
  color: #e5e5e5;
  font-size: 0.95rem;
}

.reviews-link {
  font-size: 0.7rem;
  color: var(--accent-violet);
  text-decoration: none;
  margin-left: 6px;
  transition: color 0.2s;
  display: inline-block;
  margin-bottom: 16px;
}

.reviews-link:hover {
  color: #a78bfa;
  text-decoration: underline;
}

.profile-joined {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.profile-joined i {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== КНОПКИ ДЕЙСТВИЙ ===== */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.btn-gradient {
  width: 100%;
  padding: 16px 24px;
  border-radius: 60px;
  background: linear-gradient(135deg, var(--accent-violet), #6366f1);
  border: none;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 28px -8px rgba(139, 92, 246, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-gradient:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px -8px var(--accent-violet);
  background: linear-gradient(135deg, #9d74ff, #7877f1);
}

.btn-gradient:hover::before {
  left: 100%;
}

.btn-glass {
  width: 100%;
  padding: 16px 24px;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.1);
}
  
.btn-glass:hover {
  background: rgba(139, 92, 246, 0.1);
  color: white;

}

.btn-logout {
  width: 100%;
  padding: 14px 24px;
  border-radius: 60px;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-weight: 500;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}



/* ===== ОСНОВНАЯ ОБЛАСТЬ ===== */
.profile-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ===== КАРТОЧКА БАЛАНСА ===== */
.balance-card {
  border-radius: 28px;
  padding: 28px 32px;
  background: rgba(8, 8, 18, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: inset 0 1px 4px rgba(255,255,255,0.02), 0 20px 30px -15px #000000;
}



.balance-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.balance-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.balance-icon i {
  font-size: 28px;
  color: var(--accent-emerald);
}

.balance-info {
  display: flex;
  flex-direction: column;
}

.balance-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.balance-amount {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #6ee7b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.balance-trend {
  font-size: 0.7rem;
  color: #34d399;
  margin-top: 6px;
}

.balance-chevron {
  font-size: 32px;
  color: var(--text-muted);
  opacity: 0.5;
  transition: all 0.3s;
}



/* ===== СЕТКА СТАТИСТИКИ ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-card {
  border-radius: 24px;
  padding: 24px 20px;
  background: rgba(10, 10, 22, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.03), transparent 70%);
  pointer-events: none;
}


.stat-card.products:hover {
  box-shadow: 0 0 40px -8px var(--accent-violet), inset 0 0 0 1px rgba(139, 92, 246, 0.3);
}

.stat-card.purchases:hover {
  box-shadow: 0 0 40px -8px var(--accent-blue), inset 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.stat-card.sales:hover {
  box-shadow: 0 0 40px -8px var(--accent-amber), inset 0 0 0 1px rgba(245, 158, 11, 0.3);
}

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.stat-card.products .stat-icon { color: var(--accent-violet); }
.stat-card.purchases .stat-icon { color: var(--accent-blue); }
.stat-card.sales .stat-icon { color: var(--accent-amber); }

.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.stat-sparkline {
  position: absolute;
  bottom: 16px;
  right: 16px;
  opacity: 0.12;
  width: 80px;
  height: 28px;
}

/* ===== ТАБЫ ===== */
.profile-tabs {
  display: flex;
  gap: 8px;
  background: rgba(20, 20, 35, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px;
  border-radius: 60px;
  width: fit-content;
  border: 1px solid var(--border-subtle);
}

.profile-tab-btn {
  padding: 12px 28px;
  border-radius: 50px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.profile-tab-btn:hover {
  color: white;
  background: rgba(139, 92, 246, 0.1);
}

.profile-tab-btn.active {
  background: linear-gradient(135deg, var(--accent-violet), #6366f1);
  color: white;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 40px;
  font-size: 0.7rem;
}

.profile-tab-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== СПИСОК ТОВАРОВ ===== */
.products-list-container {
  border-radius: 28px;
  padding: 28px;
  background: rgba(10, 10, 22, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  min-height: 400px;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
  text-align: center;
  height: 100%;
  min-height: 400px;
}

.empty-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 28px;
  animation: skeletonFloat 3s ease-in-out infinite;
}

@keyframes skeletonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.empty-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
}

.empty-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.empty-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 420px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.btn-primary {
  padding: 18px 40px;
  border-radius: 60px;
  background: linear-gradient(135deg, var(--accent-violet), #4f46e5);
  border: none;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 12px 32px -8px rgba(139, 92, 246, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);

}

@keyframes pulseBtn {
  0% { box-shadow: 0 12px 32px -8px rgba(139, 92, 246, 0.6); }
  50% { box-shadow: 0 18px 45px -5px #8b5cf6, 0 0 0 5px rgba(139, 92, 246, 0.15); }
  100% { box-shadow: 0 12px 32px -8px rgba(139, 92, 246, 0.6); }
}



.btn-primary i {
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  transform: rotate(90deg);
}

/* Карточки товаров */
.product-item {
  display: flex;
  align-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.25s;
  cursor: pointer;
}

.product-item:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateX(6px);
}

.product-img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  margin-right: 18px;
  background: #1a1a2e;
}

.product-info {
  flex: 1;
}

.product-title {
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.product-status {
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 30px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  display: inline-block;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.product-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.product-btn:hover {
  background: var(--accent-violet);
  color: white;
  border-color: transparent;
}

/* ============================================ */
/* ===== АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ ===== */
/* ============================================ */
@media (max-width: 1024px) {
  .profile-page-container {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .profile-sidebar {
    position: static;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================ */
/* ===== АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ (ДО 768px) ===== */
/* ============================================ */
@media (max-width: 768px) {
  .profile-page-container {
    padding: 16px;
    gap: 20px;
  }
  
  .profile-card {
    padding: 28px 20px;
    border-radius: 32px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 12, 20, 0.9);
  }
  
  .profile-username {
    font-size: 1.8rem;
  }
  
  .avatar-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }
  
  .avatar-initial {
    font-size: 44px;
  }
  
  .avatar-status {
    width: 20px;
    height: 20px;
    bottom: 4px;
    right: 4px;
  }
  
  .verified-badge {
    padding: 5px 14px;
    font-size: 0.7rem;
    margin-bottom: 14px;
  }
  
  .profile-joined {
    margin-bottom: 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 18px 20px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 12, 20, 0.7);
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  
  .balance-card {
    padding: 20px 20px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 12, 20, 0.7);
  }
  
  .balance-amount {
    font-size: 2rem;
  }
  
  .balance-icon {
    width: 52px;
    height: 52px;
  }
  
  .balance-icon i {
    font-size: 22px;
  }
  
  .profile-tabs {
    width: 100%;
    justify-content: center;
  }
  
  .profile-tab-btn {
    padding: 10px 16px;
    flex: 1;
    justify-content: center;
    font-size: 0.8rem;
  }
  
  .tab-badge {
    padding: 2px 8px;
    font-size: 0.65rem;
  }
  
  .products-list-container {
    padding: 20px;
    border-radius: 24px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 12, 20, 0.7);
  }
  
  .empty-state {
    padding: 40px 20px;
    min-height: 350px;
  }
  
  .empty-icon {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
  }
  
  .empty-title {
    font-size: 1.5rem;
  }
  
  .empty-desc {
    font-size: 0.9rem;
    margin-bottom: 28px;
  }
  
  .btn-primary {
    padding: 14px 32px;
    font-size: 0.9rem;
  }
  
  .product-item {
    padding: 14px;
  }
  
  .product-img {
    width: 56px;
    height: 56px;
    margin-right: 14px;
  }
  
  .product-title {
    font-size: 0.9rem;
  }
  
  .product-price {
    font-size: 1rem;
  }
  
  .btn-gradient, .btn-glass {
    padding: 14px 20px;
    font-size: 0.85rem;
  }
  
  .btn-logout {
    padding: 12px 20px;
    font-size: 0.8rem;
  }
}

/* ============================================ */
/* ===== МАЛЕНЬКИЕ ТЕЛЕФОНЫ (ДО 480px) ===== */
/* ============================================ */
@media (max-width: 480px) {
  .profile-page-container {
    padding: 8px;
    gap: 10px;
  }
  
  .profile-card {
    padding: 16px 12px;
    border-radius: 28px;
  }
  
  .avatar-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
  }
  
  .avatar-initial {
    font-size: 38px;
  }
  
  .avatar-ring {
    inset: -3px;
  }
  
  .avatar-status {
    width: 18px;
    height: 18px;
    border-width: 2px;
  }
  
  .profile-username {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }
  
  .verified-badge {
    padding: 4px 12px;
    font-size: 0.6rem;
    gap: 5px;
    margin-bottom: 12px;
  }
  
  .stars i {
    font-size: 0.8rem;
  }
  
  .rating-value {
    font-size: 0.85rem;
  }
  
  .reviews-link {
    font-size: 0.6rem;
  }
  
  .profile-joined {
    font-size: 0.65rem;
    margin-bottom: 20px;
  }
  
  .balance-card {
    padding: 16px 18px;
    border-radius: 24px;
  }
  
  .balance-left {
    gap: 14px;
  }
  
  .balance-icon {
    width: 44px;
    height: 44px;
  }
  
  .balance-icon i {
    font-size: 18px;
  }
  
  .balance-label {
    font-size: 0.65rem;
  }
  
  .balance-amount {
    font-size: 1.6rem;
  }
  
  .balance-trend {
    font-size: 0.6rem;
  }
  
  .balance-chevron {
    font-size: 24px;
  }
  
  .stat-card {
    padding: 14px 16px;
    border-radius: 20px;
  }
  
  .stat-icon {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  
  .stat-value {
    font-size: 1.6rem;
  }
  
  .stat-label {
    font-size: 0.65rem;
  }
  
  .stat-sparkline {
    width: 60px;
    height: 22px;
    bottom: 10px;
    right: 10px;
  }
  
  .profile-tabs {
    padding: 4px;
    border-radius: 50px;
  }
  
  .profile-tab-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
    gap: 6px;
  }
  
  .tab-badge {
    padding: 2px 6px;
    font-size: 0.6rem;
  }
  
  .products-list-container {
    padding: 16px;
    border-radius: 20px;
  }
  
  .empty-state {
    padding: 30px 15px;
    min-height: 300px;
  }
  
  .empty-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
  }
  
  .empty-title {
    font-size: 1.3rem;
  }
  
  .empty-desc {
    font-size: 0.8rem;
    margin-bottom: 24px;
    max-width: 280px;
  }
  
  .btn-primary {
    padding: 12px 24px;
    font-size: 0.85rem;
    gap: 10px;
  }
  
  .product-item {
    padding: 12px;
    flex-wrap: wrap;
  }
  
  .product-img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  
  .product-info {
    min-width: 180px;
  }
  
  .product-title {
    font-size: 0.85rem;
  }
  
  .product-price {
    font-size: 0.9rem;
  }
  
  .product-status {
    font-size: 0.6rem;
    padding: 3px 10px;
  }
  
  .product-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 12px;
  }
  
  .product-btn {
    width: 36px;
    height: 36px;
  }
  
  .profile-actions {
    gap: 10px;
  }
  
  .btn-gradient, .btn-glass {
    padding: 12px 18px;
    font-size: 0.8rem;
    gap: 8px;
  }
  
  .btn-logout {
    padding: 10px 18px;
    font-size: 0.75rem;
    margin-top: 4px;
  }
}

/* ============================================ */
/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ (ДО 380px) ===== */
/* ============================================ */
@media (max-width: 380px) {
  .profile-page-container {
    padding: 6px;
    gap: 12px;
  }
  
  .profile-card {
    padding: 18px 12px;
    border-radius: 24px;
  }
  
  .avatar-wrapper {
    width: 85px;
    height: 85px;
    margin-bottom: 14px;
  }
  
  .avatar-initial {
    font-size: 32px;
  }
  
  .profile-username {
    font-size: 1.3rem;
  }
  
  .verified-badge {
    padding: 3px 10px;
    font-size: 0.55rem;
  }
  
  .stars i {
    font-size: 0.7rem;
  }
  
  .balance-card {
    padding: 14px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  
  .balance-left {
    width: 100%;
  }
  
  .balance-icon {
    width: 40px;
    height: 40px;
  }
  
  .balance-icon i {
    font-size: 16px;
  }
  
  .balance-amount {
    font-size: 1.4rem;
  }
  
  .balance-chevron {
    align-self: flex-end;
    font-size: 20px;
  }
  
  .stat-card {
    padding: 12px 14px;
  }
  
  .stat-value {
    font-size: 1.4rem;
  }
  
  .stat-label {
    font-size: 0.6rem;
  }
  
  .profile-tab-btn {
    padding: 7px 10px;
    font-size: 0.7rem;
  }
  
  .profile-tab-btn i {
    font-size: 0.8rem;
  }
  
  .tab-badge {
    padding: 1px 5px;
    font-size: 0.55rem;
  }
  
  .empty-icon {
    width: 100px;
    height: 100px;
  }
  
  .empty-title {
    font-size: 1.1rem;
  }
  
  .empty-desc {
    font-size: 0.75rem;
    margin-bottom: 20px;
  }
  
  .btn-primary {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  .product-item {
    padding: 10px;
  }
  
  .product-img {
    width: 42px;
    height: 42px;
    margin-right: 10px;
  }
  
  .product-title {
    font-size: 0.8rem;
  }
  
  .product-price {
    font-size: 0.85rem;
  }
  
  .product-btn {
    width: 32px;
    height: 32px;
  }
  
  .btn-gradient, .btn-glass {
    padding: 10px 14px;
    font-size: 0.75rem;
  }
  
  .btn-logout {
    padding: 8px 14px;
    font-size: 0.7rem;
  }
}

/* ===== ФИКС ДЛЯ ОЧЕНЬ ДЛИННЫХ ИМЕН ===== */
.profile-username {
  word-break: break-word;
  max-width: 100%;
}

/* ===== ФИКС ДЛЯ ТОВАРОВ НА МАЛЕНЬКИХ ЭКРАНАХ ===== */
@media (max-width: 400px) {
  .product-info {
    max-width: calc(100% - 60px);
  }
  
  .product-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

