/* 1) во всём проекте считаем бордеры/паддинги внутрь */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2) единый коридор по горизонтали */
:root {
  --gutter-x: 1.25rem;
}

/* Remove default body/container margins for homepage */
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Блокировка скролла при открытом модальном окне */
/* position: fixed, top, width управляются через JavaScript для сохранения позиции скролла */
body.modal-open {
  overflow: hidden !important;
}

.container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* контейнер ограничивает ширину и задаёт внешний паддинг */
.home-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter-x) 2rem;
}

/* 3) Делаем #main-content таким же, как .home-container */
#main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter-x) 2rem;
}

/* 4) Чтобы не было двойного паддинга, если внутри ещё есть .home-container */
#main-content>.home-container {
  max-width: 100%;
  padding: 0;
  /* коридор уже у #main-content */
}

/* Gradient Header (Optimized Glassmorphism) */
.home-header {
  text-align: center;
  margin: 0 calc(-50vw + 50%) 1.5rem;
  padding: 1.25rem 1rem 1rem;
  position: relative;
  background:
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.12) 50%,
      rgba(255, 255, 255, 0.06) 70%,
      rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #00d4aa 0%, #00b4d8 50%, #0096c7 100%);
}

.home-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30px;
  height: 60px;
  background: linear-gradient(to bottom,
      rgba(0, 180, 216, 0.4) 0%,
      rgba(0, 180, 216, 0.2) 20%,
      rgba(0, 180, 216, 0.08) 40%,
      rgba(0, 180, 216, 0.03) 60%,
      rgba(0, 180, 216, 0) 100%);
  filter: blur(25px);
  pointer-events: none;
}

.home-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.home-subtitle {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* Profile Banner */
.profile-banner {
  background: #ffffff;
  border: 1.5px solid #0096c7;
  border-radius: 12px;
  margin-bottom: 1rem;
  padding: 1rem var(--gutter-x);
  box-sizing: border-box;
  min-height: 80px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1.25rem;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-banner:hover {
  border-color: #00b4d8;
  box-shadow: 0 4px 12px rgba(0, 150, 199, 0.15);
  transform: translateY(-1px);
}

.profile-main {
  display: flex;
  align-items: center;
}

.profile-info {
  flex: 1;
}

.profile-greeting {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 0.375rem 0;
  line-height: 1.3;
}

.profile-username {
  font-weight: 600;
  color: #1a1a1a;
}

.profile-balance-inline {
  color: #1a1a1a;
  font-weight: 700;
}

.profile-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent 0%, #e5e5e5 20%, #e5e5e5 80%, transparent 100%);
}

/* Withdrawal input fields */
.withdrawal-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #fafafa;
  box-sizing: border-box;
}

.withdrawal-input:focus {
  outline: none;
  border-color: #00b4d8;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.withdrawal-input::placeholder {
  color: #999;
}

.profile-bonus-section {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f4ff 100%);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #d0e8ff;
}

.profile-bonus-item {
  font-size: 0.8125rem;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  font-weight: 500;
}

.profile-bonus-item strong {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.875rem;
}

.profile-arrow {
  color: #999;
  display: flex;
  align-items: center;
}

/* Profile Modal - Clean Minimalist Design */
.profile-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.profile-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.profile-modal-overlay.active .profile-modal {
  transform: translateY(0);
}

.profile-modal-drag-handle {
  width: 36px;
  height: 4px;
  background: #E6E8EC;
  border-radius: 2px;
  margin: 8px auto;
}

.profile-modal-header {
  padding: 12px 16px 12px 16px;
  background: #fff;
  border-bottom: 1px solid #EEF2F5;
  position: relative;
}

.profile-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  padding-right: 30px; /* освободили место под кнопку только для строк */
}

.profile-header-row:last-of-type {
  margin-bottom: 0;
}

.profile-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.profile-header-right {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}

#user-status-block {
  width: 100%;
  /* margin-right: -16px;  = padding-right */
  /* box-sizing: border-box; */
}

.profile-refresh-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  padding: 6px;
  background: transparent;
  border: none;
  color: #0096c7;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.profile-refresh-btn:hover {
  background: #f0f0f0;
}

.profile-refresh-btn:active {
  transform: scale(0.95);
}

.profile-refresh-btn.refreshing {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.profile-user-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.profile-username {
  font-size: 16px;
  font-weight: 600;
  color: #0B1320;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.profile-balance {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  flex-shrink: 0;
}

.profile-stat-label {
  font-size: 16px;
  color: #8A94A6;
  font-weight: 500;
}

.profile-stat-value {
  font-size: 16px;
  font-weight: 600;
  color: #0B1320;
}

.profile-modal-body {
  padding: 16px;
  padding-bottom: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.profile-modal-section {
  margin-bottom: 12px;
}

.profile-modal-section-title {
  font-size: 16px;
  color: #0B1320;
  margin: 0 0 8px 0;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.profile-referral-description {
  font-size: 12px;
  color: #8A94A6;
  line-height: 1.5;
  margin: 0 0 16px 0;
  font-weight: 500;
}

.profile-referral-description strong {
  color: #1a1a1a;
  font-weight: 700;
}

.profile-referral-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FAFBFC;
  border: 1px solid #E6E8EC;
  border-radius: 10px;
  padding: 12px;
  transition: all 0.15s ease;
  margin-bottom: 12px;
}

.profile-referral-link-box:focus-within {
  border-color: #0096c7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 150, 199, 0.18);
}

.profile-referral-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #0B1320;
  padding: 0;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
}

.profile-copy-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #F1F9FD;
  color: #0096c7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.profile-copy-icon-btn:hover {
  background: #0096c7;
  color: #fff;
}

.profile-copy-icon-btn:active {
  transform: scale(0.96);
}

.profile-copy-icon-btn.copied {
  background: #22c55e;
  color: #fff;
}

.profile-copy-icon-btn.copied svg {
  animation: checkmark 0.3s ease;
}

.profile-share-btn {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: #0096c7;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  margin-top: 12px;
}

.profile-share-btn:hover {
  background: #0077a3;
}

.profile-share-btn:active {
  background: #006089;
  transform: scale(0.98);
}

@keyframes checkmark {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* Order Modal Styles */
.order-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.order-modal-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-modal-card.show {
  transform: scale(1);
  opacity: 1;
}

.order-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
}

.order-close-btn:hover {
  background: #f5f5f5;
  color: #333;
}

.order-success-icon {
  text-align: center;
  margin-bottom: 1rem;
}

.order-success-icon svg {
  width: 80px;
  height: 80px;
}

.checkmark-circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: checkmark-circle 0.6s ease-in-out forwards;
}

.checkmark-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.checkmark-check.animate {
  animation: checkmark-check 0.4s 0.3s ease-in-out forwards;
}

@keyframes checkmark-circle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes checkmark-check {
  to {
    stroke-dashoffset: 0;
  }
}

.order-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #0B1320;
  text-align: center;
  margin: 0 0 0.5rem 0;
}

.order-subtitle {
  font-size: 1rem;
  color: #666;
  text-align: center;
  margin: 0 0 1.5rem 0;
}

.order-id-block {
  background: linear-gradient(135deg, #0096c7 0%, #0077a3 100%);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  margin: 1.5rem 0;
}

.order-number-block {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  margin: 1rem 0 0.75rem 0;
}

.order-id-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.order-number-block .order-id-label {
  color: #666;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.order-id-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

.order-number-block .order-id-value {
  color: #0B1320;
  font-size: 1.25rem;
  font-weight: 600;
}

.totals-bonuses {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.order-details {
  border-top: 1px solid #e5e5e5;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid #f5f5f5;
}

.order-detail-row:last-child {
  border-bottom: none;
}

.order-detail-label {
  color: #666;
  font-weight: 500;
}

.order-detail-value {
  color: #0B1320;
  font-weight: 600;
}

.order-item-compact {
  background: #f8f9fa;
  padding: 0.875rem;
  border-radius: 8px;
  margin: 0.5rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.badges-row {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.order-delivery-notice {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  margin: 1rem 0;
  font-weight: 500;
}

.order-primary-btn {
  width: 100%;
  padding: 1rem;
  background: #0096c7;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1.5rem;
}

.order-primary-btn:hover {
  background: #0077a3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 150, 199, 0.3);
}

.order-primary-btn:active {
  transform: translateY(0);
}

/* Mobile Optimizations */
@media (max-width: 576px) {
  .profile-modal {
    border-radius: 20px 20px 0 0;
    max-height: min(92vh, 640px);
  }

  .profile-modal-header {
    padding: 8px 14px 8px 14px;
  }

  .profile-header-row {
    margin-bottom: 8px;
    padding-left: 2px; /* внутренний отступ слева */
  }

  .profile-user-icon {
    font-size: 15px;
  }

  .profile-username {
    font-size: 15px;
  }

  .profile-balance {
    font-size: 15px;
  }

  .profile-stat-label {
    font-size: 15px;
  }

  .profile-stat-value {
    font-size: 15px;
  }

  .profile-refresh-btn {
    top: 8px;
    right: 8px;
    padding: 5px;
  }

  .profile-refresh-btn svg {
    width: 14px;
    height: 14px;
  }

  .profile-modal-body {
    padding: 12px 14px 0;
  }

  .profile-modal-section-title {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .profile-referral-description {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.4;
  }

  .profile-referral-link-box {
    margin-bottom: 10px;
    padding: 9px 11px;
  }

  .profile-referral-input {
    font-size: 12px;
  }

  .profile-copy-icon-btn {
    width: 34px;
    height: 34px;
  }

  .profile-share-btn {
    height: 46px;
    padding: 0 14px;
    font-size: 14px;
  }

  .profile-modal-footer {
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  #withdrawal-section {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .withdrawal-input {
    margin-bottom: 8px !important;
  }
}

@media (max-width: 375px) {
  .profile-modal {
    max-height: min(94vh, 660px);
  }

  .profile-modal-header {
    padding: 6px 8px 6px 8px;
  }

  .profile-modal-body {
    padding: 10px 12px 0;
  }

  .profile-header-row {
    margin-bottom: 6px;
    padding-left: 2px; /* внутренний отступ слева */
  }

  .profile-user-icon {
    font-size: 14px;
  }

  .profile-username {
    font-size: 14px;
  }

  .profile-balance {
    font-size: 14px;
  }

  .profile-stat-label {
    font-size: 14px;
  }

  .profile-stat-value {
    font-size: 14px;
  }

  .profile-refresh-btn {
    top: 6px;
    right: 6px;
    padding: 4px;
  }

  .profile-refresh-btn svg {
    width: 13px;
    height: 13px;
  }

  .profile-modal-section-title {
    font-size: 14px;
    margin-bottom: 5px;
  }

  .profile-referral-description {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .profile-referral-link-box {
    padding: 8px 9px;
    margin-bottom: 8px;
  }

  .profile-referral-input {
    font-size: 11px;
  }

  .profile-copy-icon-btn {
    width: 34px;
    height: 34px;
  }

  .profile-share-btn {
    height: 44px;
    font-size: 13px;
    padding: 0 13px;
  }

  .profile-modal-footer {
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  #withdrawal-section {
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Frosted Glass Footer */
.home-footer {
  margin: 3rem 0 0;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.5) inset;
  border-radius: 12px;
}

.footer-title {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.4);
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.65);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 180, 216, 0.3);
  color: #0096c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.1);
}

.footer-link:active {
  transform: translateY(0);
}

.footer-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

/* Города: без дополнительного коридора */
.cities-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-inline: 0;
  /* было var(--gutter-x) */
  width: 100%;
}

/* карточка растягивается на доступную ширину сетки */
.city-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* важно для единообразия */
  min-height: 80px;
  padding: 1.5rem;
  background: #fff;
  border: 2px solid #e5e5e5;
  /* или 1.5px — под баннер */
  border-radius: 12px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 1.125rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.city-card:hover {
  border-color: #0096c7;
  background: #fafafa;
}

.city-card:active {
  transform: translateY(0);
}

/* Media Queries */
/* Medium screens - adjust spacing */
@media (max-width: 900px) {
  .profile-banner {
    gap: 1rem;
    padding: 1rem 1.5rem;
  }

  .profile-bonus-section {
    padding: 0.625rem 0.875rem;
  }

  .profile-bonus-item {
    font-size: 0.8125rem;
  }
}

/* Tablets and small laptops */
@media (max-width: 768px) {
  .profile-banner {
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }

  .profile-bonus-section {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
  }

  .profile-divider {
    display: none;
  }

  .profile-arrow {
    grid-column: 2;
    grid-row: 1;
  }
}

/* Mobile devices */
@media (max-width: 576px) {
  .home-container {
    padding: 0 0.75rem 1.5rem;
  }

  .home-header {
    padding: 1rem 0.75rem 0.875rem;
    margin-bottom: 1rem;
  }

  .home-title {
    font-size: 1.25rem;
  }

  .home-subtitle {
    font-size: 0.75rem;
  }

  .profile-banner {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    padding: 0.875rem 1.125rem;
    min-height: auto;
  }

  .profile-greeting {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
  }

  .profile-balance-inline {
    font-size: 0.875rem;
  }

  .profile-bonus-section {
    padding: 0.625rem 0.875rem;
  }

  .profile-bonus-item {
    font-size: 0.75rem;
  }

  .profile-bonus-item strong {
    font-size: 0.8125rem;
  }

  .city-card {
    padding: 1.125rem;
    font-size: 1rem;
    min-height: 64px;
  }


  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-link {
    justify-content: center;
    padding: 0.75rem 1rem;
  }
}

/* Very small mobile devices */
@media (max-width: 375px) {
  .home-header {
    padding: 0.875rem 0.5rem 0.75rem;
  }

  .home-title {
    font-size: 1.125rem;
  }

  .home-subtitle {
    font-size: 0.6875rem;
  }

  .profile-banner {
    padding: 0.75rem 1rem;
  }

  .profile-greeting {
    font-size: 0.75rem;
  }

  .city-card {
    padding: 1rem;
    font-size: 0.9375rem;
  }

}

/* Cache bust: 1761030293 */


/* Bonus Button (Cart) */
.bonus-btn {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: #ffffff;
  color: #1a1a1a;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;

  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1px;

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  cursor: pointer;

  /* iOS Safari fix */
  -webkit-appearance: none;
  appearance: none;
}

.bonus-btn:hover {
  border-color: #0096c7;
  background: #f0f7ff;
  color: #0096c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 150, 199, 0.12);
}

.bonus-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

/* disabled состояние отталкивается от attr disabled */
.bonus-btn[disabled],
.bonus-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #fafafa;
}

/* когда бонусы применены */
.bonus-btn.is-applied {
  background: linear-gradient(135deg, #e8f8f5 0%, #d5f3ec 100%);
  border-color: #a7e9d7;
  color: #0d9068;
  box-shadow: 0 6px 16px rgba(13, 144, 104, 0.12);
}

.bonus-btn.is-applied:hover {
  background: linear-gradient(135deg, #e2f6f1 0%, #cef0e8 100%);
  border-color: #94e3cd;
}

/* недостаточно бонусов */
.bonus-btn.is-insufficient {
  background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
  border-color: #ffb84d;
  color: #cc6600;
}

/* индикатор загрузки */
.bonus-btn.is-loading {
  position: relative;
  pointer-events: none;
  color: #999;
}

.bonus-btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: #0096c7;
  animation: vo-spin 0.75s linear infinite;
  display: inline-block;
}

@keyframes vo-spin {
  to {
    transform: rotate(360deg);
  }
}

/* маленький бейдж со значением */
.bonus-amount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;

  background: #f0f7ff;
  color: #0096c7;
  border: 1px solid #cfe9ff;
}

/* Бейджи для бонусов и доставки */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-green {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.badge-purple {
  background: #e8d9f5;
  color: #5a1a8c;
  border: 1px solid #d4c0ea;
}

.badge-blue {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.badge-orange {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* мобильные правки */
@media (max-width: 576px) {
  .bonus-btn {
    height: 44px;
    font-size: 0.9rem;
  }
}


/* Мобильный режим модалки без скролла */
@media (max-width: 576px) {

  /* прижимаем к низу, чтоб не упиралось в шапку Телеги */
  .order-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .order-modal-card {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 88vh;
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
  }

  /* делаем шапку компактнее */
  .order-success-icon {
    margin-bottom: 0.5rem;
  }

  .order-success-icon svg {
    width: 50px;
    height: 50px;
  }

  .order-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }

  .order-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  /* Компактный блок с номером заявки */
  .order-number-block {
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
  }

  .order-number-block .order-id-label {
    font-size: 0.65rem;
    margin-bottom: 0.125rem;
  }

  .order-number-block .order-id-value {
    font-size: 1rem;
  }

  /* Итого к получению остается большим */
  .order-id-block {
    padding: 1rem;
    margin: 0.75rem 0;
  }

  .order-id-label {
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
  }

  .order-id-value {
    font-size: 1.5rem;
  }

  .totals-bonuses {
    margin-top: 0.5rem;
    gap: 0.3rem;
  }

  .totals-bonuses .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }

  /* самое главное — скрываем длинные строки позиций */
  .order-details .order-item-compact {
    display: none;
  }

  /* но оставляем маленькие строки типа "Позиций", "Место встречи" */
  .order-details {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
    margin-top: 0.5rem;
  }

  .order-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
    padding: 0.5rem 0;
  }

  .order-detail-label {
    font-size: 0.75rem;
  }

  /* место встречи и контакт — если длинные, то обрезать */
  .order-detail-value {
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
  }

  .order-delivery-notice {
    padding: 0.5rem;
    margin: 0.75rem 0;
    font-size: 0.8rem;
  }

  /* кнопка — компактнее */
  .order-primary-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    height: 44px;
    font-size: 0.9375rem;
  }

  .order-close-btn {
    width: 32px;
    height: 32px;
    top: 0.75rem;
    right: 0.75rem;
  }
}


.profile-modal-footer {
  position: sticky;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 0px);
  background: #fff;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #EEF2F5;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
  z-index: 10;
}
/* 
#profile-stats {
  display: none;
} */

.form-group-compact {
  margin-bottom: None; /* Меньший отступ */
}