*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #181920;
  color: #e6e6e6;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  background: #23272f;
  border-bottom: 2px solid #333;
}

header h1 {
  margin: 16px 0;
  font-size: 1.8em;
  letter-spacing: 2px;
  font-weight: 600;
}

header nav {
  display: flex;
  gap: 10px;
  margin-left: 30px;
}

.user-info {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Buttons */
.btn {
  background: #353a44;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
  outline: none;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn:disabled {
  background: #555;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-primary {
  background: #4e8cff;
}

.btn-primary:hover:not(:disabled) {
  background: #3a7bef;
}

.btn-secondary {
  background: #555;
}

.btn-secondary:hover {
  background: #666;
}

.btn-clean {
  background: #6366f1;
}

.btn-clean:hover {
  background: #4f46e5;
}

/* Auth page */
.auth-main {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.auth-panel {
  background: #23272f;
  border-radius: 12px;
  padding: 40px;
  min-width: 350px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-panel h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 25px;
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#auth-form input {
  padding: 12px 18px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  background: #353a44;
  color: #fff;
  transition: outline 0.2s;
}

#auth-form input:focus {
  outline: 2px solid #4e8cff;
}

/* Messages */
.error-message, .message {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
}

.error-message, .message-error {
  background: #d32f2f;
  color: #fff;
}

.message-success {
  background: #2e7d32;
  color: #fff;
}

/* Shop */
.shop-container {
  max-width: 1400px;
  margin: 0 auto;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.shop-item {
  background: #23272f;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #333;
}

.shop-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(78, 140, 255, 0.2);
  border-color: #4e8cff;
}

.item-icon {
  width: clamp(64px, 20vw, 120px);
  height: clamp(64px, 20vw, 120px);
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(78, 140, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.item-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.icon-placeholder {
  font-size: 2.5em;
  color: #4e8cff;
  font-weight: 600;
}

.shop-item h4 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  color: #e6e6e6;
}

.item-description {
  color: #999;
  font-size: 0.9em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.item-price {
  font-size: 1.3em;
  color: #4e8cff;
  font-weight: 600;
  margin-bottom: 15px;
}

.item-buy-btn {
  margin-top: auto;
  width: 100%;
}

/* Purchase Modal */
.purchase-modal {
  max-width: 420px;
}

.purchase-desc {
  color: #999;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.purchase-price-row,
.purchase-total-row,
.purchase-balance-row,
.purchase-remaining-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.purchase-label {
  color: #aaa;
  font-size: 0.95em;
}

.purchase-value {
  color: #4e8cff;
  font-weight: 600;
  font-size: 1.1em;
}

.purchase-qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.purchase-qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-qty {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.purchase-qty-input {
  width: 65px;
  text-align: center;
  font-size: 1.1em;
  padding: 6px;
  -moz-appearance: textfield;
}

.purchase-qty-input::-webkit-inner-spin-button,
.purchase-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.purchase-summary {
  background: rgba(78, 140, 255, 0.05);
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 15px;
}

.purchase-total {
  font-size: 1.3em;
  font-weight: 700;
  color: #4e8cff;
}

.purchase-remaining-row.enough {
  color: #4caf50;
}

.purchase-remaining-row.not-enough {
  color: #f44;
}

.purchase-remaining-row .remaining-value {
  font-weight: 600;
}

/* History */
.history-container {
  max-width: 1200px;
  margin: 0 auto;
}

.transactions-list {
  background: #23272f;
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
}

.transactions-table thead {
  background: #353a44;
}

.transactions-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #4e8cff;
}

.transactions-table td {
  padding: 15px;
  border-bottom: 1px solid #333;
}

.transactions-table tbody tr:hover {
  background: #2a2e36;
}

.transaction-type {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.9em;
  white-space: nowrap;
}

.transaction-type.positive {
  background: rgba(46, 125, 50, 0.3);
  color: #4caf50;
}

.transaction-type.negative {
  background: rgba(211, 47, 47, 0.3);
  color: #f44336;
}

.transaction-type.neutral {
  background: rgba(99, 102, 241, 0.3);
  color: #6366f1;
}

.amount-cell {
  font-weight: 600;
  text-align: right;
}

.amount-cell.positive {
  color: #4caf50;
}

.amount-cell.negative {
  color: #f44336;
}

.date-cell {
  color: #999;
  font-size: 0.9em;
}

/* Form Elements */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #999;
  font-size: 0.9em;
}

.form-group input, .form-group select, .form-group textarea {
  padding: 12px 18px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
  background: #353a44;
  color: #fff;
  font-family: inherit;
}

.form-group select {
  cursor: pointer;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 2px solid #4e8cff;
}

/* Empty State */
.empty-state {
  padding: 60px 20px;
  text-align: center;
}

/* Moderation Page */
.moderation-container {
  max-width: 1400px;
  margin: 0 auto;
}

.moderators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.moderator-card {
  background: #23272f;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid #333;
  text-align: center;
}

.moderator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(78, 140, 255, 0.2);
  border-color: #4e8cff;
}

.moderator-card.create-card {
  cursor: pointer;
  border-style: dashed;
  justify-content: center;
  min-height: 300px;
}

.moderator-card.create-card:hover {
  background: #2a2e36;
  border-color: #6366f1;
}

.moderator-avatar {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #353a44;
  display: flex;
  align-items: center;
  justify-content: center;
}

.moderator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.avatar-placeholder {
  font-size: 3em;
  color: #4e8cff;
  font-weight: 600;
}

.moderator-info-section {
  width: 100%;
}

.moderator-name {
  font-size: 1.1em;
  font-weight: 600;
  color: #e6e6e6;
  margin-bottom: 5px;
}

.moderator-position {
  color: #6366f1;
  font-size: 0.85em;
  margin-bottom: 10px;
  font-weight: 500;
}

.moderator-pending-badge {
  display: inline-block;
  background: #f59e0b33;
  color: #f59e0b;
  font-size: 0.75em;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.pending-card {
  opacity: 0.7;
  border: 1px dashed #f59e0b55;
}

.moderator-balance-display {
  color: #4e8cff;
  font-size: 1em;
  font-weight: 600;
  margin: 10px 0;
}

.form-input {
  padding: 12px 18px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
  background: #353a44;
  color: #fff;
  font-family: inherit;
  width: 100%;
}

.form-input:focus {
  outline: 2px solid #4e8cff;
}

.btn-small {
  padding: 5px 12px;
  font-size: 14px;
  min-width: 40px;
}

/* Modal */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 12px;
  overflow-y: auto;
}

.modal-content {
  background-color: #23272f;
  padding: 30px;
  border-radius: 12px;
  width: min(96vw, 500px);
  max-width: 500px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.btn-danger {
  background-color: #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
}

.close {
  color: #999;
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 28px;
  font-weight: bold;
  line-height: 28px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1;
}

.close:hover {
  color: #fff;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #4e8cff;
  padding-right: 40px;
}

.manage-section {
  margin-bottom: 15px;
}

.manage-section .form-group {
  margin-bottom: 12px;
}

.manage-section .form-group:last-of-type {
  margin-bottom: 15px;
}

.manage-section h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
}

.modal-content form .form-group {
  margin-bottom: 14px;
}

.modal-content form .form-group:last-of-type {
  margin-bottom: 18px;
}

.modal-content form > .btn {
  margin-top: 8px;
}

.modal-content form select,
.modal-content form input[type="text"],
.modal-content form input[type="number"],
.modal-content form input[type="password"],
.modal-content form textarea {
  padding: 12px 18px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
  background: #353a44;
  color: #fff;
  font-family: inherit;
  width: 100%;
}

.modal-content form select:focus,
.modal-content form input:focus,
.modal-content form textarea:focus {
  outline: 2px solid #4e8cff;
}

/* Shop Editor */
.shop-editor-container {
  max-width: 1400px;
  margin: 0 auto;
}

.editor-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.editor-item-card {
  background: #23272f;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid #333;
  transition: transform 0.2s, box-shadow 0.2s;
}

.editor-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(78, 140, 255, 0.15);
  border-color: #4e8cff;
}

.editor-item-card.inactive {
  opacity: 0.5;
  border-color: #555;
}

.editor-item-card.inactive:hover {
  border-color: #888;
}

.editor-item-card.create-card {
  cursor: pointer;
  border-style: dashed;
  justify-content: center;
  min-height: 100px;
}

.editor-item-card.create-card:hover {
  background: #2a2e36;
  border-color: #6366f1;
}

.editor-item-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(78, 140, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.editor-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-item-info {
  flex: 1;
  min-width: 0;
}

.editor-item-name {
  font-size: 1.05em;
  font-weight: 600;
  color: #e6e6e6;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-item-desc {
  color: #999;
  font-size: 0.85em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-item-price {
  color: #4e8cff;
  font-weight: 600;
  font-size: 0.95em;
}

.editor-item-inactive-badge {
  color: #dc3545;
  font-size: 0.8em;
  font-weight: 500;
  margin-top: 2px;
}

.editor-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* File Upload */
.file-upload-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-wrap: wrap;
}

.file-upload-label input[type="file"] {
  display: none;
}

.file-upload-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #23272f;
  border: 1px solid #35394a;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.file-upload-btn:hover {
  background: #2c313a;
  border-color: #4e8cff;
}

.file-upload-name {
  color: #999;
  font-size: 0.85em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.image-preview {
  margin-top: 8px;
}

.image-preview img {
  max-width: 100%;
  max-height: 150px;
  border-radius: 8px;
  border: 1px solid #35394a;
  object-fit: contain;
}

.image-preview-empty {
  color: #999;
  font-size: 0.85em;
}

/* Toast Notifications */
#toastContainer {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 400px;
  max-width: calc(100vw - 40px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #23272f;
  border-left: 4px solid #4e8cff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease-out forwards;
  min-width: 0;
  position: relative;
}

.toast.success {
  border-left-color: #4caf50;
}

.toast.error {
  border-left-color: #dc3545;
}

.toast.warning {
  border-left-color: #ff9800;
}

.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.toast.success .toast-icon::before {
  content: '✓';
  color: #4caf50;
}

.toast.error .toast-icon::before {
  content: '✕';
  color: #dc3545;
}

.toast.warning .toast-icon::before {
  content: '⚠';
  color: #ff9800;
}

.toast-content {
  flex: 1;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.toast-close {
  color: #999;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  background: none;
  border: none;
  transition: color 0.2s;
}

.toast-close:hover {
  color: #fff;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }

  header h1 {
    font-size: 1.4em;
  }

  header nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .user-info {
    margin-left: auto;
  }

  .items-grid {
    grid-template-columns: 1fr;
  }

  .moderators-grid {
    grid-template-columns: 1fr;
  }

  .editor-items-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
  }

  #toastContainer {
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
  }
}

/* ─── Утилитарные классы (замена inline-стилей) ────────────────── */

.page-title {
  margin-bottom: 25px;
  font-size: 2em;
}

.main-content {
  flex: 1;
  padding: 20px;
}

.site-footer {
  text-align: center;
  padding: 20px;
  color: #666;
  border-top: 1px solid #333;
}

.user-info__link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.user-info__link:hover {
  background: rgba(78, 140, 255, 0.1);
}

.user-info__avatar {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #444;
  image-rendering: pixelated;
  transition: border-color 0.2s;
}

.user-info__link:hover .user-info__avatar {
  border-color: #4e8cff;
}

.user-info__text {
  text-align: right;
}

.user-info__name {
  font-weight: 600;
}

.user-info__balance {
  color: #4e8cff;
  font-size: 14px;
}

.text-muted {
  color: #999;
}

.text-secondary {
  color: #666;
}

/* Auth pages */
.auth-hint {
  text-align: center;
  margin-top: 20px;
  color: #999;
  font-size: 0.85em;
}

/* Invite info */
.invite-info {
  margin-bottom: 20px;
  padding: 15px;
  background: #353a44;
  border-radius: 8px;
}

.invite-info__label {
  margin: 0 0 10px 0;
  color: #999;
}

.invite-info__nick {
  margin: 0;
  font-size: 1.1em;
  color: #4e8cff;
  font-weight: 600;
}

.invite-info__position {
  margin: 5px 0 0 0;
  color: #6366f1;
}

/* Invite link input inside toast */
.invite-link-input {
  width: 100%;
  margin-top: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #4e8cff;
  color: #fff;
  padding: 5px;
  border-radius: 4px;
  font-size: 12px;
}

/* Moderator manage button */
.moderator-manage-btn {
  margin-top: 15px;
  width: 100%;
}

/* Modal helpers */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.modal-content--wide {
  max-width: 680px;
  width: min(96vw, 680px);
}

.modal-divider {
  border: none;
  border-top: 1px solid #333;
  margin: 18px 0;
}

/* ─── Скроллбар (сайт и модалки) ───────────────────────────────── */
body,
.modal-content {
  scrollbar-color: #6b7280 transparent;
  scrollbar-width: thin;
}

body::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
  background-color: #6b7280;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #808896;
}

.manage-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background: #1e2128;
  border-radius: 8px;
}

.manage-header__name {
  font-size: 18px;
  font-weight: 600;
}

.manage-header__position {
  color: #4e8cff;
  margin-top: 5px;
}

.manage-header__balance {
  color: #999;
  margin-top: 5px;
}

.manage-section__title {
  margin-bottom: 10px;
  color: #4e8cff;
}

.manage-section__title--danger {
  color: #dc3545;
}

.manage-row {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.btn-full {
  width: 100%;
}

.btn-center {
  display: block;
  text-align: center;
  margin-top: 15px;
}

/* Form two-column row */
.form-row-2 {
  display: flex;
  gap: 10px;
}

.form-row-2 > .form-group {
  flex: 1;
}

/* Inline form (for action buttons) */
.inline-form {
  display: inline;
}

/* Item buy form */
.item-buy-form {
  margin-top: auto;
}

/* Empty state */
.empty-state__text {
  text-align: center;
  color: #999;
  font-size: 1.2em;
}

/* ─── Предпросмотр зарплаты ─────────────────────────────────────── */
.salary-preview {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 600;
  min-height: 22px;
}

.salary-preview--ok {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

.salary-preview--error {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.salary-hint {
  margin-top: 6px;
  font-size: 0.8em;
  color: #888;
}

/* ─── Страница профиля ──────────────────────────────────────────── */

.profile-container {
  max-width: 900px;
  margin: 0 auto;
}

.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 25px;
  align-items: start;
}

/* Карточка игрока */
.profile-card {
  background: #23272f;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  border: 1px solid #333;
  position: sticky;
  top: 20px;
}

.profile-card__avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid #353a44;
}

.profile-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.profile-card__name {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-card__position {
  color: #4e8cff;
  font-size: 0.95em;
  margin-bottom: 10px;
}

.profile-card__balance {
  font-size: 1.1em;
  font-weight: 600;
  color: #4caf50;
  margin-bottom: 18px;
}

.profile-card__actions {
  margin-top: 10px;
}

/* Секции настроек */
.profile-settings {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-section {
  background: #23272f;
  border-radius: 12px;
  padding: 22px;
  border: 1px solid #333;
}

.profile-section__title {
  font-size: 1.1em;
  margin: 0 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}

.profile-section .form-group {
  margin-bottom: 14px;
}

.profile-section .form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9em;
  color: #aaa;
}

.profile-section .form-input {
  width: 100%;
  padding: 10px 12px;
  background: #181920;
  border: 1px solid #444;
  border-radius: 6px;
  color: #e6e6e6;
  font-size: 15px;
  transition: border-color 0.2s;
}

.profile-section .form-input:focus {
  border-color: #4e8cff;
  outline: none;
}

/* Мини-список транзакций */
.profile-transactions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-tx {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #1e2128;
  border-radius: 6px;
}

.profile-tx__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-tx__desc {
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-tx__date {
  font-size: 0.75em;
  color: #666;
}

.profile-tx__amount {
  font-weight: 700;
  font-size: 0.95em;
  white-space: nowrap;
  margin-left: 10px;
}

.profile-tx__amount.positive {
  color: #4caf50;
}

.profile-tx__amount.negative {
  color: #ff6b6b;
}

/* Информация об аккаунте */
.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  background: #1e2128;
  border-radius: 6px;
}

.profile-info-label {
  font-size: 0.8em;
  color: #888;
}

.profile-info-value {
  font-weight: 600;
}

/* Адаптив профиля */
@media (max-width: 700px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: static;
  }

  .profile-info-grid {
    grid-template-columns: 1fr;
  }
}

