/* ====== MODERN PROFILE CSS ====== */

/* Сброс и базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #115710;
  --primary-light: #1a7a1a;
  --primary-dark: #0f4a0f;
  --secondary-color: #2d9f42;
  --accent-color: #ff6b35;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --background: #f8f9fa;
  --surface: #ffffff;
  --border: #e1e5e9;
  --border-light: #f0f2f5;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  background: url('../swg/fon.svg') no-repeat center center/cover;
  position: relative;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: white;
  opacity: 0.65;
  z-index: -1;
}

/* Шапка в стиле главного экрана */
header {
  background: linear-gradient(135deg, #115710 0%, #1a7a1a 50%, #0f4a0f 100%);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(17, 87, 16, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  margin: 15px 80px;
  padding: 15px;
  text-align: center;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}
.header-row h1 {
  font-size: 32px;
  color: white;
  font-weight: bold;
  flex: 1;
  text-align: center;
  margin: 0 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.phone-mobile {
  display: none;
}

.back-btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.phone-info {
  text-align: right;
}
.phone-info p:first-child {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}
.phone-info p:nth-child(2) {
  font-size: 20px;
  color: white;
  margin-top: 5px;
  font-weight: 600;
}

/* Основной контент */
.profile-main {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
}

.profile-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
  align-items: start;
}

/* Секция профиля */
.profile-section {
  position: sticky;
  top: 100px;
}

.profile-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid var(--border-light);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.profile-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(17, 87, 16, 0.3);
}

.profile-title h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Информация профиля */
.profile-info {
  margin-bottom: 24px;
}

.info-group {
  margin-bottom: 20px;
}

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

.label-icon {
  font-size: 16px;
}

.info-value {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: var(--background);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.password-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.password-input {
  flex: 1;
  font-size: 16px;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: var(--background);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  min-height: 40px;
  font-family: inherit;
}

.toggle-password-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.toggle-password-btn .toggle-text {
  display: inline;
}

.toggle-password-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Кнопки действий */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  justify-content: center;
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.action-btn.danger {
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
  color: white;
}

.action-btn.danger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, #ff3742 0%, #ff4757 100%);
}

/* Секция заказов */
.orders-section {
  min-height: 400px;
}

.orders-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid var(--border-light);
  height: fit-content;
}

.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.orders-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.orders-count {
  background: var(--primary-color);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Карточка заказа */
.order {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

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

.order-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.edit-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  min-height: 36px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.edit-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.edit-btn .btn-text {
  display: inline;
}

.edit-btn .btn-text-short {
  display: none;
}

.edit-btn::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;
}

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

.edit-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.edit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.order-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-items li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.order-items li:last-child {
  border-bottom: none;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.order-item-name {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-word;
}

.order-item-quantity {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--background);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
}

.repeat-btn {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #34d058 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  min-height: 36px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.repeat-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.repeat-btn .btn-text {
  display: inline;
}

.repeat-btn .btn-text-short {
  display: none;
}

.repeat-btn::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;
}

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

.repeat-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.repeat-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Пустые заказы */
.empty-orders {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.empty-orders-content {
  text-align: center;
  max-width: 300px;
}

.empty-orders-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-orders h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-orders p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 14px;
}

.shop-btn {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #34d058 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.shop-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Уведомления */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(135deg, var(--secondary-color) 0%, #34d058 100%);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.profile-card {
  animation: fadeInUp 0.4s ease-out;
}

.orders-card {
  animation: slideInRight 0.6s ease-out;
}

.order {
  animation: fadeInUp 0.3s ease-out;
}

/* Улучшенная адаптивность */
@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .profile-section {
    position: static;
  }
  
  header {
    margin: 12px 16px;
    padding: 12px 16px;
    border-radius: 16px;
  }
  
  .header-row h1 {
    font-size: 24px;
    margin: 0 12px;
  }
  
  .profile-main {
    padding: 16px;
  }
}

/* Планшеты - показываем кнопку телефона */
@media (max-width: 1024px) {
  .phone-info {
    display: none;
  }
  
  .phone-mobile {
    display: block;
  }
  
  .phone-mobile a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }
  
  .phone-mobile a:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
  }
  
  .phone-mobile a:active {
    transform: scale(0.95);
  }
  
  .phone-mobile img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
  }
}

@media (max-width: 768px) {
  .profile-main {
    padding: 12px;
  }
  
  .profile-layout {
    gap: 16px;
  }
  
  /* Оптимизированная шапка */
  header {
    margin: 8px 12px;
    padding: 10px 12px;
    border-radius: 14px;
  }
  
  .header-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  
  .header-row h1 {
    font-size: 18px;
    margin: 0 6px;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
  }
  
  .back-btn {
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 12px;
    flex-shrink: 0;
  }
  
  /* Компактные карточки */
  .profile-card, .orders-card {
    padding: 14px;
    border-radius: 12px;
  }
  
  .profile-header {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }
  
  .profile-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }
  
  .profile-avatar svg {
    width: 24px;
    height: 24px;
  }
  
  .profile-title {
    flex: 1;
    min-width: 0;
  }
  
  .profile-title h2 {
    font-size: 17px;
    margin-bottom: 2px;
  }
  
  .profile-subtitle {
    font-size: 12px;
  }
  
  /* Оптимизированная информация профиля */
  .profile-info {
    margin-bottom: 18px;
  }
  
  .info-group {
    margin-bottom: 14px;
  }
  
  .info-label {
    font-size: 12px;
    margin-bottom: 5px;
    gap: 6px;
  }
  
  .label-icon {
    font-size: 14px;
  }
  
  .info-value {
    font-size: 14px;
    padding: 9px 12px;
    min-height: 40px;
    line-height: 1.4;
  }
  
  .password-field {
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .password-input {
    font-size: 14px;
    padding: 9px 12px;
    min-height: 40px;
    flex: 1;
    min-width: 0;
  }
  
  .toggle-password-btn {
    padding: 9px 14px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .toggle-password-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .toggle-password-btn .toggle-text {
    display: inline;
  }
  
  /* Оптимизированные кнопки действий */
  .profile-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .action-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
    gap: 8px;
  }
  
  .action-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  
  /* Оптимизированные заказы */
  .orders-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }
  
  .orders-header h2 {
    font-size: 17px;
    flex: 1;
    min-width: 0;
  }
  
  .orders-count {
    font-size: 11px;
    padding: 4px 10px;
    flex-shrink: 0;
  }
  
  .order {
    padding: 14px;
    border-radius: 10px;
    gap: 12px;
  }
  
  .order-header {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
  }
  
  .order h3 {
    font-size: 15px;
    margin: 0;
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 100%;
  }
  
  .order-actions {
    flex-direction: row;
    gap: 6px;
    width: auto;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }
  
  .edit-btn, .repeat-btn {
    padding: 7px 12px;
    font-size: 12px;
    min-height: 36px;
    gap: 5px;
  }
  
  .edit-btn svg, .repeat-btn svg {
    width: 13px;
    height: 13px;
  }
  
  .edit-btn .btn-text,
  .repeat-btn .btn-text {
    display: inline;
  }
  
  .edit-btn .btn-text-short,
  .repeat-btn .btn-text-short {
    display: none;
  }
  
  .order-items {
    margin: 0;
  }
  
  .order-items li {
    font-size: 13px;
    padding: 8px 0;
  }

  .order-item-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .order-item-name {
    font-size: 13px;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
  }

  .order-item-quantity {
    font-size: 12px;
    padding: 4px 8px;
    flex-shrink: 0;
  }
  
  .empty-orders-content {
    max-width: 100%;
    padding: 0 10px;
  }
  
  .empty-orders-icon {
    font-size: 42px;
    margin-bottom: 12px;
  }
  
  .empty-orders h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .empty-orders p {
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .shop-btn {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px;
  }
  
  .shop-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  /* Скрываем текстовую информацию телефона и показываем иконку */
  .phone-info {
    display: none;
  }
  
  .phone-mobile {
    display: block;
    flex-shrink: 0;
  }
  
  .phone-mobile a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }
  
  .phone-mobile a:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
  }
  
  .phone-mobile a:active {
    transform: scale(0.95);
  }
  
  .phone-mobile img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
  }
  
  /* Оптимизированная шапка для маленьких экранов */
  header {
    margin: 6px 8px;
    padding: 8px 10px;
    border-radius: 12px;
  }
  
  .header-row {
    gap: 6px;
  }
  
  .header-row h1 {
    font-size: 16px;
    margin: 0 4px;
    line-height: 1.3;
  }
  
  .back-btn {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 10px;
  }
  
  .profile-main {
    padding: 10px;
  }
  
  .profile-layout {
    gap: 12px;
  }
  
  /* Компактные карточки */
  .profile-card, .orders-card {
    padding: 12px;
    border-radius: 10px;
  }
  
  .profile-header {
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 14px;
  }
  
  .profile-avatar {
    width: 44px;
    height: 44px;
  }
  
  .profile-avatar svg {
    width: 22px;
    height: 22px;
  }
  
  .profile-title h2 {
    font-size: 16px;
    margin-bottom: 2px;
  }
  
  .profile-subtitle {
    font-size: 11px;
  }
  
  .profile-info {
    margin-bottom: 16px;
  }
  
  .info-group {
    margin-bottom: 12px;
  }
  
  .info-label {
    font-size: 11px;
    margin-bottom: 4px;
    gap: 5px;
  }
  
  .label-icon {
    font-size: 13px;
  }
  
  .info-value {
    font-size: 13px;
    padding: 8px 10px;
    min-height: 38px;
    line-height: 1.4;
  }
  
  .password-field {
    gap: 6px;
  }
  
  .password-input {
    font-size: 13px;
    padding: 8px 10px;
    min-height: 38px;
  }
  
  .toggle-password-btn {
    padding: 8px 12px;
    font-size: 11px;
    gap: 4px;
  }
  
  .toggle-password-btn svg {
    width: 12px;
    height: 12px;
  }
  
  .toggle-password-btn .toggle-text {
    display: inline;
  }
  
  .profile-actions {
    gap: 8px;
  }
  
  .action-btn {
    padding: 11px 14px;
    font-size: 13px;
    min-height: 44px;
  }
  
  .action-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .orders-header {
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 14px;
  }
  
  .orders-header h2 {
    font-size: 16px;
  }
  
  .orders-count {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  .order {
    padding: 12px;
    border-radius: 10px;
    gap: 10px;
  }
  
  .order-header {
    margin-bottom: 10px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  
  .order h3 {
    font-size: 14px;
    flex: 1 1 auto;
    min-width: 100px;
    max-width: 100%;
  }
  
  .order-actions {
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }
  
  .edit-btn, .repeat-btn {
    padding: 7px 10px;
    font-size: 11px;
    min-height: 34px;
    gap: 4px;
  }
  
  .edit-btn svg, .repeat-btn svg {
    width: 12px;
    height: 12px;
  }
  
  .edit-btn .btn-text,
  .repeat-btn .btn-text {
    display: none;
  }
  
  .edit-btn .btn-text-short,
  .repeat-btn .btn-text-short {
    display: inline;
  }
  
  .order-items li {
    font-size: 12px;
    padding: 6px 0;
  }
  
  .order-item-row {
    gap: 8px;
  }
  
  .order-item-name {
    font-size: 12px;
  }
  
  .order-item-quantity {
    font-size: 11px;
    padding: 3px 6px;
  }
  
  .empty-orders-content {
    padding: 0 8px;
  }
  
  .empty-orders-icon {
    font-size: 38px;
    margin-bottom: 10px;
  }
  
  .empty-orders h3 {
    font-size: 15px;
    margin-bottom: 5px;
  }
  
  .empty-orders p {
    font-size: 12px;
    margin-bottom: 18px;
  }
  
  .shop-btn {
    padding: 11px 18px;
    font-size: 13px;
    min-height: 44px;
  }
  
  .shop-btn svg {
    width: 16px;
    height: 16px;
  }
  
  /* Улучшенные уведомления */
  .toast {
    font-size: 13px;
    padding: 12px 18px;
    border-radius: 12px;
    left: 12px;
    right: 12px;
    transform: translateX(0) translateY(-100px);
    max-width: calc(100% - 24px);
  }
  
  .toast.show {
    transform: translateX(0) translateY(0);
  }
}

/* Дополнительные улучшения для очень маленьких экранов */
@media (max-width: 360px) {
  header {
    margin: 5px 6px;
    padding: 7px 8px;
  }
  
  .header-row h1 {
    font-size: 14px;
    margin: 0 3px;
  }
  
  .back-btn {
    font-size: 11px;
    padding: 5px 8px;
  }
  
  .phone-mobile a {
    width: 36px;
    height: 36px;
  }
  
  .phone-mobile img {
    width: 18px;
    height: 18px;
  }
  
  .profile-main {
    padding: 8px;
  }
  
  .profile-layout {
    gap: 10px;
  }
  
  .profile-card, .orders-card {
    padding: 10px;
    border-radius: 8px;
  }
  
  .profile-header {
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 12px;
  }
  
  .profile-avatar {
    width: 40px;
    height: 40px;
  }
  
  .profile-avatar svg {
    width: 20px;
    height: 20px;
  }
  
  .profile-title h2 {
    font-size: 15px;
  }
  
  .profile-subtitle {
    font-size: 10px;
  }
  
  .info-group {
    margin-bottom: 10px;
  }
  
  .info-label {
    font-size: 10px;
    margin-bottom: 3px;
  }
  
  .label-icon {
    font-size: 12px;
  }
  
  .info-value {
    font-size: 12px;
    padding: 7px 8px;
    min-height: 36px;
  }
  
  .password-input {
    font-size: 12px;
    padding: 7px 8px;
    min-height: 36px;
  }
  
  .toggle-password-btn {
    padding: 7px 8px;
    font-size: 10px;
    gap: 3px;
  }
  
  .toggle-password-btn .toggle-text {
    display: none;
  }
  
  .action-btn {
    padding: 10px 12px;
    font-size: 12px;
    min-height: 42px;
  }
  
  .orders-header h2 {
    font-size: 15px;
  }
  
  .orders-count {
    font-size: 9px;
    padding: 2px 6px;
  }
  
  .order {
    padding: 10px;
    gap: 8px;
  }
  
  .order h3 {
    font-size: 13px;
    flex: 1 1 auto;
    min-width: 80px;
    max-width: 100%;
  }
  
  .order-header {
    gap: 6px;
  }
  
  .order-actions {
    gap: 5px;
    flex-wrap: nowrap;
  }
  
  .edit-btn, .repeat-btn {
    padding: 6px 8px;
    font-size: 10px;
    min-height: 32px;
    gap: 3px;
  }
  
  .edit-btn svg, .repeat-btn svg {
    width: 11px;
    height: 11px;
  }
  
  .edit-btn .btn-text,
  .repeat-btn .btn-text {
    display: none;
  }
  
  .edit-btn .btn-text-short,
  .repeat-btn .btn-text-short {
    display: inline;
  }
  
  .order-items li {
    font-size: 11px;
    padding: 5px 0;
  }

  .order-item-name {
    font-size: 11px;
  }

  .order-item-quantity {
    font-size: 10px;
    padding: 2px 5px;
  }
  
  .empty-orders-icon {
    font-size: 34px;
  }
  
  .empty-orders h3 {
    font-size: 14px;
  }
  
  .empty-orders p {
    font-size: 11px;
  }
  
  .shop-btn {
    padding: 10px 16px;
    font-size: 12px;
    min-height: 42px;
  }
  
  .toast {
    font-size: 12px;
    padding: 10px 14px;
  }
}

/* Дополнительные улучшения */
.profile-info .info-group:last-child {
  margin-bottom: 0;
}

.orders-list:empty + .empty-orders {
  display: flex;
}

.orders-list:not(:empty) + .empty-orders {
  display: none;
}

/* Улучшенная прокрутка */
.orders-list {
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--border-light);
}

.orders-list::-webkit-scrollbar {
  width: 6px;
}

.orders-list::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 3px;
}

.orders-list::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.orders-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Оптимизация прокрутки для мобильных */
@media (max-width: 768px) {
  .orders-list {
    max-height: 50vh;
  }
  
  .orders-list::-webkit-scrollbar {
    width: 4px;
  }
}

@media (max-width: 480px) {
  .orders-list {
    max-height: 45vh;
  }
}