/* Disable webkit tap highlight on mobile devices */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection for specific elements */
input, textarea, [contenteditable] {
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

:root {
  --bg: #000;
  --card: rgba(10,10,10,0.98);
  --white: #fff;
  --gray: #b0b0b8;
  --border: #fff2;
  --shadow: 0 8px 32px 0 rgba(255,255,255,0.07);
  --radius: 2.2rem;
  --radius-sm: 1.2rem;
  --accent: #00ffb3;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  /* Мобильные улучшения */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Улучшения для мобильных устройств */
* {
  box-sizing: border-box;
}

/* Убираем выделение текста на мобильных */
.profile-card, .profile-btn, .profile-table-row {
  /* Уже отключено глобально */
}

/* Убираем подсветку тапов */
button, .profile-btn, a {
  /* Уже отключено глобально */
  touch-action: manipulation;
}

body::before {
  content: '';
  position: fixed;
  z-index: 0;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  opacity: 0.38;
  background:
    radial-gradient(ellipse 60% 40% at 8% 12%, #00ffb399 0%, transparent 90%),
    radial-gradient(ellipse 50% 38% at 92% 18%, #ffb30099 0%, transparent 90%),
    radial-gradient(ellipse 55% 28% at 12% 88%, #ff6a0099 0%, transparent 90%),
    radial-gradient(ellipse 38% 50% at 85% 95%, #00ffb399 0%, transparent 90%),
    radial-gradient(ellipse 40% 22% at 70% 60%, #ffb30099 0%, transparent 90%),
    radial-gradient(ellipse 22% 40% at 30% 80%, #ff6a0099 0%, transparent 90%);
  filter: blur(90px) hue-rotate(0deg);
  animation: main-bg-move 18s ease-in-out infinite alternate, main-bg-hue 24s linear infinite;
}

@keyframes main-bg-move {
  0% {
    background-position:
      8% 12%, 92% 18%, 12% 88%, 85% 95%, 70% 60%, 30% 80%;
  }
  100% {
    background-position:
      12% 18%, 88% 22%, 18% 92%, 80% 85%, 75% 65%, 25% 75%;
  }
}

@keyframes main-bg-hue {
  0% { filter: blur(90px) hue-rotate(0deg); }
  100% { filter: blur(90px) hue-rotate(360deg); }
}

body > * { position: relative; z-index: 1; }

.profile-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3em 1em 2em 1em;
  display: flex;
  gap: 2.5em;
  min-height: 90vh;
}

.profile-main {
  flex: 4 1 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  padding: 2.5em 2em 2em 2em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2em;
  min-width: 0;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5em;
  width: 100%;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gray);
  color: var(--bg);
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  box-shadow: 0 2px 12px #0002;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.profile-channels-row {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: 0.2em;
}

.profile-channels {
  color: var(--gray);
  font-size: 1.05rem;
}

.profile-edit-btn {
  background: var(--white);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5em 1.2em;
  font-size: 1rem;
  font-weight: 700;
  margin-left: 0.7em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px #fff2;
  /* Улучшения для тач-интерфейса */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  min-height: 44px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.profile-edit-btn:hover {
  background: #222;
  color: var(--white);
}

.profile-balance-row {
  display: flex;
  align-items: center;
  gap: 2em;
  margin-top: 0.7em;
  flex-wrap: wrap;
  min-width: 0;
}

.profile-balance, .profile-month {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.profile-balance {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.profile-month {
  color: var(--gray);
  font-size: 1.05rem;
  font-weight: 500;
}

.profile-table-wrap {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  margin-top: 1.5em;
  overflow: hidden;
  position: relative;
}

.profile-table-header {
  display: flex;
  background: #18181f;
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
  border-bottom: 2px solid var(--border);
  cursor: pointer;
}

.profile-table-header > div {
  flex: 1 1 0;
  padding: 1em 0.5em;
  text-align: center;
  user-select: none;
  transition: all 0.2s;
  position: relative;
  border-radius: 4px;
  margin: 2px;
}

.profile-table-header > div:hover {
  background: #23232b;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 255, 179, 0.1);
}

.profile-table-header > div[data-sort] {
  cursor: pointer;
}

.profile-table-header > div:active {
  transform: translateY(0);
}

.profile-table-row {
  display: flex;
  color: var(--gray);
  font-size: 1.05rem;
  border-bottom: 1px solid #23232b;
  transition: background 0.2s;
}

.profile-table-row:last-child {
  border-bottom: none;
}

.profile-table-row > div {
  flex: 1 1 0;
  padding: 0.9em 0.5em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7em 1em;
  background: #18181f;
  color: var(--gray);
  font-size: 1rem;
}

.profile-table-download {
  background: var(--white);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.4em 1.1em;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  box-shadow: 0 2px 12px #fff2;
}

.profile-table-download:hover {
  background: #222;
  color: var(--white);
}

.profile-table-more {
  background: none;
  color: var(--gray);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 1em;
  text-decoration: underline;
  transition: color 0.2s;
}

.profile-table-more:hover {
  color: var(--white);
}

.profile-divider {
  width: 100%;
  height: 1.5px;
  background: var(--border);
  margin: 2.5em 0 1.2em 0;
  border-radius: 2px;
}

.profile-bottom-row {
  width: 100%;
  text-align: center;
  color: var(--gray);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2em;
}

.profile-bottom-link {
  color: var(--gray);
  text-decoration: underline;
  transition: color 0.2s;
}

.profile-bottom-link:hover {
  color: var(--white);
}

/* Правый сектор */
.profile-side {
  flex: 2 1 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  padding: 2.5em 1.2em 2em 1.2em;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  min-width: 0;
  max-width: 340px;
  align-items: flex-start;
  height: fit-content;
}

.profile-pages-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.7em;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.profile-pages-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  position: relative;
}

.profile-page-item {
  background: #18181f;
  border-radius: var(--radius-sm);
  padding: 0.7em 1em;
  color: var(--gray);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: 1.5px solid #23232b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7em;
}

.profile-page-item:hover {
  background: #23232b;
  color: var(--white);
}

.profile-add-page {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.7em 1em;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  box-shadow: 0 2px 12px #00ffb344;
  width: 100%;
}

.profile-add-page:hover {
  background: #fff;
  color: var(--bg);
}

.profile-balance-label {
  color: var(--gray);
  font-size: 1rem;
  margin-top: 0.1em;
  font-weight: 500;
}

.profile-withdraw-btn {
  background: #18181f;
  color: var(--gray);
  border: 1.5px solid #23232b;
  border-radius: var(--radius-sm);
  padding: 0.4em 1.1em;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 1.2em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  opacity: 0.7;
  box-shadow: 0 2px 12px #0002;
  /* Улучшения для тач-интерфейса */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  min-height: 44px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.profile-withdraw-btn:hover {
  background: #23232b;
  color: var(--white);
  border-color: var(--accent);
  opacity: 1;
}

/* Планшеты и средние экраны */
@media (max-width: 900px) {
  .profile-wrap {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
    padding: 2rem 1rem;
  }
  
  .profile-main, .profile-side {
    max-width: 100%;
    width: 100%;
  }
  
  .profile-side {
    align-items: stretch;
  }
}

/* Мобильные устройства - статичный фон для производительности */
@media (max-width: 768px) {
  /* Убираем анимированный фон на мобильных */
  body::before {
    animation: none !important;
    background: 
      radial-gradient(ellipse 60% 40% at 10% 15%, #00ffb399 0%, transparent 90%),
      radial-gradient(ellipse 50% 38% at 90% 20%, #ffb30099 0%, transparent 90%),
      radial-gradient(ellipse 55% 28% at 15% 85%, #ff6a0099 0%, transparent 90%),
      radial-gradient(ellipse 38% 50% at 85% 90%, #00ffb399 0%, transparent 90%);
    filter: blur(60px);
    opacity: 0.25;
  }
  
  /* Улучшения центрирования модальных окон */
  .edit-modal-overlay,
  .profile-notification-modal-overlay {
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh; /* Для поддержки новых единиц */
  }
  .profile-wrap {
    padding: 1.5rem 0.8rem;
    gap: 1.5rem;
  }
  
  /* Скрываем график и настройки на мобильных */
  .profile-graph, 
  .profile-graph-row,
  .profile-graph-settings,
  .profile-graph-dates {
    display: none !important;
  }
  
  /* Уменьшаем отступы и делаем bottom-row компактнее */
  .profile-main {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    gap: 1.5rem;
  }
  
  .profile-bottom-row {
    font-size: 0.9rem;
    gap: 0.8rem;
    margin-top: 0.5rem;
    flex-wrap: nowrap;
  }
  
  .profile-divider {
    margin: 1.5rem 0 0.8rem 0;
  }
  
  .profile-avatar {
    width: 64px !important;
    height: 64px !important;
    flex-shrink: 0;
    flex-grow: 0;
  }
  
  /* Адаптивный перенос кнопки Withdraw при нехватке места */
  .profile-balance-row {
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: flex-start;
  }
  
  .profile-withdraw-btn {
    order: 3;
    margin-left: 0;
  }
  
  /* Улучшения для прокрутки таблиц */
  .profile-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Маленькие мобильные экраны - еще более компактно */
@media (max-width: 480px) {
  .profile-wrap {
    padding: 1rem 0.5rem;
    gap: 1rem;
  }
  
  .profile-main, .profile-side {
    padding: 1.2rem 1rem 0.8rem 1rem;
  }
  
  .profile-bottom-row {
    font-size: 0.85rem;
    gap: 0.6rem;
    margin-top: 0.3rem;
  }
  
  .profile-divider {
    margin: 1rem 0 0.5rem 0;
  }
  
  .profile-avatar {
    width: 64px !important;
    height: 64px !important;
    flex-shrink: 0;
    flex-grow: 0;
  }
  
  /* Принудительный перенос кнопки на новую строку */
  .profile-balance-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .profile-balance-row > div:first-child {
    align-self: flex-start;
  }
  
  .profile-withdraw-btn {
    align-self: flex-start;
    order: 2;
    width: auto;
  }
  
  .profile-month {
    order: 3;
    align-self: flex-start;
  }
}

/* Очень маленькие экраны - максимально компактно */
@media (max-width: 360px) {
  .profile-wrap {
    padding: 0.8rem 0.3rem;
  }
  
  .profile-main, .profile-side {
    padding: 1rem 0.8rem 0.6rem 0.8rem;
  }
  
  .profile-bottom-row {
    font-size: 0.8rem;
    gap: 0.5rem;
    margin-top: 0.2rem;
  }
  
  .profile-divider {
    margin: 0.8rem 0 0.4rem 0;
  }
  
  .profile-avatar {
    width: 64px !important;
    height: 64px !important;
    flex-shrink: 0;
    flex-grow: 0;
  }
  
  /* Вертикальное расположение для очень маленьких экранов */
  .profile-balance-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  
  .profile-withdraw-btn {
    width: auto;
    order: 2;
  }
  
  .profile-month {
    order: 3;
  }
}

/* Мобильные стили для модальных окон */
@media (max-width: 768px) {
  .edit-modal-content {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .edit-modal-left, .edit-modal-right {
    flex: none;
  }
  
  .edit-modal {
    width: calc(100vw - 2rem) !important;
    max-width: none !important;
    margin: 0;
  }
  
  /* Модальное окно уведомлений на мобильных */
  .profile-notification-modal {
    width: calc(100vw - 2rem) !important;
    max-width: none !important;
    margin: 0;
  }
  
  .profile-notification-modal-header {
    padding: 1.2rem 1.5rem 0.8rem 1.5rem;
  }
  
  .profile-notification-modal-content {
    padding: 1.2rem 1.5rem;
  }
  
  .profile-notification-modal-buttons {
    padding: 0.8rem 1.5rem 1.2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .edit-modal-content {
    padding: 1rem;
    gap: 1rem;
  }
  
  .edit-modal {
    width: calc(100vw - 1rem) !important;
    margin: 0;
  }
  
  /* Модальное окно уведомлений для маленьких экранов */
  .profile-notification-modal {
    width: calc(100vw - 1rem) !important;
    margin: 0;
  }
  
  .profile-notification-modal-header {
    padding: 1rem 1.2rem 0.6rem 1.2rem;
  }
  
  .profile-notification-modal-content {
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .profile-notification-modal-buttons {
    padding: 0.6rem 1.2rem 1rem 1.2rem;
  }
  
  .profile-notification-ok-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .edit-modal-section {
    margin-bottom: 1rem;
  }
}

/* Вертикальное центрирование для низких экранов */
@media screen and (max-height: 600px) {
  .edit-modal-overlay,
  .profile-notification-modal-overlay {
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .edit-modal,
  .profile-notification-modal {
    margin-top: 0;
    margin-bottom: 0;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }
}

/* Ландшафтная ориентация на мобильных */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .profile-wrap {
    padding: 1rem 0.5rem;
    gap: 1rem;
  }
  
  .profile-header {
    flex-direction: row;
    gap: 1rem;
    text-align: left;
  }
  
  .profile-avatar {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.5rem;
    flex-shrink: 0;
    flex-grow: 0;
  }
  
  .profile-name {
    font-size: 1.3rem;
  }
  
  .profile-balance-row {
    flex-direction: row;
    gap: 1rem;
  }
}

/* Модальное окно уведомлений для профиля */
.profile-notification-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
  box-sizing: border-box;
}

.profile-notification-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.profile-notification-modal {
  background: var(--card);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.profile-notification-modal-overlay.show .profile-notification-modal {
  transform: scale(1) translateY(0);
}

.profile-notification-modal-header {
  padding: 1.5rem 2rem 1rem 2rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.profile-notification-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-notification-icon.error {
  background: rgba(255, 71, 87, 0.2);
}

.profile-notification-icon.success {
  background: rgba(46, 213, 115, 0.2);
}

.profile-notification-icon.warning {
  background: rgba(255, 183, 3, 0.2);
}

.profile-notification-icon.info {
  background: rgba(0, 123, 255, 0.2);
}

.profile-notification-modal-header h3 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.profile-notification-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-notification-modal-close:hover {
  color: var(--white);
  transform: rotate(90deg);
}

.profile-notification-modal-content {
  padding: 1.5rem 2rem;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.5;
}

.profile-notification-modal-content p {
  margin: 0;
  white-space: pre-line;
}

.profile-notification-modal-buttons {
  padding: 1rem 2rem 1.5rem 2rem;
  display: flex;
  justify-content: center;
}

.profile-notification-ok-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0, 255, 179, 0.3);
  min-width: 120px;
}

.profile-notification-ok-btn:hover {
  background: #fff;
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 179, 0.4);
}

/* Стили модальных окон */
.edit-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.edit-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.edit-modal {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--transition);
  position: relative;
  z-index: 10001;
}

.edit-modal-overlay.show .edit-modal {
  transform: scale(1);
}

.edit-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid var(--border);
}

.edit-modal-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}

.edit-modal-close {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.edit-modal-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.edit-modal-content {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

.edit-modal-left,
.edit-modal-right {
  flex: 1;
}

.edit-modal-section {
  margin-bottom: 2rem;
}

.edit-modal-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.edit-modal-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 1rem;
  transition: all var(--transition);
  margin-bottom: 1rem;
}

.edit-modal-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.edit-modal-input::placeholder {
  color: var(--gray);
}

.edit-modal-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 1rem;
  transition: all var(--transition);
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.edit-modal-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.edit-modal-textarea::placeholder {
  color: var(--gray);
}

.edit-modal-button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.edit-modal-button:hover {
  background: #fff;
  color: var(--bg);
  transform: translateY(-2px);
}

.edit-modal-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid var(--border);
}

.edit-modal-button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.edit-modal-divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

.edit-modal-info {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Стили для чекбокса */
.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  margin-right: 0.8rem;
  position: relative;
  transition: all var(--transition);
}

.custom-checkbox:hover .checkmark {
  border-color: var(--accent);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg);
  font-size: 12px;
  font-weight: bold;
}

.policy-link {
  color: var(--accent);
  text-decoration: none;
}

.policy-link:hover {
  text-decoration: underline;
}

/* Стили для секции подаренных страниц */
.gifted-pages-section {
  background: rgba(0, 255, 179, 0.1);
  border: 1px solid rgba(0, 255, 179, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}

.gifted-pages-section .edit-modal-section-title {
  color: var(--accent);
} 