/* ===== MODERN APP STYLES ===== */
:root {
  --font: 'Inter', 'Roboto', sans-serif;
  --primary: #1a7a0a;
  --primary-light: #22a312;
  --primary-dark: #0d4d04;
  --accent: #f0c040;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font);
}

/* Glass header */
.glass-header {
  background: #121212 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600 !important;
  font-size: 18px !important;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px;
}

.logo-text {
  line-height: 1.2;
}

.logo-icon { font-size: 22px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.btn-header {
  padding: 11px 28px;
  min-width: 100px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-align: center;
  display: inline-block;
}

.btn-header.btn-outline {
  color: #fff !important;
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
}

.btn-header.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #fff !important;
  color: #fff !important;
  transform: none;
}

.btn-header.btn-primary {
  background: linear-gradient(135deg, #1a7a0a, #22a312) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(26, 122, 10, 0.35);
}

.btn-header.btn-primary:hover {
  background: linear-gradient(135deg, #1f8f0c, #28b814) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 122, 10, 0.45);
}

.user-badge {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8px;
  white-space: nowrap;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card {
  transition: transform var(--transition), box-shadow var(--transition) !important;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.btn-order {
  transition: all var(--transition) !important;
  border-radius: 50px !important;
}

.btn-order:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(29, 109, 0, 0.4);
}

.home-hero h1 {
  animation: fadeUp 0.8s ease forwards;
}

/* Hero CTA */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn-hero {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition);
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 6px 20px rgba(26, 122, 10, 0.35);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26, 122, 10, 0.45);
}

.btn-hero-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  background: transparent;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Auth pages */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(6, 28, 10, 0.72), rgba(13, 77, 4, 0.62));
}

.auth-card {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.auth-header { text-align: center; margin-bottom: 32px; }

.auth-logo {
  margin-bottom: 12px;
}

.auth-logo img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.auth-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.auth-header p { color: #666; font-size: 15px; }

.auth-form .form-group { margin-bottom: 18px; }

.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  margin-bottom: 6px;
}

.auth-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,122,10,0.15);
}

.btn-submit-modern {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}

.btn-submit-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,122,10,0.4);
}

.auth-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #666;
}

.auth-link a {
  color: var(--primary);
  font-weight: 600;
}

/* Cabinet & Admin layout */
.app-page {
  background: #f0f4f0;
}

.cabinet-page, .admin-page {
  min-height: calc(100vh - 70px);
  padding: 24px 20px;
}

.cabinet-container, .admin-container {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  height: calc(100vh - 120px);
  min-height: 500px;
}

.cabinet-sidebar, .admin-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.profile-card {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.profile-avatar.small {
  width: 40px;
  height: 40px;
  font-size: 18px;
  margin: 0;
}

.profile-card h2 { font-size: 18px; color: #111; margin-bottom: 4px; }
.profile-card p { font-size: 13px; color: #888; }
.profile-phone { color: var(--primary) !important; font-weight: 500; }

.sidebar-info h3 { font-size: 15px; margin-bottom: 8px; color: #333; }
.sidebar-info p { font-size: 13px; color: #777; line-height: 1.6; }

.admin-sidebar h2 { font-size: 18px; margin-bottom: 4px; }
.admin-subtitle { font-size: 13px; color: #888; margin-bottom: 20px; }

.conversations-list { display: flex; flex-direction: column; gap: 6px; }

.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: none;
  background: #f8f8f8;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all var(--transition);
  font-family: inherit;
}

.conv-item:hover, .conv-item.active {
  background: rgba(26,122,10,0.1);
  transform: translateX(4px);
}

.conv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.conv-info { flex: 1; min-width: 0; }
.conv-info strong { display: block; font-size: 14px; color: #222; }
.conv-info small { display: block; font-size: 12px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.badge {
  background: #e53935;
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.no-chats { font-size: 14px; color: #999; text-align: center; padding: 20px; }

/* Admin tabs & orders */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  background: #f0f0f0;
  padding: 4px;
  border-radius: 12px;
}

.admin-tab {
  flex: 1 1 calc(50% - 6px);
  min-width: 118px;
  padding: 10px 8px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  color: #666;
  line-height: 1.25;
}

.admin-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tab-badge {
  display: none;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 4px;
  vertical-align: middle;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.broadcast-box {
  background: linear-gradient(135deg, #f0faf0, #fff);
  border: 1px solid rgba(26, 122, 10, 0.2);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.broadcast-box textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 72px;
  margin-bottom: 10px;
}

.btn-broadcast {
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-broadcast:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 122, 10, 0.35);
}

.btn-broadcast:disabled { opacity: 0.6; cursor: not-allowed; }

.broadcast-hint {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
  min-height: 16px;
}

.broadcast-hint.success { color: var(--primary); font-weight: 600; }

.users-search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 12px;
}

.conv-info .conv-email {
  display: block;
  color: #aaa;
  font-size: 11px;
  margin-top: 2px;
}

.conv-info .no-msg {
  color: var(--primary);
  font-style: italic;
}

.conv-info .no-msg {
  color: var(--primary);
  font-style: italic;
}

/* Products admin */
.btn-add-product {
  width: 100%;
  margin-bottom: 12px;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.products-admin-list,
.contacts-admin-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 420px;
  overflow-y: auto;
}

.product-admin-item.inactive { opacity: 0.65; }

.product-section,
.contact-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #fff;
}

.product-form-wrap.hidden,
.contact-form-wrap.hidden {
  display: none !important;
}

.product-form-wrap {
  flex: 1;
  overflow-y: auto;
}

.product-admin-form {
  padding: 20px 24px 24px;
}

.product-admin-form .form-group {
  margin-bottom: 16px;
}

.product-admin-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.product-admin-form input[type="text"],
.product-admin-form input[type="number"],
.product-admin-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.product-image-preview {
  margin-top: 10px;
}

.product-image-preview img {
  max-width: 220px;
  max-height: 140px;
  border-radius: 10px;
  border: 1px solid #eee;
}

.form-check-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.product-pricing-fieldset {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 14px 16px 6px;
  margin: 0 0 16px;
}

.product-pricing-fieldset legend {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  padding: 0 6px;
}

.product-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-save-product {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-delete-product {
  padding: 12px 20px;
  border: 1px solid #e53935;
  border-radius: 10px;
  background: #fff;
  color: #e53935;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.orders-list { display: flex; flex-direction: column; gap: 6px; }

.orders-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -8px 0 12px;
}

.orders-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  user-select: none;
}

.orders-select-all input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.btn-orders-delete {
  padding: 7px 12px;
  border: 1px solid #ffcdd2;
  background: #fff5f5;
  color: #c62828;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-orders-delete:hover:not(:disabled) {
  background: #c62828;
  color: #fff;
  border-color: #c62828;
}

.btn-orders-delete:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-orders-delete-all {
  margin-left: auto;
}

.order-item-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.order-item-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  padding: 0;
  cursor: pointer;
}

.order-item-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.order-item-row .order-item {
  flex: 1;
  min-width: 0;
}

.order-item.unread {
  border-left: 3px solid var(--primary);
}

.order-info-card {
  padding: 24px;
  flex: 1;
}

.order-row {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.order-row span {
  display: block;
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.order-row strong, .order-row a, .order-row p {
  font-size: 16px;
  color: #222;
}

.order-row a { color: var(--primary); font-weight: 600; }

.btn-mark-read {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}

.btn-mark-read:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.order-detail { flex: 1; display: flex; flex-direction: column; height: 100%; min-height: 0; }
.order-detail.hidden,
.chat-section.hidden,
.product-section.hidden,
.contact-section.hidden,
.chat-panel > .hidden {
  display: none !important;
}
.order-detail-content { flex: 1; display: flex; flex-direction: column; }
.order-detail-content.hidden { display: none !important; }

.chat-section { flex: 1; display: flex; flex-direction: column; height: 100%; min-height: 0; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.chat-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-delete-chat {
  padding: 8px 14px;
  border: 1px solid #ffcdd2;
  background: #fff5f5;
  color: #c62828;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}

.btn-delete-chat:hover {
  background: #c62828;
  color: #fff;
  border-color: #c62828;
}

.avatar-clickable {
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s, box-shadow 0.25s;
  font-family: inherit;
}

.avatar-clickable:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(26, 122, 10, 0.35);
}

.user-info-panel {
  background: linear-gradient(135deg, #f8faf8, #fff);
  border-bottom: 1px solid #e8e8e8;
  padding: 16px 20px;
  animation: slideDown 0.3s ease;
}

.user-info-panel.hidden { display: none; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.user-info-item span {
  display: block;
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.user-info-item strong,
.user-info-item a {
  font-size: 14px;
  color: #222;
  word-break: break-all;
}

.user-info-item a { color: var(--primary); font-weight: 600; }

.conv-item-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.conv-item-wrap .conv-item {
  flex: 1;
  min-width: 0;
}

.conv-delete {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0;
  transition: all 0.2s;
}

.conv-item-wrap:hover .conv-delete {
  opacity: 1;
}

.conv-delete:hover {
  background: #ffebee;
  color: #c62828;
}

/* Chat panel */
.chat-panel {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aaa;
  padding: 40px;
}

.chat-empty.hidden { display: none; }
.chat-active.hidden { display: none; }
.chat-active { flex: 1; display: flex; flex-direction: column; }

.empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.5; }
.chat-empty h3 { font-size: 20px; color: #555; margin-bottom: 8px; }

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.online-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.chat-header strong { display: block; font-size: 15px; color: #222; }
.chat-header small { font-size: 12px; color: #999; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #f9fbf9 0%, #fff 100%);
}

.chat-loading {
  text-align: center;
  color: #aaa;
  font-size: 14px;
  padding: 20px;
}

.msg {
  max-width: 75%;
  animation: msgIn 0.3s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-in { align-self: flex-start; }
.msg-out { align-self: flex-end; }

.msg-text {
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.msg-in .msg-text {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-bottom-left-radius: 4px;
  color: #222;
}

.msg-out .msg-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-image {
  display: block;
  margin-top: 6px;
  border-radius: 12px;
  overflow: hidden;
  max-width: 260px;
}

.msg-image img {
  width: 100%;
  display: block;
  transition: transform var(--transition);
}

.msg-image:hover img { transform: scale(1.03); }

.msg-time {
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
  padding: 0 4px;
}

.msg-out .msg-time { text-align: right; }

.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #eee;
  background: #fff;
}

.attach-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: #888;
  transition: all var(--transition);
  flex-shrink: 0;
}

.attach-btn:hover {
  background: rgba(26,122,10,0.1);
  color: var(--primary);
}

.chat-input-wrap {
  flex: 1;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 8px 16px;
}

.chat-input-wrap textarea {
  width: 100%;
  border: none;
  background: transparent;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  max-height: 120px;
  outline: none;
  color: #222;
}

.file-preview { margin-top: 8px; }

.preview-item {
  position: relative;
  display: inline-block;
}

.preview-item img {
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.preview-item button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
}

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 4px 15px rgba(26,122,10,0.4);
}

.send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Responsive app */
@media (max-width: 921px) {
  .header-actions { display: none; }
  .header-phone { display: none; }

  .cabinet-container, .admin-container {
    flex-direction: column;
    height: auto;
  }

  .cabinet-sidebar, .admin-sidebar {
    width: 100%;
  }

  .admin-sidebar { max-height: 200px; }

  .chat-panel { min-height: 450px; }

  .msg { max-width: 90%; }
}

@media (max-width: 921px) {
  .header-actions.mobile-show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 20px;
    background: #121212;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    gap: 8px;
  }
}
