:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  background: #f2f2f7;
  color: #1c1c1e;
}

body {
  margin: 0;
  padding: 0 18px 36px;
}

header {
  position: sticky;
  top: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.92);
  z-index: 100;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin: 0 -18px;
  width: calc(100% + 36px);
}

/* Логотип */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-logo img,
.header-logo svg {
  width: 36px;
  height: 36px;
}

.header-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.3px;
}

header h1 {
  font-size: 18px;
  white-space: nowrap;
}

h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
  animation: slideIn 0.5s ease;
}

h2 {
  animation: fadeInUp 0.4s ease 0.1s backwards;
}

nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== NAV BUTTONS - DESKTOP FIRST ===== */

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  color: #888;
  border: none;
  border-radius: 14px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
  position: relative;
  min-width: 80px;
}

/* Серые иконки по умолчанию */
.nav-btn .nav-icon svg {
  stroke: #9ca3af;
  transition: all 0.25s ease;
}

.nav-btn::after {
  display: none;
}

.nav-icon {
  width: 26px;
  height: 26px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  transition: all 0.2s ease;
}

.nav-label {
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  font-weight: 600;
}

.nav-btn:hover {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  transform: translateY(-2px);
}

.nav-btn:hover .nav-icon {
  transform: scale(1.15);
}

.nav-btn:hover .nav-icon svg {
  stroke-width: 2.5;
}

.nav-btn:active {
  transform: scale(0.97);
}

.nav-btn.active {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

.nav-btn.active .nav-icon {
  transform: scale(1.1);
}

.nav-btn.active .nav-icon svg {
  stroke: white;
  stroke-width: 2.5;
}

/* Цветные иконки для каждого пункта при наведении и активации */
.nav-btn[data-section="home"]:hover .nav-icon svg,
.nav-btn[data-section="home"].active .nav-icon svg { stroke: #22c55e; }
.nav-btn[data-section="home"].active .nav-icon svg { stroke: white; }

.nav-btn[data-section="garden"]:hover .nav-icon svg { stroke: #10b981; }
.nav-btn[data-section="calendar"]:hover .nav-icon svg { stroke: #0ea5e9; }
.nav-btn[data-section="shop"]:hover .nav-icon svg { stroke: #f59e0b; }
.nav-btn[data-section="profile"]:hover .nav-icon svg { stroke: #8b5cf6; }

/* При активации - белые */
.nav-btn.active .nav-icon svg { stroke: white !important; }

button:not(.nav-btn):not(.fab-button) {
  background: #f5f5f7;
  color: #1d1d1f;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.15s ease;
}

button:not(.nav-btn):not(.fab-button):hover {
  background: #e8e8ed;
}

button:not(.nav-btn):not(.fab-button):active {
  transform: scale(0.97);
}

main {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 4px;
}

.card {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  padding: 18px;
  box-shadow:
    0 20px 30px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(210, 210, 215, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.hidden {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* Screen reader only - скрывает визуально, но оставляет доступным */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main section {
  grid-column: 1 / -1; /* Каждая секция занимает всю ширину */
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

textarea,
input[type="file"],
input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d2d2d7;
  background: #fbfbfd;
  font-size: 15px;
}

.log {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  font-size: 14px;
  min-height: 48px;
  white-space: pre-line;
  color: #1c1c1e;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
}

ul {
  padding-left: 18px;
  margin: 10px 0 0;
}

li {
  margin-bottom: 8px;
  color: #2c2c2e;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

/* Верхняя сетка главной: погода слева, мой сад справа */
.home-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .home-top-grid {
    grid-template-columns: 1fr;
  }
}

.home-left-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Компактные виджеты */
.widget-compact {
  padding: 12px 14px;
  background: #f8f8fb;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
}

.widget-title-small {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}

.widget-text-small {
  font-size: 14px;
  color: #333;
}

.pill-list-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-small {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.pill-small.warn {
  background: #fff3e0;
  color: #e65100;
}

.pill-small.ok {
  background: #e8f5e9;
  color: #2e7d32;
}

.pill-small.danger {
  background: #ffebee;
  color: #c62828;
}

.widget {
  background: #f8f8fb;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: slideIn 0.3s ease backwards;
}

.widget:nth-child(1) { animation-delay: 0.05s; }
.widget:nth-child(2) { animation-delay: 0.1s; }
.widget:nth-child(3) { animation-delay: 0.15s; }
.widget:nth-child(4) { animation-delay: 0.2s; }

.widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.widget-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d2d2d7;
  background: #fff;
  font-size: 13px;
}

.pill.warn { border-color: #ff9f0a; background: #fff5e6; }
.pill.ok { border-color: #34c759; background: #ecf9f0; }
.pill.info { border-color: #007aff; background: #e6f2ff; }

.carousel {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quick-actions button {
  margin-right: 8px;
  margin-bottom: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.chip {
  border: 1px solid #d2d2d7;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.chip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.chip:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chip:hover::before {
  width: 200px;
  height: 200px;
}

.chip.active {
  border-color: #34c759;
  background: #ecf9f0;
  box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.25);
  animation: pulse 0.3s ease;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.catalog-card {
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 10px;
  background: #fafafa;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation: fadeInUp 0.4s ease backwards;
}

.catalog-card:nth-child(1) { animation-delay: 0.05s; }
.catalog-card:nth-child(2) { animation-delay: 0.1s; }
.catalog-card:nth-child(3) { animation-delay: 0.15s; }
.catalog-card:nth-child(4) { animation-delay: 0.2s; }
.catalog-card:nth-child(5) { animation-delay: 0.25s; }

.catalog-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #007aff;
  background: #ffffff;
}

.catalog-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.list .item {
  border: 1px solid #e5e5ea;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  animation: slideIn 0.3s ease backwards;
}

.list .item:nth-child(1) { animation-delay: 0.05s; }
.list .item:nth-child(2) { animation-delay: 0.1s; }
.list .item:nth-child(3) { animation-delay: 0.15s; }

.list .item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: #007aff;
}

.premium-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.premium-card {
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 12px;
  background: #f8f8fb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation: fadeInUp 0.4s ease backwards;
}

.premium-card:nth-child(1) { animation-delay: 0.1s; }
.premium-card:nth-child(2) { animation-delay: 0.2s; }

.premium-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
  border-color: #ffc107;
  background: linear-gradient(135deg, #fff9e6, #ffffff);
}

.premium-card .title { font-weight: 700; }
.premium-card .price { font-weight: 600; margin: 4px 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.cell {
  background: #f7f7fa;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #1c1c1e;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cell::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.cell:hover {
  background: #ededf3;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cell:hover::before {
  width: 150px;
  height: 150px;
}

.cell.bad {
  border-color: #ff3b30;
  background: #ffecec;
  animation: pulse 0.5s ease;
}

.cell.good {
  border-color: #34c759;
  background: #ecf9f0;
  animation: pulse 0.5s ease;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.toolbar .crop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #ffffff, #f4f4f6);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.toolbar .crop-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 0.5s;
}

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

.toolbar .crop-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.toolbar .crop-btn.active {
  border-color: #34c759;
  background: linear-gradient(180deg, #ecf9f0, #d4f4e0);
  box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.25), 0 4px 12px rgba(52, 199, 89, 0.2);
  animation: pulse 0.3s ease;
}

.toolbar .crop-btn.active .crop-icon {
  transform: scale(1.15);
}

.crop-icon {
  font-size: 20px;
}

.toolbar-actions {
  margin-bottom: 10px;
}

/* ========== AUTH SCREEN ========== */
.auth-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #e8f5e9 0%, #f1f8e9 30%, #fff8e1 70%, #fff3e0 100%);
  z-index: 1000;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-container {
  width: 100%;
  max-width: 380px;
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
  animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-logo {
  font-size: 64px;
  margin-bottom: 8px;
  animation: bounce 1s ease 0.3s;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #2e7d32, #558b2f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  font-size: 16px;
  color: #666;
  margin: 0 0 32px;
}

.auth-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.auth-google {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.auth-google:hover {
  background: #f8f8f8;
  border-color: #ccc;
}

.auth-yandex {
  background: #FC3F1D;
  color: #fff;
  border: none;
}

.auth-yandex:hover {
  background: #E53512;
}

.auth-yandex:disabled {
  background: #ccc;
  opacity: 0.6;
}

.auth-apple {
  background: #000;
  color: #fff;
}

.auth-apple:hover {
  background: #1a1a1a;
}

.auth-icon {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.auth-divider span {
  padding: 0 16px;
  color: #999;
  font-size: 13px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-input {
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.auth-input:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.auth-email-btn {
  background: linear-gradient(135deg, #4caf50, #43a047);
  color: #fff;
}

.auth-email-btn:hover {
  background: linear-gradient(135deg, #43a047, #388e3c);
}

.dev-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-onboarding {
  background: linear-gradient(135deg, #66bb6a, #43a047);
  color: #fff;
  border: 2px dashed #a5d6a7;
}

.auth-onboarding:hover {
  background: linear-gradient(135deg, #43a047, #2e7d32);
  border-style: solid;
}

.auth-test {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #fff;
  border: 2px dashed #ffb74d;
}

.auth-test:hover {
  background: linear-gradient(135deg, #f57c00, #e65100);
  border-style: solid;
}

.auth-error {
  padding: 12px;
  background: #ffebee;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  color: #c62828;
  font-size: 14px;
}

.auth-terms {
  margin-top: 24px;
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}

.auth-terms a {
  color: #4caf50;
  text-decoration: none;
}

.auth-terms a:hover {
  text-decoration: underline;
}

/* Чекбоксы согласия при регистрации */
.auth-consents {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
  text-align: left;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

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

.consent-checkbox .checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: white;
}

.consent-checkbox input[type="checkbox"]:checked + .checkmark {
  background: #4CAF50;
  border-color: #4CAF50;
}

.consent-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.consent-checkbox .consent-text {
  flex: 1;
}

.consent-checkbox .consent-text a {
  color: #4CAF50;
  text-decoration: none;
}

.consent-checkbox .consent-text a:hover {
  text-decoration: underline;
}

.consent-checkbox:hover .checkmark {
  border-color: #4CAF50;
}

/* Кнопка disabled когда не все чекбоксы отмечены */
.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Футер со ссылками на странице авторизации */
.auth-footer-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: #999;
  text-align: center;
}

.auth-footer-links a {
  color: #666;
  text-decoration: none;
}

.auth-footer-links a:hover {
  color: #4CAF50;
  text-decoration: underline;
}

.auth-footer-links .divider {
  margin: 0 8px;
  color: #ccc;
}

/* ===== SUPPORT SYSTEM ===== */
.support-section {
  margin-top: 24px;
}

.support-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.support-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
}

.support-new-btn {
  width: 100%;
  margin-bottom: 16px;
}

.support-tickets {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
}

.support-empty {
  padding: 32px;
  text-align: center;
}

.support-empty-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.support-empty-text {
  color: #666;
}

.support-ticket-item {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e5ea;
  cursor: pointer;
  transition: background 0.2s;
}

.support-ticket-item:hover {
  background: #f0f0f5;
}

.support-ticket-item:last-child {
  border-bottom: none;
}

.support-ticket-item.unread {
  background: #e8f5e9;
}

.ticket-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ticket-id {
  font-size: 11px;
  color: #888;
}

.ticket-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.ticket-status.new { background: #e3f2fd; color: #1976d2; }
.ticket-status.progress { background: #fff3e0; color: #f57c00; }
.ticket-status.waiting { background: #e8f5e9; color: #388e3c; }
.ticket-status.resolved { background: #e0f2f1; color: #00796b; }
.ticket-status.closed { background: #f5f5f5; color: #757575; }

.ticket-unread-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
}

.ticket-subject {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.ticket-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #888;
}

/* Support Modal */
.support-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.support-modal.open {
  opacity: 1;
  visibility: visible;
}

.support-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

.support-modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  margin: 10vh auto;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.support-modal.open .support-modal-content {
  transform: translateY(0);
}

.support-modal-content.ticket-view {
  max-width: 600px;
  max-height: 85vh;
}

.support-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  border-bottom: 1px solid #e5e5ea;
}

.support-modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.ticket-meta-header {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.support-modal-close {
  width: 32px;
  height: 32px;
  background: #f0f0f5;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.support-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.support-form-group {
  margin-bottom: 16px;
}

.support-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.support-form-group select,
.support-form-group input,
.support-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.support-form-group select:focus,
.support-form-group input:focus,
.support-form-group textarea:focus {
  border-color: #4CAF50;
}

.support-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid #e5e5ea;
}

.support-modal-footer .btn-secondary {
  background: #f0f0f5;
  color: #333;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* Ticket Messages */
.ticket-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.ticket-message {
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 85%;
}

.ticket-message.from-user {
  background: #f0f0f5;
  align-self: flex-end;
}

.ticket-message.from-support {
  background: #e8f5e9;
  align-self: flex-start;
}

.message-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #888;
  margin-bottom: 6px;
}

.message-author {
  font-weight: 600;
}

.message-text {
  line-height: 1.5;
  color: #333;
}

.ticket-reply-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-reply-form.hidden {
  display: none;
}

.ticket-reply-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  resize: none;
  min-height: 80px;
  font-size: 14px;
}

.ticket-reply-form button {
  padding: 12px 20px;
}

.reply-form-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.ticket-closed-notice {
  text-align: center;
  padding: 16px;
  background: #e8f5e9;
  border-radius: 10px;
  color: #2e7d32;
  font-weight: 500;
}

/* Feedback Actions */
.ticket-feedback-actions {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-top: 12px;
}

.ticket-feedback-actions.hidden {
  display: none;
}

.feedback-prompt {
  font-size: 15px;
  color: #555;
  margin-bottom: 16px;
}

.feedback-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-success {
  background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.feedback-buttons .btn-secondary {
  padding: 12px 24px;
  font-size: 14px;
}

/* Футер приложения */
.app-footer {
  grid-column: 1 / -1; /* Занимает всю ширину grid */
  margin-top: 40px;
  padding: 20px 16px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #4CAF50;
  text-decoration: underline;
}

.footer-divider {
  margin: 0 10px;
  color: #ccc;
}

.footer-copyright {
  font-size: 11px;
  color: #999;
}

/* ========== ONBOARDING SCREEN ========== */
.onboarding-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #e3f2fd 0%, #e8f5e9 50%, #fff8e1 100%);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}

.onboarding-container {
  width: 100%;
  max-width: 520px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  text-align: center;
  position: relative;
}

/* Прогресс-бар сверху */
.onboarding-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #e0e0e0;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  width: 12.5%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-step {
  animation: fadeInUp 0.5s ease;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.onboarding-step.hidden {
  display: none;
}

/* Экран 1: Анимация семечка */
.welcome-animation {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.seed-animation {
  position: relative;
}

.seed {
  font-size: 64px;
  animation: growPlant 2s ease-in-out infinite;
}

@keyframes growPlant {
  0%, 100% { transform: scale(1) rotate(-5deg); }
  50% { transform: scale(1.2) rotate(5deg); }
}

.onboarding-step h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1a1a1a;
  line-height: 1.3;
}

.onboarding-step .subtitle {
  font-size: 17px;
  color: #666;
  margin: 0 0 32px;
}

.onboarding-step p {
  font-size: 15px;
  color: #666;
  margin: 0 0 20px;
}

.step-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.onboarding-btn-link {
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.onboarding-btn-link:hover {
  color: #4caf50;
}

/* Экран 2: Список ценностей */
.step-icon-large {
  font-size: 72px;
  margin-bottom: 20px;
  animation: bounce 0.8s ease;
}

.value-list {
  text-align: left;
  margin: 24px 0;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8faf8;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 16px;
  animation: slideInLeft 0.4s ease backwards;
}

.value-item:nth-child(1) { animation-delay: 0.1s; }
.value-item:nth-child(2) { animation-delay: 0.2s; }
.value-item:nth-child(3) { animation-delay: 0.3s; }
.value-item:nth-child(4) { animation-delay: 0.4s; }

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

.value-item .check {
  font-size: 20px;
}

.analogy {
  font-size: 18px;
  font-weight: 600;
  color: #4caf50;
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border-radius: 16px;
}

/* Экран 3: Выбор культур */
.crop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.crop-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.crop-choice:hover {
  background: #f0f4f0;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.crop-choice.active {
  background: #e8f5e9;
  border-color: #4caf50;
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.25);
}

.crop-choice.active .crop-emoji {
  transform: scale(1.2);
}

.crop-emoji {
  font-size: 36px;
  transition: transform 0.3s ease;
}

.crop-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.hint {
  font-size: 14px;
  color: #888;
  margin-top: 16px;
}

/* Экран 4: Геолокация */
.location-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.location-status {
  min-height: 24px;
  font-size: 14px;
  color: #4caf50;
  margin: 12px 0;
}

.location-status.error {
  color: #f44336;
}

.benefit-list {
  text-align: left;
  padding: 20px;
  background: #fafafa;
  border-radius: 16px;
  margin-top: 20px;
}

.benefit-list p {
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.benefit {
  padding: 8px 0;
  font-size: 14px;
  color: #555;
}

/* Экран 5: Почва */
.soil-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.soil-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.soil-choice:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.soil-choice.active {
  border-color: #4caf50;
  background: #f0fff0;
}

.soil-preview {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.soil-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.soil-type {
  font-size: 12px;
  color: #888;
}

/* Экран 6: Стиль советов */
.advice-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.advice-choice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.advice-choice:hover {
  background: #f0f4f0;
  transform: translateX(4px);
}

.advice-choice.active {
  background: #e8f5e9;
  border-color: #4caf50;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.advice-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.advice-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  display: block;
}

.advice-desc {
  font-size: 13px;
  color: #666;
  display: block;
  margin-top: 2px;
}

/* Экран 7: Тип участка */
.place-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.place-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.place-choice:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.place-choice.active {
  border-color: #4caf50;
  background: #e8f5e9;
}

.place-icon {
  font-size: 40px;
}

.place-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

/* Экран 8: Итоговый */
.celebration {
  font-size: 72px;
  animation: celebrateBounce 1s ease;
}

@keyframes celebrateBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-30px); }
  60% { transform: translateY(-15px); }
}

.summary-card {
  text-align: left;
  padding: 24px;
  background: linear-gradient(135deg, #f8faf8, #f0f7f0);
  border-radius: 20px;
  margin: 24px 0;
  border: 1px solid #e0e8e0;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid #e8efe8;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-icon {
  font-size: 20px;
  width: 28px;
}

.summary-label {
  color: #666;
  flex-shrink: 0;
}

.summary-value {
  font-weight: 600;
  color: #1a1a1a;
  margin-left: auto;
}

.summary-question {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 12px;
  font-size: 13px;
  color: #888;
}

.trust-note .lock {
  font-size: 16px;
}

/* Навигация */
.onboarding-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.onboarding-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.3s ease;
}

.dot.active {
  background: #4caf50;
  width: 24px;
  border-radius: 4px;
}

.dot.completed {
  background: #81c784;
}

.onboarding-btn-primary {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #4caf50, #43a047);
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.onboarding-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.35);
}

.onboarding-btn-primary.large {
  padding: 18px 40px;
  font-size: 17px;
  width: 100%;
}

.onboarding-btn-secondary {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: #4caf50;
  border: 1.5px solid #4caf50;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.onboarding-btn-secondary:hover {
  background: rgba(76, 175, 80, 0.08);
}

.onboarding-btn-text {
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 12px;
  transition: color 0.2s;
}

.onboarding-btn-text:hover {
  color: #4caf50;
}

.onboarding-select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s ease;
  background: #fff;
}

.onboarding-select:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

/* ========== PROFILE ========== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border-radius: 16px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.profile-email {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.btn-primary {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  background: #34c759;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  margin-top: 12px;
}

.btn-primary:hover {
  background: #2db84d;
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-danger {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  color: #ff3b30;
  border: 2px solid #ff3b30;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.btn-danger:hover {
  background: #ff3b30;
  color: #fff;
}

.btn-danger:active {
  transform: scale(0.98);
}

/* ========== SHOP / RECOMMENDATIONS ========== */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.shop-header h2 {
  margin: 0;
}

.shop-partner-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFCC00, #FFD633);
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.yandex-logo {
  background: #FC3F1D;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.shop-subtitle {
  color: #666;
  margin-bottom: 20px;
}

.shop-loading {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 14px;
}

.product-marketplace {
  margin-top: 10px;
  text-align: center;
}

.yandex-badge {
  background: linear-gradient(135deg, #FFCC00, #FFD633);
  color: #000;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

/* Ссылка на карточке товара */
a.product-card-static {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.product-card-static:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #FFCC00;
}

.shop-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5ea;
}

.category-btn {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn:hover {
  background: #ececf0;
  transform: translateY(-1px);
}

.category-btn.active {
  background: #4caf50;
  color: #fff;
  border-color: #4caf50;
}

.shop-section {
  margin-bottom: 28px;
}

.shop-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a1a;
}

/* Yandex Market Widget Container */
.yandex-widget-container {
  background: linear-gradient(135deg, #fef9e7 0%, #fff9f0 100%);
  border-radius: 16px;
  padding: 16px;
  min-height: 300px;
  border: 1px solid rgba(255, 200, 0, 0.2);
}

.yandex-widget-container .shop-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  font-size: 16px;
  color: #666;
}

/* Yandex Widget Iframe Styling */
.yandex-widget-container iframe {
  border-radius: 12px;
  width: 100%;
}

#marketWidgetPromo {
  background: linear-gradient(135deg, #fff5f5 0%, #fff9e8 100%);
  border-radius: 16px;
  padding: 16px;
  min-height: 200px;
  border: 1px solid rgba(255, 100, 100, 0.1);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.products-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.products-carousel::-webkit-scrollbar {
  height: 6px;
}

.products-carousel::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.products-carousel::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-width: 200px;
  scroll-snap-align: start;
  animation: fadeInUp 0.4s ease backwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: #4caf50;
}

.product-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #f5f5f7;
  border-radius: 16px 16px 0 0;
}

.product-image-emoji {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, #f0f4f8, #e8ecf0);
  border-radius: 16px 16px 0 0;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff3b30, #ff6b6b);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
}

.product-content {
  padding: 14px;
}

.product-desc {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-reason {
  font-size: 12px;
  color: #4caf50;
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-reason.urgent {
  color: #ff6b00;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.product-price .current {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.product-price .old {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.product-price .discount {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #ff3b30;
  padding: 2px 6px;
  border-radius: 4px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-rating .star {
  color: #FFB800;
}

.product-rating .reviews {
  color: #999;
}

.product-rating .star {
  color: #ffb800;
}

.product-marketplace {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
}

.product-btn {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  background: #34c759;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.product-btn:hover {
  background: #2db84d;
}

.product-btn:active {
  transform: scale(0.98);
}

/* Партнёрские кнопки Такпродам */
.product-btn.affiliate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  position: relative;
  overflow: hidden;
}

.product-btn.affiliate-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

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

.product-btn.affiliate-btn:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.product-btn .marketplace-badge {
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  font-weight: 500;
}

.shop-widget {
  background: linear-gradient(135deg, #f0fff0, #e8f5e9);
  border: 1px solid #c8e6c9;
}

.shop-widget .widget-title {
  color: #2e7d32;
}

/* Пустое состояние */
.products-empty {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.products-empty .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* Skeleton loading */
.product-skeleton {
  background: #f5f5f7;
  border-radius: 16px;
  min-height: 280px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== ДИАГНОСТИКА (новый интерфейс) ===== */

.section-subtitle {
  color: #666;
  font-size: 14px;
  margin: -8px 0 16px;
}

.diagnosis-step {
  margin-bottom: 24px;
  padding: 16px;
  background: #f8f8fa;
  border-radius: 16px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-number {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #4CAF50, #43A047);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.step-title {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

/* Загрузка фото */
.photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.photo-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 200px;
  padding: 24px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 2px dashed #4CAF50;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-label:hover {
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
  transform: scale(1.02);
}

.photo-icon {
  font-size: 32px;
}

.photo-preview {
  width: 100%;
  max-width: 300px;
  border-radius: 16px;
  overflow: hidden;
  display: block;
}

.photo-preview.hidden {
  display: none !important;
}

.photo-preview-container {
  position: relative;
  background: #f0f0f5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.photo-preview-container img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

.photo-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.photo-remove-btn:hover {
  background: rgba(244, 67, 54, 0.9);
  transform: scale(1.1);
}

.photo-info {
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.photo-name {
  color: white;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.photo-size {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.photo-label.hidden {
  display: none;
}

/* Симптомы */
.symptom-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.symptom-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: white;
  border: 2px solid #e5e5ea;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.symptom-chip:hover {
  border-color: #4CAF50;
  background: #f0fff0;
}

.symptom-chip.selected {
  background: linear-gradient(135deg, #4CAF50, #43A047);
  color: white;
  border-color: #4CAF50;
}

.symptom-chip .icon {
  font-size: 18px;
}

/* Текстовое описание */
#diag-description {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e5ea;
  border-radius: 12px;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

#diag-description:focus {
  outline: none;
  border-color: #4CAF50;
}

/* Кнопка диагностики */
.btn-primary.large {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  border-radius: 14px;
}

/* Результаты диагностики */
.diagnosis-result {
  margin-top: 24px;
  animation: fadeInUp 0.4s ease;
}

/* Уровень уверенности */
.confidence-bar {
  margin-bottom: 16px;
}

.confidence-bar .bar-container {
  height: 12px;
  background: #e5e5ea;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 8px;
}

.confidence-bar .bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
}

.confidence-bar .bar-fill.high { background: linear-gradient(90deg, #4CAF50, #43A047); }
.confidence-bar .bar-fill.medium { background: linear-gradient(90deg, #FF9800, #F57C00); }
.confidence-bar .bar-fill.low { background: linear-gradient(90deg, #f44336, #d32f2f); }

.confidence-bar .label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.confidence-bar .value {
  font-weight: 700;
}

.confidence-bar .value.high { color: #4CAF50; }
.confidence-bar .value.medium { color: #FF9800; }
.confidence-bar .value.low { color: #f44336; }

/* Сообщение */
.diagnosis-message {
  padding: 16px;
  background: #f0f0f5;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.diagnosis-message.success {
  background: #e8f5e9;
  border-left: 4px solid #4CAF50;
}

.diagnosis-message.warning {
  background: #fff3e0;
  border-left: 4px solid #FF9800;
}

.diagnosis-message.info {
  background: #e3f2fd;
  border-left: 4px solid #2196F3;
}

/* Уточняющие вопросы */
.clarifying-questions {
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 16px;
}

.clarifying-questions h4 {
  margin: 0 0 16px;
  font-size: 16px;
}

.question-item {
  margin-bottom: 20px;
}

.question-item:last-child {
  margin-bottom: 0;
}

.question-text {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
  color: #333;
}

.question-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.question-option {
  padding: 10px 16px;
  background: white;
  border: 2px solid #90caf9;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.question-option:hover {
  border-color: #2196F3;
  background: #f5f9ff;
}

.question-option.selected {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
  border-color: #2196F3;
}

/* Карточка диагноза */
.diagnosis-card {
  margin: 20px 0;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.diagnosis-card h4 {
  margin: 0 0 16px;
  font-size: 16px;
  color: #333;
}

.diagnosis-card .problem-name {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.diagnosis-card .problem-category {
  display: inline-block;
  padding: 4px 12px;
  background: #f0f0f5;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.diagnosis-card .problem-category.disease { background: #ffebee; color: #c62828; }
.diagnosis-card .problem-category.pest { background: #fff3e0; color: #ef6c00; }
.diagnosis-card .problem-category.deficiency { background: #e8f5e9; color: #2e7d32; }
.diagnosis-card .problem-category.care { background: #e3f2fd; color: #1565c0; }

.diagnosis-card .matched-symptoms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.diagnosis-card .matched-symptom {
  padding: 4px 10px;
  background: #e8f5e9;
  border-radius: 12px;
  font-size: 12px;
  color: #2e7d32;
}

.severity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.severity-badge.low { background: #e8f5e9; color: #2e7d32; }
.severity-badge.medium { background: #fff3e0; color: #ef6c00; }
.severity-badge.high { background: #ffebee; color: #c62828; }
.severity-badge.critical { background: #f44336; color: white; }

/* Альтернативные диагнозы */
.diagnosis-alternatives {
  margin: 20px 0;
}

.diagnosis-alternatives h4 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #666;
}

.alternative-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8f8fa;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alternative-item:hover {
  background: #f0f0f5;
  transform: translateX(4px);
}

.alternative-name {
  font-weight: 600;
  font-size: 14px;
}

.alternative-confidence {
  font-size: 13px;
  color: #666;
}

/* Решения */
.diagnosis-solutions {
  margin: 20px 0;
}

.diagnosis-solutions h4 {
  margin: 0 0 16px;
  font-size: 16px;
}

.solution-step {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  background: #f8f8fa;
  border-radius: 14px;
  position: relative;
}

.solution-step::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 56px;
  bottom: -16px;
  width: 2px;
  background: #e5e5ea;
}

.solution-step:last-child::before {
  display: none;
}

.solution-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4CAF50, #43A047);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.solution-content {
  flex: 1;
}

.solution-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.solution-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.solution-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.solution-urgency {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.solution-urgency.urgent { background: #ffebee; color: #c62828; }
.solution-urgency.high { background: #fff3e0; color: #ef6c00; }
.solution-urgency.normal { background: #e8f5e9; color: #2e7d32; }

.solution-timeframe {
  font-size: 12px;
  color: #888;
}

/* Рекомендуемые товары после диагностики */
.diagnosis-products {
  margin: 20px 0;
  padding: 16px;
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  border-radius: 16px;
}

.diagnosis-products h4 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #f57c00;
}

/* ===== ОБРАТНАЯ СВЯЗЬ ===== */

.diagnosis-feedback {
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 16px;
  border: 1px solid #a5d6a7;
}

.diagnosis-feedback h4 {
  margin: 0 0 16px;
  font-size: 16px;
  color: #2e7d32;
}

.feedback-question {
  margin-bottom: 16px;
}

.feedback-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.feedback-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: white;
  border: 2px solid #c8e6c9;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 90px;
}

.feedback-btn:hover {
  border-color: #4CAF50;
  background: #f0fff0;
  transform: translateY(-2px);
}

.feedback-btn.selected {
  background: linear-gradient(135deg, #4CAF50, #43A047);
  color: white;
  border-color: #4CAF50;
  transform: scale(1.02);
}

.feedback-btn .emoji {
  font-size: 24px;
}

.feedback-btn span:not(.emoji) {
  font-size: 12px;
  font-weight: 600;
}

.feedback-extra {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #a5d6a7;
  animation: fadeInUp 0.3s ease;
}

.feedback-extra textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #c8e6c9;
  border-radius: 10px;
  font-size: 14px;
  resize: vertical;
  background: white;
}

.feedback-extra textarea:focus {
  outline: none;
  border-color: #4CAF50;
}

.feedback-submit {
  margin-top: 16px;
  width: 100%;
  padding: 14px;
  font-size: 15px;
  animation: fadeInUp 0.3s ease;
}

/* Благодарность */
.feedback-thanks {
  text-align: center;
  padding: 24px;
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.thanks-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.thanks-message {
  font-size: 18px;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 8px;
}

.thanks-reward {
  font-size: 14px;
  color: #666;
}

.thanks-reward .points {
  font-weight: 700;
  color: #f57c00;
}

.thanks-reward .badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.thanks-reward .badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Напоминание о follow-up */
.followup-reminder {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 12px;
  animation: slideIn 0.4s ease;
}

.reminder-icon {
  font-size: 24px;
}

.reminder-text {
  flex: 1;
  font-size: 14px;
  color: #1565c0;
}

.reminder-dismiss {
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.reminder-dismiss:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* ===== ПРОФИЛЬ И ПОДПИСКА ===== */

.profile-hero {
  margin-bottom: 24px;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

/* Селектор языка в профиле */
.profile-language-selector {
  position: relative;
  margin-left: auto;
}

.profile-avatar-wrapper {
  position: relative;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
  border: 3px solid #4CAF50;
  position: relative;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.profile-avatar img.hidden {
  display: none !important;
}

#profile-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#profile-avatar-placeholder.hidden {
  display: none !important;
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: #4CAF50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid white;
  transition: all 0.2s ease;
}

.avatar-edit-btn:hover {
  transform: scale(1.1);
  background: #43A047;
}

.profile-main-info {
  flex: 1;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.profile-email {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

/* Карточка уровня */
.profile-level-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 16px;
  padding: 20px;
  color: white;
  margin-bottom: 16px;
}

.level-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.level-badge {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.level-info {
  flex: 1;
}

.level-title {
  font-size: 14px;
  opacity: 0.9;
}

.level-title span {
  font-size: 20px;
  font-weight: 700;
}

.level-name {
  font-size: 16px;
  font-weight: 600;
  margin-top: 2px;
}

.level-points {
  font-size: 18px;
  font-weight: 700;
}

.level-progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.level-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffb800);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.level-progress-text {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 8px;
  text-align: center;
}

/* Достижения */
.profile-badges {
  background: #f8f8fa;
  border-radius: 12px;
  padding: 16px;
}

.badges-title {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 12px;
}

.badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-item {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.badge-item:hover {
  transform: scale(1.1);
}

.badge-item.locked {
  opacity: 0.4;
  filter: grayscale(1);
}

/* Секции профиля */
.profile-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5ea;
}

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

.profile-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px;
}

/* Текущий план */
.current-plan {
  background: #f8f8fa;
  border-radius: 12px;
  padding: 16px;
}

.plan-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.plan-badge.free {
  background: #e5e5ea;
  color: #666;
}

.plan-badge.pro {
  background: linear-gradient(135deg, #4CAF50, #43A047);
  color: white;
}

.plan-badge.premium {
  background: linear-gradient(135deg, #ffd700, #ffb800);
  color: #333;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-feature {
  font-size: 14px;
  color: #333;
}

/* Сетка планов */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.plan-card {
  background: white;
  border: 2px solid #e5e5ea;
  border-radius: 16px;
  padding: 20px;
  position: relative;
  transition: all 0.2s ease;
}

.plan-card:hover {
  border-color: #4CAF50;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.15);
}

.plan-card.premium {
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  border-color: #ffd700;
}

.plan-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4CAF50, #43A047);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.plan-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.plan-icon {
  font-size: 28px;
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
}

.plan-price {
  margin-bottom: 16px;
}

.price-amount {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
}

.price-currency {
  font-size: 14px;
  color: #666;
}

.plan-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.plan-benefits li {
  font-size: 13px;
  color: #333;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f5;
}

.plan-benefits li:last-child {
  border-bottom: none;
}

.plan-btn {
  width: 100%;
  padding: 14px;
  background: #34c759;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.plan-btn:hover {
  background: #2db84d;
}

.plan-btn:active {
  transform: scale(0.98);
}

.plan-btn.premium-btn {
  background: #ff9500;
  color: white;
}

.plan-btn.premium-btn:hover {
  background: #e68600;
}

/* Форма профиля */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.form-input,
.form-select {
  padding: 12px 14px;
  border: 2px solid #e5e5ea;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #4CAF50;
}

.form-input-group {
  display: flex;
  align-items: center;
  border: 2px solid #e5e5ea;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.form-input-group:focus-within {
  border-color: #4CAF50;
}

.input-prefix {
  padding: 12px;
  background: #f8f8fa;
  color: #666;
  font-weight: 600;
  border-right: 1px solid #e5e5ea;
}

.form-input-group .form-input {
  border: none;
  flex: 1;
}

.form-hint {
  font-size: 12px;
  color: #888;
}

/* Уведомления */
.notification-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #f8f8fa;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.notification-option:hover {
  background: #f0f0f5;
}

.notification-option:has(input:checked) {
  background: #e8f5e9;
  border-color: #4CAF50;
}

.notification-option input {
  margin-top: 4px;
  accent-color: #4CAF50;
  width: 18px;
  height: 18px;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.notification-desc {
  font-size: 13px;
  color: #666;
}

/* Push toggle */
.push-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8f8fa;
  border-radius: 12px;
}

.push-info {
  flex: 1;
}

.push-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.push-desc {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 28px;
  transition: 0.3s;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, #4CAF50, #43A047);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

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

.btn-secondary {
  padding: 14px 24px;
  background: #f5f5f7;
  color: #1d1d1f;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: #e8e8ed;
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-danger-outline {
  padding: 14px 24px;
  background: transparent;
  color: #ff3b30;
  border: 2px solid #ff3b30;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger-outline:hover {
  background: #ff3b30;
  color: #fff;
}

.btn-danger-outline:active {
  transform: scale(0.98);
}

/* Опасная зона */
.danger-zone {
  border: 2px solid #ffcdd2;
  border-radius: 12px;
  padding: 16px;
  background: #fff5f5;
}

.danger-zone h3 {
  color: #c62828;
}

/* Toast уведомления */
.toast-notification {
  position: fixed;
  bottom: 100px; /* Выше навигации */
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #333, #1a1a1a);
  color: white;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  z-index: 99999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 90%;
  text-align: center;
}

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

/* ===== МОЙ САД ===== */

/* Виджет на главной */
.my-garden-widget {
  cursor: pointer;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 2px solid #a5d6a7;
  transition: all 0.2s ease;
  padding: 14px;
}

.my-garden-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.2);
}

.garden-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.garden-widget-title {
  font-size: 15px;
  font-weight: 700;
  color: #2e7d32;
}

.garden-widget-arrow {
  font-size: 18px;
  color: #4CAF50;
}

.garden-widget-plants {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.garden-widget-plant {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: white;
  border-radius: 16px;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.garden-widget-plant .plant-icon {
  font-size: 14px;
}

.garden-widget-plant.needs-attention {
  border: 2px solid #ff9800;
}

.garden-widget-plant:hover {
  background: #e8f5e9;
  transform: scale(1.02);
}

.garden-widget-plant .widget-plant-stage {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.7;
}

.garden-widget-empty {
  color: #666;
  font-size: 13px;
  padding: 4px 0;
}

.garden-widget-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #555;
}

/* ===== Виджет луны на главной ===== */
.moon-home-widget {
  cursor: pointer;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 2px solid #3a3a5c;
  transition: all 0.2s ease;
  padding: 14px;
  color: #fff;
}

.moon-home-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 26, 46, 0.4);
  border-color: #5a5a8c;
}

.moon-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.moon-widget-title {
  font-size: 15px;
  font-weight: 700;
  color: #e0e0ff;
}

.moon-widget-arrow {
  font-size: 18px;
  color: #8888cc;
}

.moon-widget-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.moon-widget-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.moon-widget-icon {
  font-size: 36px;
  line-height: 1;
}

.moon-widget-info {
  flex: 1;
  min-width: 0;
}

.moon-widget-phase {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.moon-widget-details {
  font-size: 12px;
  color: #aab;
}

.moon-widget-tip {
  font-size: 12px;
  color: #aaccaa;
  background: rgba(76, 175, 80, 0.15);
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.4;
}

.moon-widget-loading {
  font-size: 13px;
  color: #888;
  padding: 10px 0;
}

/* Мобильная версия: луна под "Мой сад" */
@media (max-width: 600px) {
  .home-top-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
  }
  
  .moon-home-widget {
    order: 2;
  }
  
  .my-garden-widget {
    order: 1;
  }
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.stat-value {
  font-weight: 700;
  color: #2e7d32;
}

/* Табы в разделе сада */
.garden-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.garden-tab {
  padding: 10px 18px;
  background: #f0f0f5;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.garden-tab:hover {
  background: #e5e5ea;
}

.garden-tab.active {
  background: linear-gradient(135deg, #4CAF50, #43A047);
  color: white;
}

.garden-tab-content {
  display: none;
}

.garden-tab-content.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

/* Фильтры */
.garden-filters,
.history-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-btn {
  padding: 8px 14px;
  background: white;
  border: 2px solid #e5e5ea;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #4CAF50;
}

.filter-btn.active {
  background: #e8f5e9;
  border-color: #4CAF50;
  color: #2e7d32;
}

/* Сетка растений */
.garden-plants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 80px;
}

/* Карточка растения */
.plant-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.plant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.plant-card.needs-attention {
  border: 2px solid #ff9800;
}

.plant-card.needs-attention::before {
  content: "⚠️";
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 20px;
}

.plant-card-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 12px;
}

.plant-card-name {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
  color: #333;
}

.plant-card-variety {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-bottom: 8px;
}

.plant-card-status {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge.healthy {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-badge.warning {
  background: #fff3e0;
  color: #ef6c00;
}

.status-badge.critical {
  background: #ffebee;
  color: #c62828;
}

.plant-card-stage {
  font-size: 12px;
  color: #666;
  text-align: center;
}

.plant-card-progress {
  height: 4px;
  background: #e5e5ea;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.plant-card-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 2px;
}

.plant-card-days {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 4px;
}

/* Растение с задержкой */
.plant-card.delayed {
  border: 2px solid #FF9800;
}

.plant-card.delayed::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: #FF9800;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.plant-card.delayed .plant-card-progress-bar {
  background: linear-gradient(90deg, #FF9800, #FFC107);
}

/* Пустое состояние */
.garden-empty {
  padding: 8px 0;
  min-height: auto;
}

.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  min-height: 300px;
}

.empty-illustration {
  font-size: 72px;
  margin-bottom: 20px;
  animation: gentleBounce 2s ease-in-out infinite;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.empty-text {
  font-size: 15px;
  color: #666;
  margin-bottom: 24px;
  max-width: 300px;
  line-height: 1.5;
}

.garden-empty .btn-primary {
  padding: 14px 28px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.garden-empty .btn-primary.large {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: 14px;
}

.garden-empty .btn-icon {
  font-size: 18px;
}

/* FAB кнопка - скрыта когда сад пуст */
.fab-button {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #34c759;
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-button:hover {
  background: #2db84d;
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(76, 175, 80, 0.5);
}

/* Календарь */
.calendar-today {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 16px;
  padding: 20px;
  color: white;
  margin-bottom: 20px;
}

.calendar-date {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.date-day {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.date-month {
  font-size: 18px;
  opacity: 0.9;
}

.calendar-tasks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.task-icon {
  font-size: 20px;
}

.task-text {
  flex: 1;
  font-size: 14px;
}

.task-done-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-done-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.task-item.completed {
  opacity: 0.6;
  text-decoration: line-through;
}

.task-item.completed .task-done-btn {
  background: rgba(76, 175, 80, 0.8);
}

/* Срочные задачи */
.task-item.urgent,
.calendar-task.urgent {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(255, 152, 0, 0.2));
  border-left: 3px solid #f44336;
  animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(244, 67, 54, 0); }
}

.task-item.success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(129, 199, 132, 0.2));
  border-left: 3px solid #4caf50;
}

/* Задачи в календаре сада */
.calendar-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card-bg, rgba(255,255,255,0.1));
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.calendar-task:hover {
  transform: translateX(4px);
  background: var(--card-bg-hover, rgba(255,255,255,0.15));
}

.calendar-task .task-icon {
  font-size: 1.5rem;
  min-width: 32px;
  text-align: center;
}

.calendar-task .task-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendar-task .task-text {
  font-weight: 500;
  color: var(--text-primary);
}

.calendar-task .task-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.calendar-task .task-done-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary-color, #4caf50);
  background: transparent;
  color: var(--primary-color, #4caf50);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.calendar-task .task-done-btn:hover {
  background: var(--primary-color, #4caf50);
  color: white;
  transform: scale(1.1);
}

/* Пустое состояние задач */
.empty-state {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Неделя */
.calendar-week {
  margin-bottom: 20px;
}

.week-title,
.upcoming-title {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 12px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.week-day {
  text-align: center;
  padding: 12px 8px;
  background: #f8f8fa;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.week-day:hover {
  background: #f0f0f5;
}

.week-day.today {
  background: linear-gradient(135deg, #4CAF50, #43A047);
  color: white;
}

.week-day.has-tasks::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: #ff9800;
  border-radius: 50%;
  margin: 4px auto 0;
}

.week-day.today.has-tasks::after {
  background: white;
}

.week-day-name {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.week-day-num {
  font-size: 16px;
  font-weight: 700;
}

/* Предстоящие задачи */
.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upcoming-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f8fa;
  border-radius: 12px;
}

.upcoming-task-date {
  font-size: 12px;
  color: #888;
  min-width: 60px;
}

.upcoming-task-icon {
  font-size: 18px;
}

.upcoming-task-text {
  flex: 1;
  font-size: 14px;
}

/* История */
.history-timeline {
  position: relative;
  padding-left: 24px;
}

.history-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e5ea;
}

.history-item {
  position: relative;
  padding: 16px;
  padding-left: 0;
  margin-bottom: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-left: 16px;
}

.history-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 20px;
  width: 12px;
  height: 12px;
  background: #4CAF50;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #e5e5ea;
}

.history-item.diagnosis::before { background: #2196F3; }
.history-item.problem::before { background: #ff9800; }
.history-item.resolved::before { background: #4CAF50; }

.history-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.history-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.history-desc {
  font-size: 13px;
  color: #666;
}

.history-plant {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f0f0f5;
  border-radius: 12px;
  font-size: 12px;
  margin-top: 8px;
}

/* Модальное окно */
.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: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e5ea;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  width: 32px;
  height: 32px;
  background: #f0f0f5;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #e5e5ea;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #e5e5ea;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Опции местоположения */
.location-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.location-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8f8fa;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-option:hover {
  background: #f0f0f5;
}

.location-option:has(input:checked) {
  background: #e8f5e9;
  border: 2px solid #4CAF50;
}

.location-option input {
  accent-color: #4CAF50;
}

/* ===== ДЕТАЛИ РАСТЕНИЯ - МОДАЛЬНОЕ ОКНО ===== */
.plant-details-content {
  max-width: 480px;
  max-height: 90vh;
}

.plant-details-header {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-bottom: none;
  padding: 16px 20px;
  border-radius: 20px 20px 0 0;
}

.plant-details-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plant-detail-icon {
  font-size: 40px;
}

.plant-details-title h3 {
  margin: 0;
  font-size: 20px;
  color: #1c1c1e;
}

.plant-detail-variety {
  font-size: 13px;
  color: #666;
}

.plant-details-body {
  padding: 16px 20px;
}

/* Карточки информации */
.plant-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.plant-info-card {
  display: flex;
  flex-direction: column;
  background: #f8f8fa;
  border-radius: 12px;
  padding: 12px;
}

.plant-info-card .info-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.plant-info-card .info-value {
  font-size: 16px;
  font-weight: 600;
  color: #1c1c1e;
}

/* Текущая стадия */
.current-stage-block {
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

.current-stage-block h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #666;
}

.current-stage-display {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stage-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stage-badge.delayed {
  background: #ffebee;
  border: 2px solid #ef5350;
}

.stage-badge .stage-icon {
  font-size: 24px;
}

.stage-badge .stage-name {
  font-size: 16px;
  font-weight: 600;
  color: #1c1c1e;
}

.stage-progress-wrap {
  flex: 1;
}

.stage-progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.stage-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.stage-progress-text {
  font-size: 12px;
  color: #666;
}

.status-delayed {
  color: #ef5350;
  font-weight: 600;
}

/* Таймлайн стадий */
.stages-timeline-block {
  margin-bottom: 20px;
}

.stages-timeline-block h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #1c1c1e;
}

.stages-timeline {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding: 10px 0;
  gap: 0;
}

.timeline-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  position: relative;
}

.timeline-stage .timeline-icon {
  width: 40px;
  height: 40px;
  background: #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.timeline-stage.completed .timeline-icon {
  background: #c8e6c9;
  box-shadow: 0 0 0 3px #4CAF50;
}

.timeline-stage.current .timeline-icon {
  background: #fff8e1;
  box-shadow: 0 0 0 3px #FFC107;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.timeline-stage.upcoming .timeline-icon {
  background: #f5f5f5;
  opacity: 0.7;
}

.timeline-stage .timeline-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timeline-stage .timeline-name {
  font-size: 11px;
  font-weight: 600;
  color: #1c1c1e;
  max-width: 65px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-stage .timeline-days {
  font-size: 10px;
  color: #999;
}

.timeline-stage .timeline-connector {
  position: absolute;
  top: 20px;
  left: 55px;
  width: 30px;
  height: 3px;
  background: #e0e0e0;
}

.timeline-stage.completed .timeline-connector {
  background: #4CAF50;
}

.timeline-stage.current .timeline-connector {
  background: linear-gradient(90deg, #FFC107, #e0e0e0);
}

/* Прогноз урожая */
.harvest-estimate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #e8f5e9;
  border-radius: 12px;
  margin-top: 12px;
}

.harvest-estimate .harvest-icon {
  font-size: 24px;
}

.harvest-estimate strong {
  color: #2e7d32;
}

/* Признаки здоровья */
.expected-signs-block {
  margin-bottom: 16px;
}

.expected-signs-block h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #1c1c1e;
}

.healthy-signs-list {
  margin: 0;
  padding-left: 20px;
}

.healthy-signs-list li {
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  position: relative;
}

.healthy-signs-list li::marker {
  color: #4CAF50;
}

/* Ожидаемые метрики */
.expected-metrics-block {
  margin-bottom: 16px;
}

.expected-metrics-block h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #1c1c1e;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f5f5f5;
  border-radius: 10px;
}

.metric-item .metric-icon {
  font-size: 18px;
}

.metric-item .metric-label {
  font-size: 12px;
  color: #666;
}

.metric-item .metric-value {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
}

/* Возможные проблемы */
.possible-problems-block {
  margin-bottom: 16px;
}

.possible-problems-block h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #1c1c1e;
}

.problems-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.problem-item {
  background: #fff8e1;
  border-radius: 12px;
  padding: 12px;
  border-left: 4px solid #FFC107;
}

.problem-item .problem-sign {
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
  margin-bottom: 4px;
}

.problem-item .problem-cause {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.problem-item .problem-action {
  font-size: 13px;
  color: #2e7d32;
  font-weight: 500;
}

.no-problems {
  padding: 16px;
  background: #e8f5e9;
  border-radius: 12px;
  color: #2e7d32;
  text-align: center;
  font-size: 14px;
}

/* Блок "Что-то не так?" */
.problem-check-block {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.problem-check-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #c62828;
  margin-bottom: 8px;
}

.problem-check-header .problem-icon {
  font-size: 24px;
}

.problem-check-text {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.btn-diagnose {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ff3b30;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-diagnose:hover {
  background: #e5352b;
  filter: brightness(1.05);
}

.btn-diagnose:active {
  transform: scale(0.98);
}

/* Задачи по уходу */
.care-tasks-block {
  margin-bottom: 8px;
}

.care-tasks-block h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #1c1c1e;
}

.care-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.care-task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.care-task-item.urgent {
  background: #fff3e0;
  border-left: 4px solid #FF9800;
}

.care-task-item .task-icon {
  font-size: 20px;
}

.care-task-item .task-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.care-task-item .task-title {
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
}

.care-task-item .task-desc {
  font-size: 12px;
  color: #666;
}

.care-task-item .task-done-btn {
  width: 32px;
  height: 32px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.care-task-item .task-done-btn:hover {
  background: #388E3C;
  transform: scale(1.1);
}

.no-tasks {
  padding: 16px;
  background: #e8f5e9;
  border-radius: 12px;
  color: #2e7d32;
  text-align: center;
  font-size: 14px;
}

.no-data {
  padding: 12px;
  background: #f5f5f5;
  border-radius: 10px;
  color: #999;
  text-align: center;
  font-size: 13px;
}

/* Футер модального окна деталей */
.plant-details-footer {
  justify-content: space-between;
}

.btn-danger {
  background: #ffebee;
  color: #c62828;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: #ffcdd2;
}

/* ===== ГЛАВНЫЕ ДЕЙСТВИЯ НА ГЛАВНОЙ ===== */
.main-actions-widget {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 16px;
}

.main-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.main-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.main-action-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.main-action-btn:active {
  transform: translateY(-2px);
}

.main-action-btn .action-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 4px;
}

.main-action-btn .action-title {
  font-size: 16px;
  font-weight: 700;
  color: #1c1c1e;
}

.main-action-btn .action-desc {
  font-size: 12px;
  color: #666;
}

.main-action-btn.chat-btn {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.main-action-btn.chat-btn:hover {
  background: linear-gradient(135deg, #bbdefb, #90caf9);
}

.main-action-btn.diagnosis-btn {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.main-action-btn.diagnosis-btn:hover {
  background: linear-gradient(135deg, #ffe0b2, #ffcc80);
}

/* ===== БЫСТРЫЕ ДЕЙСТВИЯ В МОЙ САД ===== */
.garden-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.garden-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.garden-action-btn:hover {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-color: #4CAF50;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.garden-action-btn:active {
  transform: translateY(0);
}

.garden-action-icon {
  font-size: 24px;
}

/* ===== ЗАДАЧИ В МОЙ САД ===== */
.garden-tasks-section {
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #ffe082;
}

.garden-tasks-section.hidden {
  display: none;
}

.garden-tasks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.garden-tasks-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #5d4037;
}

.garden-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.garden-task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.garden-task-item.urgent {
  background: linear-gradient(135deg, #fff5f5, #ffe5e5);
  border: 1px solid #ffcdd2;
}

.garden-task-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.garden-task-content {
  flex: 1;
  min-width: 0;
}

.garden-task-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 2px;
}

.garden-task-desc {
  font-size: 12px;
  color: #666;
}

.garden-task-done {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #4CAF50;
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.garden-task-done:hover {
  background: #388e3c;
  transform: scale(1.1);
}

.garden-tasks-empty {
  text-align: center;
  padding: 20px;
  color: #5d4037;
}

.garden-tasks-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.garden-tasks-empty-text {
  font-size: 14px;
}

/* ===== АКТИВНАЯ КНОПКА НАВИГАЦИИ ===== */
.nav-btn.active {
  background: linear-gradient(135deg, #4CAF50, #66bb6a);
  color: white;
  border-color: #388e3c;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.nav-btn.active:hover {
  background: linear-gradient(135deg, #66bb6a, #81c784);
}

.nav-btn.active .nav-icon {
  color: white;
}

/* ===== СЕЗОННЫЕ РЕКОМЕНДАЦИИ ===== */
.season-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-weight: 600;
}

.season-badge.winter {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
}

.season-badge.spring {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #2e7d32;
}

.season-badge.summer {
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  color: #f57f17;
}

.season-badge.autumn {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #e65100;
}

.season-icon {
  font-size: 24px;
}

.season-name {
  font-size: 16px;
  flex: 1;
}

.season-location {
  font-size: 13px;
  opacity: 0.8;
}

/* Карточки рекомендаций */
.recommendation-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  animation: slideInUp 0.4s ease backwards;
}

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

.recommendation-card.high {
  border-left: 4px solid #4CAF50;
}

.recommendation-card.medium {
  border-left: 4px solid #FF9800;
}

.recommendation-card.action {
  background: linear-gradient(135deg, #f1f8e9, #dcedc8);
}

.recommendation-card.countdown {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.recommendation-card.planning {
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
}

.rec-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.rec-icon {
  font-size: 28px;
}

.rec-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1c1c1e;
  line-height: 1.3;
}

.rec-description {
  margin: 0 0 12px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.rec-actions {
  margin: 0;
  padding-left: 20px;
  color: #333;
}

.rec-actions li {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Культуры для посева */
.rec-crops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.crop-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: white;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.crop-item.optimal {
  background: #e8f5e9;
  border: 1px solid #4CAF50;
}

.crop-item.early {
  background: #fff8e1;
  border: 1px solid #FF9800;
}

.crop-item.late {
  background: #ffebee;
  border: 1px solid #f44336;
}

.crop-icon {
  font-size: 18px;
}

.crop-name {
  font-weight: 600;
}

.crop-time, .crop-weeks {
  font-size: 11px;
  color: #888;
  margin-left: 4px;
}

/* Советы по растениям */
.rec-plants {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.plant-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
}

.plant-tip .plant-icon {
  font-size: 24px;
}

.plant-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plant-info .plant-name {
  font-weight: 600;
  font-size: 14px;
}

.plant-tip-text {
  font-size: 13px;
  color: #666;
}

/* Мини-товары в рекомендациях */
.rec-products {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 100px;
  padding: 10px;
  background: white;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.product-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-mini .product-icon {
  font-size: 24px;
}

.product-mini .product-name {
  font-size: 11px;
  text-align: center;
  color: #333;
  line-height: 1.2;
}

.product-mini .product-price {
  font-size: 12px;
  font-weight: 700;
  color: #4CAF50;
}

/* Адаптация карусели рекомендаций */
#home-insights {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.insight-empty {
  padding: 20px;
  text-align: center;
  color: #888;
}

/* ===== АНАЛИЗ ПОЧВЫ ===== */
.soil-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.soil-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: white;
  border: 2px solid #e5e5ea;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.soil-method-btn:hover {
  border-color: #4CAF50;
  background: #f8fff8;
}

.soil-method-btn.active {
  border-color: #4CAF50;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.method-icon {
  font-size: 28px;
}

.method-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.method-desc {
  font-size: 11px;
  color: #888;
  text-align: center;
}

.soil-panel {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.soil-panel.hidden {
  display: none;
}

/* Загрузка фото почвы */
.soil-photo-upload {
  margin-bottom: 16px;
}

.soil-photo-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  border: 2px dashed #ccc;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.soil-photo-label:hover {
  border-color: #4CAF50;
  background: linear-gradient(135deg, #e8f5e9, #f5f5f5);
}

.upload-icon {
  font-size: 48px;
}

.upload-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.upload-hint {
  font-size: 13px;
  color: #888;
  text-align: center;
}

.soil-photo-preview {
  text-align: center;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 16px;
}

.soil-photo-tips {
  background: #fff8e1;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.tip-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #f57f17;
}

.tip-list {
  margin: 0;
  padding-left: 20px;
  color: #666;
}

.tip-list li {
  margin: 6px 0;
  font-size: 14px;
}

/* Ручной ввод */
.soil-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.soil-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.soil-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #f8f8f8;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.soil-type-btn:hover {
  background: #f0f0f0;
}

.soil-type-btn.selected {
  border-color: #4CAF50;
  background: #e8f5e9;
}

.soil-sample {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.soil-name {
  font-weight: 600;
  font-size: 14px;
}

.soil-desc {
  font-size: 12px;
  color: #888;
}

.choice-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-btn {
  flex: 1;
  min-width: 100px;
  padding: 12px;
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.choice-btn:hover {
  background: #e8e8e8;
}

.choice-btn.selected {
  border-color: #4CAF50;
  background: #e8f5e9;
}

.color-options {
  display: flex;
  gap: 12px;
}

.color-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.color-btn:hover {
  transform: scale(1.1);
}

.color-btn.selected {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

/* pH слайдер */
.ph-slider-container {
  padding: 10px 0;
}

.ph-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  background: linear-gradient(to right, #f44336, #ff9800, #8BC34A, #4CAF50, #2196F3, #3F51B5);
  border-radius: 4px;
  outline: none;
}

.ph-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: white;
  border: 3px solid #4CAF50;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.ph-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #888;
}

.ph-labels span:nth-child(2) {
  font-weight: 700;
  font-size: 16px;
  color: #4CAF50;
}

/* Тест-набор */
.test-kit-promo {
  text-align: center;
  padding: 20px;
}

.kit-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.test-kit-promo h3 {
  margin: 0 0 8px 0;
}

.test-kit-promo p {
  color: #666;
  margin-bottom: 20px;
}

.test-kit-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 16px;
  text-align: left;
}

.kit-image {
  font-size: 48px;
}

.kit-info {
  flex: 1;
}

.kit-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.kit-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #2e7d32;
  margin-bottom: 8px;
}

.kit-price .current {
  font-size: 18px;
  font-weight: 700;
  color: #2e7d32;
}

.kit-price .old {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-left: 8px;
}

/* Результаты анализа почвы */
.soil-result {
  background: white;
  border-radius: 16px;
  padding: 20px;
  animation: slideInUp 0.4s ease;
}

.soil-result.hidden {
  display: none;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.result-header h3 {
  margin: 0;
}

.confidence-badge {
  padding: 6px 12px;
  background: #e8f5e9;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #2e7d32;
}

.soil-characteristics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.char-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 12px;
  text-align: center;
}

.char-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.char-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.char-value {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.suitable-crops {
  margin-bottom: 20px;
}

.suitable-crops h4 {
  margin: 0 0 12px 0;
  font-size: 15px;
}

.crops-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crop-tag {
  padding: 6px 14px;
  background: #e8f5e9;
  border-radius: 20px;
  font-size: 13px;
  color: #2e7d32;
}

.soil-recommendations {
  margin-bottom: 20px;
}

.soil-recommendations h4 {
  margin: 0 0 12px 0;
  font-size: 15px;
}

.soil-recommendations ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.soil-recommendations li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.soil-recommendations li:last-child {
  border-bottom: none;
}

.rec-icon {
  font-size: 18px;
}

.soil-products h4 {
  margin: 0 0 12px 0;
  font-size: 15px;
}

.products-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.product-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px;
  background: #f8f8f8;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-mini-card:hover {
  background: #e8f5e9;
  transform: translateY(-2px);
}

.product-mini-card .p-icon {
  font-size: 28px;
}

.product-mini-card .p-name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.product-mini-card .p-price {
  font-size: 14px;
  font-weight: 700;
  color: #4CAF50;
}

/* ===== СТАТИЧЕСКИЕ КАРТОЧКИ ТОВАРОВ ===== */
.products-grid-static {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card-static {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e5ea;
}

.product-card-static:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #4CAF50;
}

.product-emoji {
  font-size: 48px;
  text-align: center;
  padding: 16px 0;
  background: linear-gradient(135deg, #f0f4f8, #e8ecf0);
  border-radius: 12px;
  margin-bottom: 12px;
}

.product-badge-static {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff3b30, #ff6b6b);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.product-info-static {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-reason-static {
  font-size: 11px;
  color: #4CAF50;
  font-weight: 500;
}

.product-name-static {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-static {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-price-static .current {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.product-price-static .old {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

.product-rating-static {
  font-size: 11px;
  color: #888;
}

.product-rating-static::before {
  color: #FFB800;
}

/* ===== СЕЗОННЫЕ РЕКОМЕНДАЦИИ (INLINE) ===== */
.seasonal-insights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seasonal-insights .season-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
}

.seasonal-insights .season-icon {
  font-size: 24px;
}

.seasonal-insights .season-name {
  font-size: 15px;
}

.seasonal-insights .recommendation-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #4CAF50;
}

.seasonal-insights .recommendation-card.planning {
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  border-left-color: #3f51b5;
}

.seasonal-insights .recommendation-card.tip {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-left-color: #4CAF50;
}

.seasonal-insights .rec-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.seasonal-insights .rec-icon {
  font-size: 24px;
}

.seasonal-insights .rec-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1c1c1e;
}

.seasonal-insights .rec-description {
  margin: 0 0 12px 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.seasonal-insights .rec-actions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.seasonal-insights .rec-actions li {
  padding: 8px 0;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.seasonal-insights .rec-actions li:last-child {
  border-bottom: none;
}

.seasonal-insights .rec-crops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.seasonal-insights .crop-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: white;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.seasonal-insights .crop-icon {
  font-size: 18px;
}

.seasonal-insights .crop-name {
  font-weight: 600;
}

.seasonal-insights .crop-time {
  font-size: 11px;
  color: #888;
}

/* ===== ПРОМО СЕМЯН В МОДАЛКЕ ===== */
.seed-promo {
  margin-top: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  border-radius: 10px;
  border: 1px dashed #FF9800;
}

.seed-promo-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seed-promo-icon {
  font-size: 20px;
}

.seed-promo-text {
  font-size: 13px;
  color: #e65100;
}

.seed-promo-text a {
  color: #e65100;
  font-weight: 600;
  text-decoration: underline;
}

.seed-promo-text a:hover {
  color: #bf360c;
}

/* ===== РАЗДЕЛ МЕТОДЫ / ПЕРМАКУЛЬТУРА ===== */
#methods h3 {
  margin: 24px 0 16px 0;
  font-size: 18px;
  color: #2e7d32;
}

/* Карточки проблем */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.problem-card {
  background: white;
  border: 2px solid #e5e5ea;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.problem-card:hover {
  border-color: #4CAF50;
  background: #f8fff8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.15);
}

.problem-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.problem-title {
  font-size: 15px;
  font-weight: 700;
  color: #1c1c1e;
  margin-bottom: 4px;
}

.problem-desc {
  font-size: 12px;
  color: #888;
}

/* Карточки алгоритмов */
.algorithm-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.algorithm-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e5e5ea;
  transition: all 0.2s ease;
}

.algorithm-card:hover {
  border-color: #4CAF50;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.algo-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.algo-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.algo-info {
  flex: 1;
}

.algo-title {
  font-size: 15px;
  font-weight: 700;
  color: #1c1c1e;
  margin-bottom: 6px;
}

.algo-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #888;
}

.algo-preview {
  font-size: 13px;
  color: #666;
  padding: 10px 12px;
  background: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 12px;
}

.algo-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #4CAF50, #66bb6a);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.algo-btn:hover {
  background: linear-gradient(135deg, #43a047, #4CAF50);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Карточки калькуляторов */
.calc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.calc-card {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
}

.calc-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}

.calc-name {
  font-size: 12px;
  font-weight: 600;
  color: #2e7d32;
}

/* Модальное окно алгоритма */
.algorithm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  padding: 60px 16px 16px;
  overflow-y: auto;
}

.algorithm-modal.hidden {
  display: none;
}

.algorithm-modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 100px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideDown 0.25s ease;
}

@keyframes modalSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.algorithm-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e5ea;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.algorithm-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #2e7d32;
}

.algorithm-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.algo-intro {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 12px;
  margin-bottom: 20px;
}

.algo-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.algo-step {
  border-left: 3px solid #4CAF50;
  padding-left: 16px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.step-num {
  width: 28px;
  height: 28px;
  background: #4CAF50;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: #1c1c1e;
}

.step-content {
  font-size: 14px;
  color: #555;
}

.step-desc {
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.step-duration {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}

.step-materials, .step-tips {
  font-size: 13px;
  margin-bottom: 8px;
}

.step-materials ul, .step-tips ul {
  margin: 6px 0 0 0;
  padding-left: 18px;
}

.step-materials li, .step-tips li {
  margin: 4px 0;
  color: #666;
}

.step-tips {
  background: #fff8e1;
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 10px;
}

.algo-result {
  padding: 16px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 12px;
  font-size: 14px;
  color: #2e7d32;
  margin-bottom: 20px;
}

.algo-products h4 {
  margin: 0 0 12px 0;
  font-size: 15px;
}

.algo-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.algo-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px;
  background: #f5f5f7;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.algo-product:hover {
  background: #e8e8ed;
}

.algo-product .p-icon {
  font-size: 24px;
}

.algo-product .p-name {
  font-size: 11px;
  text-align: center;
  color: #333;
  line-height: 1.2;
}

.algo-product .p-price {
  font-size: 13px;
  font-weight: 700;
  color: #34c759;
}

/* Кнопки "Заказать всё" в алгоритмах */
.algo-buy-all {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e5ea;
}

.algo-total {
  text-align: center;
  font-size: 15px;
  color: #666;
  margin-bottom: 12px;
}

.algo-total strong {
  font-size: 20px;
  color: #34c759;
}

.algo-buy-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ========== ЧАТ С AI-САДОВНИКОМ ========== */

/* Стили для простого чата (chat-log) */
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  max-height: 50vh;
}

.chat-user-msg {
  align-self: flex-end;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.5;
  color: #1565c0;
}

.chat-bot-msg {
  align-self: flex-start;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.5;
  color: #2e7d32;
}

.chat-bot-msg b, .chat-bot-msg strong {
  color: #1b5e20;
}

.chat-followup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chat-followup button {
  padding: 8px 14px;
  background: #f5f5f7;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  color: #34c759;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.chat-followup button:hover {
  background: #e8e8ed;
}

.chat-followup button:active {
  transform: scale(0.97);
}

.chat-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #eee;
}

.chat-hint {
  padding: 8px 14px;
  background: #f5f5f7;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.15s;
}

.chat-hint:hover {
  background: #e8e8ed;
  color: #34c759;
}

.chat-hint:active {
  transform: scale(0.97);
}

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #eee;
}

.chat-input-row input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
}

.chat-input-row input:focus {
  border-color: #4caf50;
}

.chat-input-row button {
  width: 48px;
  height: 48px;
  background: #34c759;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-input-row button:hover {
  background: #2db84d;
}

.chat-input-row button:active {
  transform: scale(0.95);
}

.chat-section {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  height: 70vh;
  min-height: 400px;
  max-height: 600px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  color: white;
}

.chat-avatar {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.chat-header-info h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: white;
  animation: none;
}

.chat-status {
  font-size: 12px;
  opacity: 0.9;
}

/* Сообщения */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0; /* Важно для flex-контейнера */
  -webkit-overflow-scrolling: touch;
}

.chat-message {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: messageIn 0.3s ease;
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.user {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.chat-message.bot {
  align-self: flex-start;
}

.message-avatar {
  width: 36px;
  height: 36px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.chat-message.user .message-avatar {
  background: #e3f2fd;
}

.message-content {
  background: white;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  max-width: 100%;
}

.chat-message.user .message-content {
  background: #4CAF50;
  color: white;
  border-bottom-right-radius: 6px;
}

.chat-message.bot .message-content {
  border-bottom-left-radius: 6px;
}

.message-text {
  font-size: 14px;
  line-height: 1.5;
}

.message-text ul {
  margin: 8px 0;
  padding-left: 20px;
}

.message-text li {
  margin: 4px 0;
}

.message-text strong {
  font-weight: 600;
}

.message-time {
  font-size: 11px;
  color: #999;
  margin-top: 6px;
  text-align: right;
}

.chat-message.user .message-time {
  color: rgba(255,255,255,0.7);
}

/* Товары в сообщении */
.message-products {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.products-title {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.product-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.product-mini:hover {
  background: #e8f5e9;
}

.product-mini-name {
  font-size: 13px;
  color: #333;
}

.product-mini-price {
  font-size: 13px;
  font-weight: 600;
  color: #4CAF50;
}

/* Follow-up вопросы */
.message-followup {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

button.followup-chip,
.followup-chip {
  padding: 6px 12px;
  background: #e8f5e9;
  border-radius: 16px;
  font-size: 12px;
  color: #2E7D32;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}

button.followup-chip:hover,
.followup-chip:hover {
  background: #c8e6c9;
  transform: scale(1.02);
}

button.followup-chip:active,
.followup-chip:active {
  transform: scale(0.98);
}

/* Кнопки в ответах чата */
.followup-btn {
  padding: 6px 12px;
  background: #e8f5e9;
  border-radius: 16px;
  font-size: 12px;
  color: #2E7D32;
  cursor: pointer;
  border: none;
  font-family: inherit;
  margin: 2px;
  transition: all 0.2s;
}

.followup-btn:hover {
  background: #c8e6c9;
}

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

/* Индикатор печати */
.typing-indicator .message-content {
  padding: 12px 20px;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: #bbb;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Предложенные вопросы */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #eee;
}

button.suggestion-chip,
.suggestion-chip {
  padding: 8px 14px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 20px;
  font-size: 13px;
  color: #2E7D32;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border: none;
  font-family: inherit;
}

button.suggestion-chip:hover,
.suggestion-chip:hover {
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(76, 175, 80, 0.2);
}

button.suggestion-chip:active,
.suggestion-chip:active {
  transform: translateY(0);
}

/* Поле ввода */
.chat-input-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #eee;
  position: relative;
  z-index: 10;
}

.chat-input-container input,
.chat-input-container textarea {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 24px;
  font-size: 16px;
  resize: none;
  max-height: 120px;
  line-height: 1.4;
  transition: border-color 0.2s;
  background: white;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  cursor: text;
}

.chat-input-container input:focus,
.chat-input-container textarea:focus {
  outline: none;
  border-color: #4CAF50;
}

.chat-send-btn {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.chat-send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.send-icon {
  transform: rotate(-45deg);
  margin-left: 2px;
}

/* Дисклеймер */
.chat-disclaimer {
  padding: 10px 16px;
  background: #f5f5f5;
  text-align: center;
  font-size: 12px;
  color: #888;
}

/* Мобильная адаптация чата */
@media (max-width: 480px) {
  .chat-section {
    max-height: calc(100vh - 160px);
    min-height: 400px;
  }
  
  .chat-message {
    max-width: 90%;
  }
  
  .chat-suggestions {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .suggestion-chip {
    flex-shrink: 0;
  }
}

/* ========== ЛИМИТЫ В ШАПКЕ СЕКЦИЙ ========== */

.section-header-with-limit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-header-with-limit h2 {
  margin: 0;
}

.limit-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

.limit-badge.warning {
  background: #FFF3E0;
  color: #E65100;
}

.limit-badge.danger {
  background: #FFEBEE;
  color: #C62828;
}

.limit-badge.unlimited {
  background: #E8F5E9;
  color: #2E7D32;
}

.limit-icon {
  font-size: 14px;
}

/* ========== СИСТЕМА ПОДПИСОК ========== */

/* Блок использования */
.usage-stats {
  margin-top: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
}

.usage-stats h4 {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #666;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.usage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.usage-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.usage-info {
  text-align: center;
  width: 100%;
}

.usage-label {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.usage-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.usage-bar {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.usage-bar-fill.warning {
  background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.usage-bar-fill.danger {
  background: linear-gradient(90deg, #f44336, #E57373);
}

/* Триал баннер */
.trial-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #A5D6A7;
}

.trial-banner.hidden {
  display: none;
}

.trial-icon {
  font-size: 32px;
}

.trial-content {
  flex: 1;
}

.trial-title {
  font-weight: 600;
  color: #2E7D32;
  margin-bottom: 2px;
}

.trial-desc {
  font-size: 13px;
  color: #558B2F;
}

.trial-btn {
  padding: 12px 24px;
  background: #34c759;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.trial-btn:hover {
  background: #2db84d;
}

.trial-btn:active {
  transform: scale(0.98);
}

/* Новые карточки планов */
.plans-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.plan-card-new {
  position: relative;
  padding: 20px;
  background: white;
  border-radius: 16px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.plan-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.plan-card-new.gardener {
  border-color: #4CAF50;
  background: linear-gradient(180deg, white 0%, #F1F8E9 100%);
}

.plan-card-new.agronomist {
  border-color: #8D6E63;
  background: linear-gradient(180deg, white 0%, #EFEBE9 100%);
}

.plan-card-new.popular {
  transform: scale(1.02);
}

.plan-card-new.popular:hover {
  transform: scale(1.02) translateY(-4px);
}

.plan-popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
}

.plan-header-new {
  text-align: center;
  margin-bottom: 12px;
}

.plan-icon-new {
  font-size: 36px;
  margin-bottom: 8px;
}

.plan-name-new {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.plan-price-new {
  text-align: center;
  margin-bottom: 6px;
}

.price-amount-new {
  font-size: 32px;
  font-weight: 800;
  color: #333;
}

.price-currency-new {
  font-size: 14px;
  color: #666;
}

.plan-year-price {
  text-align: center;
  font-size: 12px;
  color: #4CAF50;
  margin-bottom: 16px;
}

.plan-benefits-new {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  flex: 1;
}

.benefit-item {
  padding: 6px 0;
  font-size: 13px;
  color: #333;
}

.benefit-item.highlight {
  font-weight: 600;
  color: #2E7D32;
}

.benefit-item.dim {
  color: #999;
}

.plan-btn-new {
  width: 100%;
  padding: 14px;
  background: #34c759;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.plan-btn-new:hover {
  background: #2db84d;
}

.plan-btn-new:active {
  transform: scale(0.98);
}

.plan-btn-new.secondary {
  background: #8b5a2b;
}

.plan-btn-new.secondary:hover {
  background: #724a23;
}

.plan-current-badge {
  text-align: center;
  padding: 10px;
  background: #E8F5E9;
  color: #2E7D32;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.plan-current-badge.hidden {
  display: none;
}

/* Бейдж плана в шапке профиля */
.plan-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.plan-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.plan-badge.free {
  background: #f5f5f5;
  color: #666;
}

.plan-badge.gardener {
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  color: #2E7D32;
}

.plan-badge.agronomist {
  background: linear-gradient(135deg, #EFEBE9, #D7CCC8);
  color: #5D4037;
}

.plan-trial-badge {
  padding: 3px 8px;
  background: #FFF3E0;
  color: #E65100;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

.plan-trial-badge.hidden {
  display: none;
}

.plan-expires {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}

/* Отмена подписки */
/* Promo Code Section */
.promo-code-section {
  margin-top: 24px;
  padding: 20px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: 12px;
}

.promo-input-row {
  display: flex;
  gap: 12px;
}

.promo-input-row input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  text-transform: uppercase;
}

.promo-input-row input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-apply-promo {
  padding: 12px 20px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-apply-promo:hover {
  background: var(--primary-dark);
}

.promo-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 8px;
}

.promo-result.hidden {
  display: none;
}

.promo-discount {
  color: var(--success);
  font-weight: 600;
}

.promo-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px 8px;
}

.promo-remove:hover {
  color: var(--danger);
}

.cancel-subscription {
  margin-top: 20px;
  text-align: center;
}

.cancel-subscription.hidden {
  display: none;
}

.btn-cancel-sub {
  padding: 10px 20px;
  background: transparent;
  color: #f44336;
  border: 1px solid #f44336;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel-sub:hover {
  background: #FFEBEE;
}

/* ============== СЦЕНАРИИ ============== */
.scenarios-section {
  margin: 24px 0;
}

.scenarios-section h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #333;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.scenarios-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Карточка сценария */
.scenario-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.3s ease;
}

.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.scenario-card.compact {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
  border-radius: 12px;
}

.scenario-card.compact:hover {
  transform: translateY(-2px);
}

.scenario-header {
  padding: 24px;
  text-align: center;
  position: relative;
}

.scenario-icon-large {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
}

.scenario-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.scenario-badge.easy { color: #4CAF50; }
.scenario-badge.medium { color: #FF9800; }
.scenario-badge.hard { color: #f44336; }

.scenario-body {
  padding: 0 20px 16px;
}

.scenario-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #333;
}

.scenario-subtitle {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.scenario-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.scenario-price {
  font-size: 14px;
  color: #4CAF50;
}

.scenario-price strong {
  font-size: 16px;
}

.scenario-cta {
  padding: 12px 20px;
  background: #f8f9fa;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #4CAF50;
  border-top: 1px solid #eee;
}

/* Компактная карточка */
.scenario-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.scenario-info {
  flex: 1;
}

.scenario-info .scenario-title {
  font-size: 14px;
  margin-bottom: 2px;
}

.scenario-info .scenario-subtitle {
  font-size: 12px;
  margin-bottom: 0;
}

.scenario-arrow {
  color: #ccc;
  font-size: 18px;
}

/* Модальное окно сценария */
.scenario-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.scenario-modal.open {
  opacity: 1;
  visibility: visible;
}

.scenario-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
}

.scenario-modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 520px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.scenario-modal.open .scenario-modal-content {
  transform: translateY(0);
}

.scenario-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.scenario-modal-header {
  padding: 32px 24px;
  text-align: center;
}

.scenario-icon-xl {
  font-size: 64px;
  display: block;
  margin-bottom: 12px;
}

.scenario-modal-header h2 {
  font-size: 22px;
  margin-bottom: 4px;
  color: #333;
}

.scenario-modal-header p {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.scenario-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.scenario-badges .badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.scenario-modal-body {
  padding: 0 24px 24px;
}

.scenario-modal-body h3 {
  font-size: 16px;
  margin: 20px 0 12px;
  color: #333;
}

.scenario-description {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 16px;
}

.scenario-tip {
  background: #FFF8E1;
  border-left: 3px solid #FFC107;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #795548;
  margin-bottom: 20px;
}

/* Товары в сценарии */
.scenario-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scenario-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 12px;
}

.product-icon {
  font-size: 24px;
  width: 40px;
  text-align: center;
}

.product-info {
  flex: 1;
}

.product-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.product-price {
  font-size: 14px;
  font-weight: 700;
  color: #4CAF50;
}

.product-links {
  display: flex;
  gap: 6px;
}

.product-link {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.product-link.ozon {
  background: #005BFF;
  color: white;
}

.product-link.ozon:hover {
  background: #0047CC;
}

.product-link.wb {
  background: #CB11AB;
  color: white;
}

.product-link.wb:hover {
  background: #A00D8A;
}

.product-link.yandex {
  background: linear-gradient(135deg, #FFCC00, #FFD633);
  color: #000;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.product-link.yandex .yandex-icon {
  background: #FC3F1D;
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10px;
}

.product-link.yandex:hover {
  background: linear-gradient(135deg, #FFD633, #FFE066);
  transform: scale(1.05);
}

.scenario-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  background: #E8F5E9;
  border-radius: 12px;
  font-size: 15px;
}

.scenario-total strong {
  font-size: 20px;
  color: #2E7D32;
}

/* Кнопки "Заказать всё" */
.scenario-buy-all {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.btn-buy-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-buy-all.yandex {
  background: linear-gradient(135deg, #FFCC00 0%, #FFDB4D 100%);
  color: #000;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
}

.btn-buy-all.yandex:hover {
  background: linear-gradient(135deg, #FFD633 0%, #FFE066 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.4);
}

.btn-buy-all.yandex:active {
  transform: scale(0.98);
}

.scenario-steps {
  padding-left: 20px;
  margin: 0;
}

.scenario-steps li {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

.scenario-action {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  font-size: 15px;
}

/* Пустой сад - двухколоночная структура */
.garden-empty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 0;
  margin-top: 0;
}

.garden-empty-left {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 20px;
}

.garden-empty-left h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #333;
}

.garden-empty-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  border-radius: 16px;
}

.garden-empty-right .empty-illustration {
  font-size: 64px;
  margin-bottom: 16px;
}

.garden-empty-right .empty-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2E7D32;
}

.garden-empty-right .empty-text {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.garden-empty-right .btn-primary {
  padding: 14px 28px;
  font-size: 15px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .garden-empty-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .garden-empty-right {
    order: -1; /* Кнопка добавления сверху на мобильных */
    min-height: auto;
    padding: 20px 16px;
  }
  
  .garden-empty-right .empty-illustration {
    font-size: 48px;
    margin-bottom: 12px;
  }
  
  .garden-empty-right .empty-title {
    font-size: 18px;
  }
  
  .garden-empty-right .empty-text {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  .garden-empty-left {
    padding: 14px;
  }
  
  .garden-empty-left h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .scenario-card.compact {
    padding: 12px;
    gap: 10px;
  }
  
  .scenario-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .scenario-info .scenario-title {
    font-size: 13px;
  }
  
  .scenario-info .scenario-subtitle {
    font-size: 11px;
  }
}

/* Сценарии в пустом саду */
.empty-garden-scenarios .scenarios-list {
  gap: 10px;
}

/* Сценарии на главной (inline) */
.home-scenarios-inline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.home-scenarios-inline .scenario-card.compact {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  border: 1px solid #C8E6C9;
}

/* Сценарии на главной (grid) */
.scenarios-widget-home {
  margin-top: 16px;
}

.scenarios-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .scenarios-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .scenarios-grid-home {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .scenario-card {
    border-radius: 12px;
  }
  
  .scenario-header {
    padding: 16px;
  }
  
  .scenario-icon-large {
    font-size: 36px;
  }
  
  .scenario-body {
    padding: 0 14px 12px;
  }
  
  .scenario-title {
    font-size: 14px;
  }
  
  .scenario-subtitle {
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  .scenario-meta {
    font-size: 11px;
    gap: 10px;
  }
  
  .scenario-price {
    font-size: 13px;
  }
  
  .scenario-price strong {
    font-size: 14px;
  }
  
  .scenario-cta {
    padding: 10px 14px;
    font-size: 12px;
  }
  
  .scenario-badge {
    padding: 3px 8px;
    font-size: 10px;
    top: 8px;
    right: 8px;
  }
}

/* Модальное окно со всеми сценариями */
.scenario-modal-content.all-scenarios {
  max-width: 900px;
  width: 95%;
}

.all-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 4px;
}

.all-scenarios-grid .scenario-card {
  border: 1px solid #e5e5ea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.all-scenarios-grid .scenario-card:hover {
  border-color: #34c759;
}

@media (max-width: 700px) {
  .all-scenarios-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .all-scenarios-grid .scenario-card {
    margin-bottom: 0;
  }
  
  .scenario-modal-content.all-scenarios {
    max-width: 100%;
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
  }
  
  .scenario-modal-content {
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
  }
  
  .scenario-modal-body {
    padding: 0 16px 24px;
  }
  
  .scenario-modal-header {
    padding: 20px 16px;
  }
  
  .scenario-icon-xl {
    font-size: 48px;
  }
  
  .scenario-modal-header h2 {
    font-size: 18px;
  }
  
  .scenario-products {
    gap: 8px;
  }
  
  .scenario-product {
    padding: 10px;
  }
  
  .product-icon {
    font-size: 20px;
    width: 32px;
  }
  
  .product-name {
    font-size: 12px;
  }
  
  .product-price {
    font-size: 13px;
  }
  
  /* Карточки в модалке Все идеи */
  .all-scenarios-grid .scenario-card {
    border: 1px solid #e5e5ea;
    margin-bottom: 4px;
  }
  
  .all-scenarios-grid .scenario-card .scenario-header {
    padding: 16px;
  }
  
  .all-scenarios-grid .scenario-card .scenario-body {
    padding: 12px 16px;
  }
  
  .all-scenarios-grid .scenario-card .scenario-icon-large {
    font-size: 36px;
  }
  
  .all-scenarios-grid .scenario-card .scenario-title {
    font-size: 14px;
    line-height: 1.3;
  }
  
  .all-scenarios-grid .scenario-card .scenario-subtitle {
    font-size: 12px;
  }
  
  .all-scenarios-grid .scenario-card .scenario-cta {
    padding: 10px 16px;
    font-size: 12px;
  }
  
  .product-link {
    padding: 5px 8px;
    font-size: 10px;
  }
  
  .scenario-buy-all {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .btn-buy-all {
    padding: 12px 14px;
    font-size: 13px;
  }
  
  .scenario-total {
    padding: 12px;
    font-size: 14px;
  }
  
  .scenario-total strong {
    font-size: 18px;
  }
  
  .scenario-steps {
    padding-left: 16px;
  }
  
  .scenario-steps li {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* Мобильная адаптация подписок */
@media (max-width: 768px) {
  .plans-grid-new {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .plan-card-new.popular {
    transform: none;
    order: -1;
  }
  
  .usage-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .usage-card {
    flex-direction: row;
    gap: 12px;
    text-align: left;
  }
  
  .usage-icon {
    margin-bottom: 0;
  }
  
  .usage-info {
    text-align: left;
  }
  
  .trial-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ========== ПОГОДНЫЙ ВИДЖЕТ (КОМПАКТНЫЙ) ========== */
.weather-widget {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 12px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.weather-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.35);
}

.weather-widget.weather-compact {
  padding: 10px 14px;
}

.weather-current {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.weather-icon {
  font-size: 32px;
  line-height: 1;
}

.weather-temp {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.weather-info {
  flex: 1;
}

.weather-text {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.weather-details {
  font-size: 11px;
  opacity: 0.85;
}

.weather-risk {
  text-align: right;
}

.risk-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.risk-badge.low {
  background: rgba(255,255,255,0.3);
}

.risk-badge.medium {
  background: rgba(255,193,7,0.9);
  color: #333;
}

.risk-badge.high {
  background: rgba(244,67,54,0.9);
  color: white;
}

/* Прогноз на неделю (компактный) */
.weather-forecast {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 6px 0;
  justify-content: space-between;
}

/* iOS-style glassmorphism weather cards */
.forecast-day {
  flex: 1;
  min-width: 50px;
  max-width: 80px;
  text-align: center;
  padding: 14px 8px 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.forecast-day:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.forecast-day.today {
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.forecast-day-name {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.forecast-icon {
  font-size: 24px;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}

.forecast-temp {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  margin-top: 4px;
}

.forecast-temp-min {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.forecast-precip {
  font-size: 8px;
  margin-top: 2px;
  opacity: 0.8;
}

/* Советы садоводу */
.weather-tips {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.weather-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
}

.weather-tip-icon {
  font-size: 18px;
}

/* Модальное окно детального прогноза */
.weather-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

.weather-modal-content {
  background: white;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.weather-modal-header {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  padding: 24px;
  border-radius: 24px 24px 0 0;
}

.weather-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: white;
}

.weather-modal-body {
  padding: 20px;
}

/* Детальный прогноз по дням */
.weather-day-detail {
  display: flex;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 10px;
  gap: 12px;
}

.weather-day-detail:hover {
  background: #e8f5e9;
}

.day-detail-date {
  width: 60px;
}

.day-detail-name {
  font-weight: 600;
  font-size: 14px;
}

.day-detail-date-text {
  font-size: 11px;
  color: #666;
}

.day-detail-icon {
  font-size: 28px;
}

.day-detail-temps {
  flex: 1;
  text-align: center;
}

.day-detail-temp-max {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.day-detail-temp-min {
  font-size: 13px;
  color: #666;
}

.day-detail-info {
  text-align: right;
  font-size: 12px;
  color: #666;
}

.day-detail-precip {
  color: #2196F3;
}

/* Риски в модалке */
.risk-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff3e0;
  border-radius: 12px;
  margin-bottom: 10px;
}

.risk-card.high {
  background: #ffebee;
}

.risk-card.medium {
  background: #fff8e1;
}

.risk-card.low {
  background: #e8f5e9;
}

.risk-card-icon {
  font-size: 28px;
}

.risk-card-content {
  flex: 1;
}

.risk-card-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.risk-card-desc {
  font-size: 13px;
  color: #666;
}

/* Темная тема для погоды ночью */
.weather-widget.night {
  background: linear-gradient(135deg, #2c3e50 0%, #4a6fa5 100%);
}

/* Адаптив */
@media (max-width: 480px) {
  .weather-current {
    flex-wrap: wrap;
  }
  
  .weather-risk {
    width: 100%;
    text-align: left;
    margin-top: 8px;
  }
  
  .forecast-day {
    min-width: 50px;
    max-width: 85px;
    padding: 12px 6px 10px;
  }
  
  .forecast-icon {
    font-size: 28px;
  }
  
  .forecast-day-name {
    font-size: 12px;
  }
  
  .forecast-temp {
    font-size: 16px;
  }
  
  .forecast-temp-min {
    font-size: 12px;
  }
}

/* ========================================
   SOIL ANALYSIS - Анализ почвы по фото
   ======================================== */

.soil-analysis-card {
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #D2691E 100%);
  border-radius: 16px;
  padding: 20px;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.soil-analysis-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.soil-analysis-icon {
  font-size: 40px;
  background: rgba(255,255,255,0.2);
  padding: 12px;
  border-radius: 12px;
}

.soil-analysis-info h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
}

.soil-analysis-info p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.soil-analysis-btn {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255,255,255,0.95);
  color: #8B4513;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.soil-analysis-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.section-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 25px 0;
  color: #999;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.section-divider span {
  padding: 0 15px;
  font-size: 13px;
}

/* Модальное окно анализа */
.soil-analysis-modal {
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.soil-upload-area {
  border: 2px dashed #ccc;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 20px;
}

.soil-upload-area:hover {
  border-color: #8B4513;
  background: #fff8f0;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.upload-icon {
  font-size: 48px;
}

.upload-text {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.upload-hint {
  font-size: 13px;
  color: #888;
}

.soil-preview {
  max-width: 100%;
  max-height: 250px;
  border-radius: 12px;
  cursor: pointer;
}

.soil-tips {
  background: #fff8e1;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
}

.soil-tips h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
}

.soil-tips ul {
  margin: 0;
  padding-left: 20px;
}

.soil-tips li {
  margin: 5px 0;
  font-size: 13px;
  color: #666;
}

.soil-location {
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
}

/* Анализ в процессе */
.soil-analyzing {
  text-align: center;
  padding: 40px 20px;
}

.analyzing-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #8B4513;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.analyzing-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.analyzing-steps {
  text-align: left;
  max-width: 250px;
  margin: 0 auto;
}

.step-item {
  padding: 8px 0;
  color: #999;
  font-size: 14px;
  transition: all 0.3s;
}

.step-item.active {
  color: #8B4513;
  font-weight: 600;
}

.step-item.done {
  color: #4CAF50;
}

.step-item.done::after {
  content: ' ✓';
}

/* Результат анализа */
.soil-result {
  padding: 10px 0;
}

.result-header {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #8B4513, #D2691E);
  border-radius: 16px;
  color: white;
  margin-bottom: 20px;
}

.result-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.result-type {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.result-confidence {
  font-size: 14px;
  opacity: 0.9;
}

.result-properties,
.result-recommendations,
.result-crops {
  margin-bottom: 20px;
}

.result-properties h4,
.result-recommendations h4,
.result-crops h4 {
  font-size: 15px;
  margin: 0 0 12px 0;
  color: #333;
}

.property-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.property-item {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 10px;
}

.property-label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.property-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.result-recommendations ul {
  margin: 0;
  padding-left: 20px;
}

.result-recommendations li {
  margin: 8px 0;
  font-size: 14px;
  color: #555;
}

.crops-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crop-tag {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
}

/* Фидбэк */
.soil-feedback {
  background: #f0f7ff;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
}

.soil-feedback h4 {
  margin: 0 0 12px 0;
  font-size: 15px;
  text-align: center;
}

.feedback-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.feedback-btn {
  padding: 10px 25px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.feedback-btn.positive {
  background: #4CAF50;
  color: white;
}

.feedback-btn.positive:hover {
  background: #43a047;
}

.feedback-btn.negative {
  background: #f5f5f5;
  color: #666;
}

.feedback-btn.negative:hover {
  background: #eee;
}

.correction-form {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.correction-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: #666;
}

.correction-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.btn-secondary {
  width: 100%;
  padding: 12px;
  background: #f5f5f5;
  color: #333;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-secondary:hover {
  background: #eee;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
  body {
    padding: 0 12px 24px;
  }

  /* Навигация - компактная для 5 пунктов */
  header {
    padding: 10px 8px 8px;
    gap: 8px;
    margin: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  
  header h1,
  .header-logo {
    display: none; /* Скрываем на мобильных */
  }

  nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    width: 100%;
    gap: 4px;
    padding: 0;
    margin: 0;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    flex: 1;
    flex-direction: column;
    padding: 8px 4px;
    font-size: 10px;
    gap: 4px;
    min-width: 0;
    border-radius: 12px;
    background: transparent;
  }
  
  .nav-btn.active {
    background: var(--primary-color, #22c55e);
  }

  .nav-icon {
    font-size: 20px;
  }
  
  .nav-label {
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* Заголовки */
  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
  }

  /* Карточки */
  .card {
    margin: 0 -12px;
    border-radius: 0;
    padding: 16px 12px;
  }

  section.card {
    border-radius: 16px;
    margin: 0;
  }

  /* Продукты в магазине */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0;
  }

  .product-card {
    min-width: unset;
    max-width: unset;
  }

  .product-card img {
    height: 100px;
  }

  .product-title {
    font-size: 13px;
    line-height: 1.3;
  }

  .product-price {
    font-size: 16px;
  }

  .product-old-price {
    font-size: 12px;
  }

  /* Модальные окна */
  .modal-overlay,
  .weather-modal,
  .soil-analysis-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .algorithm-modal {
    padding: 16px 12px;
    align-items: flex-start;
  }

  .modal-content,
  .weather-modal-content,
  .soil-analysis-modal-content {
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    animation: slideUpMobile 0.3s ease;
  }

  .algorithm-modal-content {
    max-height: calc(100vh - 40px);
    border-radius: 16px;
    animation: modalSlideDown 0.25s ease;
  }

  @keyframes slideUpMobile {
    from { 
      transform: translateY(100%); 
      opacity: 1; 
    }
    to { 
      transform: translateY(0); 
      opacity: 1; 
    }
  }

  /* Погода */
  .weather-widget {
    padding: 16px;
  }

  .forecast-day {
    min-width: 50px;
    padding: 8px 4px;
  }

  .forecast-day-name {
    font-size: 11px;
  }

  .forecast-temp {
    font-size: 14px;
  }

  /* Секции */
  section {
    padding: 16px;
  }

  /* Растения в саду */
  .garden-plants {
    gap: 8px;
  }

  .plant-tag {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Подразделы Мой сад */
  .garden-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    margin: 0 -12px;
    padding: 0 12px 8px;
  }

  .garden-tabs::-webkit-scrollbar {
    display: none;
  }

  .garden-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Футер */
  .app-footer {
    padding: 16px 12px;
    font-size: 11px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .footer-links a {
    font-size: 11px;
  }

  /* Карточки методов */
  .methods-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .method-card {
    padding: 12px;
  }

  .method-icon {
    font-size: 28px;
  }

  .method-title {
    font-size: 12px;
  }

  /* Алгоритмы */
  .algorithms-list {
    gap: 10px;
  }

  .algorithm-card {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  /* Ещё более узкие экраны */
  .nav-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .nav-label {
    display: none;
  }

  .nav-btn.active .nav-label {
    display: inline;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .product-card {
    padding: 8px;
  }

  .product-card img {
    height: 80px;
  }

  .product-title {
    font-size: 12px;
  }

  .product-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* ====================================================
   КАЛЕНДАРЬ САДОВОДА
   ==================================================== */

.calendar-container {
  max-width: 100%;
  padding: 0;
}

.calendar-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 24px 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.calendar-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.calendar-header::after {
  content: '🌱';
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  opacity: 0.4;
}

.calendar-title {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #166534 0%, #15803d 50%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.calendar-title::before {
  content: '🗓️';
  font-size: 32px;
  -webkit-text-fill-color: initial;
}

.calendar-subtitle {
  font-size: 15px;
  color: #4b5563;
  margin: 0;
  font-weight: 500;
}

/* Region Selector */
.calendar-region-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 16px;
}

.calendar-region-selector label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
}

.calendar-region-selector select {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
}

/* Moon Today */
.moon-today {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  color: white;
}

.moon-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.moon-icon {
  font-size: 48px;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.moon-info {
  flex: 1;
}

.moon-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.moon-details {
  font-size: 13px;
  opacity: 0.8;
  display: flex;
  gap: 8px;
}

.moon-advice {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
}

.advice-text {
  font-size: 14px;
  margin-bottom: 8px;
}

.advice-crops {
  font-size: 13px;
  opacity: 0.9;
}

.advice-label {
  color: #86efac;
  font-weight: 600;
}

.advice-list {
  margin-left: 6px;
}

/* Calendar Navigation */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 8px;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--bg-secondary);
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--primary-color);
  color: white;
}

.nav-title {
  text-align: center;
}

.nav-month {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-year {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Calendar Grid */
/* === СЕЗОННЫЕ КАЛЕНДАРНЫЕ СЕТКИ === */
.calendar-grid {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Зимние месяцы (дек, янв, фев) */
.calendar-grid.season-winter {
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 50%, #e0f2fe 100%);
  border-color: rgba(14, 165, 233, 0.2);
}

/* Весенние месяцы (март, апр, май) */
.calendar-grid.season-spring {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 50%, #ecfdf5 100%);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Летние месяцы (июнь, июль, авг) */
.calendar-grid.season-summer {
  background: linear-gradient(180deg, #fefce8 0%, #fef08a 50%, #fefce8 100%);
  border-color: rgba(234, 179, 8, 0.2);
}

/* Осенние месяцы (сен, окт, ноя) */
.calendar-grid.season-autumn {
  background: linear-gradient(180deg, #fff7ed 0%, #fed7aa 50%, #fff7ed 100%);
  border-color: rgba(249, 115, 22, 0.2);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.weekday {
  padding: 12px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
  aspect-ratio: 1;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  margin: 3px;
  transition: all 0.25s ease;
  position: relative;
  min-height: 70px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.calendar-day:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.1);
}

.calendar-day.other-month {
  opacity: 0.35;
  background: rgba(255, 255, 255, 0.3);
}

.calendar-day.today {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.2) 100%);
  border: 2px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.calendar-day.today .day-number {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.calendar-day.selected {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(59, 130, 246, 0.2) 100%);
  border: 2px solid rgba(14, 165, 233, 0.5);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.calendar-day.weekend {
  background: rgba(255, 255, 255, 0.4);
}

.calendar-day.weekend .day-number {
  color: #ef4444;
}

.calendar-day.has-tasks {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.2) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

.calendar-day.high-priority {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.25) 100%);
  border-color: rgba(34, 197, 94, 0.4);
}

.calendar-day.high-priority::after {
  content: '★';
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 10px;
  color: #22c55e;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Moon phase backgrounds */
/* Растущая луна - зеленоватый оттенок */
.calendar-day.moon-growing {
  background: linear-gradient(145deg, rgba(134, 239, 172, 0.2) 0%, rgba(255, 255, 255, 0.6) 100%);
  border-left: 3px solid rgba(34, 197, 94, 0.4);
}

/* Убывающая луна - желтоватый оттенок */
.calendar-day.moon-waning {
  background: linear-gradient(145deg, rgba(253, 224, 71, 0.2) 0%, rgba(255, 255, 255, 0.6) 100%);
  border-left: 3px solid rgba(234, 179, 8, 0.4);
}

/* Новолуние/полнолуние - серый оттенок */
.calendar-day.moon-neutral {
  background: linear-gradient(145deg, rgba(148, 163, 184, 0.15) 0%, rgba(255, 255, 255, 0.6) 100%);
  border-left: 3px solid rgba(100, 116, 139, 0.3);
}

.day-number {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.day-moon {
  font-size: 12px;
  opacity: 0.7;
}

.day-tasks-indicator {
  display: flex;
  gap: 2px;
  font-size: 10px;
  margin-top: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.day-tasks-indicator .more {
  font-size: 9px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Legend */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.high {
  background: var(--primary-color);
}

.legend-dot.normal {
  background: #f59e0b;
}

.legend-dot.moon-good {
  background: linear-gradient(135deg, #86efac, #22c55e);
}

/* Calendar Details */
.calendar-details {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.details-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  text-transform: capitalize;
}

.close-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-primary);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
}

.details-moon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}

.details-advice {
  background: var(--bg-primary);
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  border-left: 4px solid var(--primary-color);
}

.details-tasks h4 {
  font-size: 14px;
  margin: 0 0 12px 0;
  color: var(--text-secondary);
}

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

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 10px;
  margin-bottom: 8px;
}

.task-item.high {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.task-icon {
  font-size: 18px;
}

.task-crop {
  font-size: 20px;
}

.task-text {
  flex: 1;
  font-size: 14px;
}

.task-badge {
  font-size: 11px;
  background: var(--primary-color);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.details-empty, .today-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
}

/* Today Tasks */
.today-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.today-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.today-count {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 4px 10px;
  border-radius: 6px;
}

.today-moon {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.today-tasks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.today-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 10px;
  margin-bottom: 8px;
}

.today-task.high {
  background: rgba(34, 197, 94, 0.1);
  border-left: 4px solid var(--primary-color);
}

/* Upcoming Tasks */
.upcoming-tasks {
  margin-top: 16px;
}

.upcoming-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upcoming-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upcoming-item:hover {
  background: var(--bg-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upcoming-date {
  width: 50px;
  text-align: center;
  background: var(--primary-color);
  color: white;
  border-radius: 10px;
  padding: 8px 4px;
}

.date-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.date-month {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.9;
}

.upcoming-tasks-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upcoming-task {
  font-size: 13px;
  color: var(--text-primary);
}

.upcoming-days {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.upcoming-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: 12px;
}

/* Notifications Toggle */
.notifications-toggle {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.toggle-label span:first-child {
  font-weight: 600;
  font-size: 15px;
}

.toggle-label input {
  display: none;
}

.toggle-slider {
  width: 50px;
  height: 28px;
  background: var(--border-color);
  border-radius: 14px;
  position: relative;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input:checked + .toggle-slider {
  background: var(--primary-color);
}

.toggle-label input:checked + .toggle-slider::before {
  left: 25px;
}

.toggle-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 8px 0 0 0;
}

/* Responsive */
@media (max-width: 480px) {
  .calendar-day {
    min-height: 60px;
    padding: 4px;
  }
  
  .day-number {
    font-size: 12px;
  }
  
  .day-moon {
    font-size: 10px;
  }
  
  .day-tasks-indicator {
    font-size: 8px;
  }
  
  .moon-icon {
    font-size: 36px;
  }
  
  .moon-name {
    font-size: 18px;
  }
  
  .calendar-region-selector {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ========== ФИКСИРОВАННАЯ НИЖНЯЯ НАВИГАЦИЯ ========== */
@media (max-width: 768px) {
  /* Фиксируем навигацию внизу как в мобильных приложениях */
  header {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
  }
  
  /* Отступ снизу для контента */
  main {
    padding-bottom: 90px;
  }
  
  body {
    padding-top: 12px;
    padding-bottom: 0;
  }
  
  nav {
    justify-content: space-between;
  }
  
  .nav-btn {
    flex: 1;
    max-width: 72px;
    padding: 6px 2px 4px;
    background: transparent !important;
    color: #666;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .nav-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
  }
  
  .nav-btn.active {
    color: var(--primary-color, #22c55e);
    background: rgba(34, 197, 94, 0.12) !important;
  }
  
  .nav-btn.active .nav-icon {
    transform: scale(1.1);
  }
  
  .nav-btn.active .nav-icon svg {
    stroke: var(--primary-color, #22c55e);
    stroke-width: 2.5;
  }
  
  .nav-icon {
    width: 24px;
    height: 24px;
  }
  
  .nav-icon svg {
    width: 100%;
    height: 100%;
  }
  
  .nav-label {
    font-size: 10px;
    font-weight: 500;
    margin-top: 2px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
  .nav-btn {
    max-width: 60px;
    padding: 5px 1px 3px;
  }
  
  .nav-icon {
    width: 20px;
    height: 20px;
  }
  
  .nav-label {
    font-size: 9px;
  }
}

/* ========== МОБИЛЬНАЯ ОПТИМИЗАЦИЯ КАЛЕНДАРЯ ========== */
@media (max-width: 600px) {
  /* Сетка месяцев - 3 колонки */
  .months-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .month-card {
    padding: 10px 8px;
    border-radius: 12px;
  }
  
  .month-card-name {
    font-size: 13px;
  }
  
  .month-card-season {
    font-size: 14px;
  }
  
  .month-stat.optimal .stat-num {
    font-size: 20px;
  }
  
  .month-stat .stat-label {
    font-size: 9px;
  }
  
  .current-badge {
    font-size: 8px;
    padding: 2px 4px;
  }
  
  /* Навигация по году */
  .year-nav {
    gap: 16px;
    margin: 12px 0;
  }
  
  .year-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .year-nav-title {
    font-size: 20px;
  }
  
  /* Календарная сетка */
  .calendar-grid {
    border-radius: 16px;
  }
  
  .calendar-day {
    min-height: 52px;
    padding: 4px;
    margin: 2px;
    border-radius: 8px;
  }
  
  .day-number {
    font-size: 13px;
  }
  
  .day-moon {
    font-size: 9px;
  }
  
  .day-tasks-indicator {
    font-size: 8px;
    gap: 1px;
  }
  
  .calendar-day.today .day-number {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  
  /* Модалка дня */
  .modal-box {
    padding: 20px 16px;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
  }
  
  .modal-day {
    font-size: 36px;
  }
  
  .modal-month {
    font-size: 18px;
  }
  
  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .moon-phase-large {
    font-size: 36px;
  }
  
  .moon-name-modal {
    font-size: 15px;
  }
  
  .moon-details-modal {
    font-size: 12px;
  }
  
  /* Карточки культур */
  .crop-card {
    padding: 12px;
    border-radius: 12px;
  }
  
  .crop-icon-large {
    font-size: 28px;
  }
  
  .crop-name {
    font-size: 16px;
  }
  
  .varieties-label {
    font-size: 11px;
  }
  
  .variety-tag {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .buy-seeds-btn {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 10px;
  }
  
  /* Карточки семян */
  .seed-card {
    padding: 10px;
    border-radius: 12px;
  }
  
  .seed-card-image {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }
  
  .seed-emoji {
    font-size: 24px;
  }
  
  .seed-card-title {
    font-size: 14px;
  }
  
  .seed-card-subtitle {
    font-size: 11px;
  }
  
  .seed-card-region {
    font-size: 10px;
  }
  
  .seed-card-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  
  /* Напоминания */
  .modal-reminder {
    padding: 14px;
    border-radius: 12px;
  }
  
  .reminder-icon {
    font-size: 18px;
  }
  
  .reminder-title {
    font-size: 14px;
  }
  
  .reminder-btn {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 10px;
  }
  
  .reminder-success {
    padding: 12px;
    border-radius: 12px;
  }
  
  .reminder-success-icon {
    font-size: 28px;
  }
  
  .reminder-success-title {
    font-size: 14px;
  }
  
  .reminder-success-hint {
    font-size: 12px;
  }
  
  /* Pro wall */
  .pro-wall-content {
    padding: 24px 20px;
  }
  
  .pro-wall-icon {
    font-size: 48px;
  }
  
  .pro-wall-content h3 {
    font-size: 18px;
  }
  
  .pro-wall-btn {
    padding: 14px 20px;
    font-size: 15px;
  }
  
  /* Легенда */
  .calendar-legend {
    gap: 8px;
    padding: 12px;
  }
  
  .legend-item {
    font-size: 11px;
  }
  
  .legend-dot {
    width: 8px;
    height: 8px;
  }
  
  /* Кнопка назад к месяцам */
  .back-to-months {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
  }
  
  .current-month-title {
    font-size: 17px;
  }
  
  /* Уведомления о посадках */
  .notifications-toggle {
    padding: 14px;
  }
  
  .toggle-label span {
    font-size: 14px;
  }
  
  .toggle-hint {
    font-size: 12px;
  }
  
  /* Ближайшие задачи */
  .upcoming-tasks {
    padding: 14px;
  }
  
  .upcoming-header h3 {
    font-size: 15px;
  }
  
  .upcoming-item {
    padding: 10px;
  }
  
  .upcoming-date .date-num {
    font-size: 18px;
  }
  
  .upcoming-date .date-month {
    font-size: 10px;
  }
}

/* ========== КАЛЕНДАРЬ V2: МЕСЯЦЫ + МОДАЛКА ========== */

/* Навигация по годам */
.year-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 16px 0;
}

.year-nav-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-secondary);
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.year-nav-btn:hover {
  background: var(--primary-color);
  color: white;
}

.year-nav-title {
  font-size: 24px;
  font-weight: 700;
}

.year-nav.hidden {
  display: none;
}

/* Сетка месяцев */
.months-grid {
  margin: 16px 0;
}

.months-grid.hidden {
  display: none;
}

.months-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .months-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* Карточка месяца */
.month-card {
  position: relative;
  padding: 14px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  overflow: hidden;
}

.month-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.08;
  z-index: 0;
}

/* Сезонные цвета */
.month-card.spring {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}
.month-card.spring::before {
  background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
}

.month-card.summer {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}
.month-card.summer::before {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.month-card.autumn {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}
.month-card.autumn::before {
  background: linear-gradient(135deg, #ff9800 0%, #f44336 100%);
}

.month-card.winter {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}
.month-card.winter::before {
  background: linear-gradient(135deg, #2196f3 0%, #3f51b5 100%);
}

.month-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.month-card.current {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.month-card.past {
  opacity: 0.6;
}

.month-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.month-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}

.month-card-season {
  font-size: 18px;
}

.month-card-body {
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.month-stat {
  text-align: center;
}

.month-stat.optimal .stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  display: block;
}

.month-stat .stat-label {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.month-stat.none .stat-label {
  font-size: 11px;
  color: #999;
}

.current-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--primary-color);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Вид календаря */
.calendar-view {
  display: none;
}

.calendar-view.visible {
  display: block;
  animation: slideIn 0.3s ease;
}

.calendar-view-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.back-to-months {
  background: var(--bg-secondary);
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.back-to-months:hover {
  background: var(--primary-color);
  color: white;
}

.current-month-title {
  font-size: 20px;
  font-weight: 700;
}

/* Модальное окно дня - ФИКСИРОВАННОЕ К ЭКРАНУ */
.day-modal {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999;
  overflow: hidden;
}

.day-modal.visible {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  position: relative;
  z-index: 10000;
  max-height: 80vh;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.modal-date {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.modal-day {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.modal-month {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-secondary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-secondary);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #ff4444;
  color: white;
}

/* Луна в модалке */
.modal-moon {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  margin-bottom: 16px;
}

.moon-phase-large {
  font-size: 48px;
}

.moon-info-modal {
  color: white;
}

.moon-name-modal {
  font-size: 18px;
  font-weight: 600;
}

.moon-details-modal {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
}

/* Совет в модалке */
.modal-advice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  margin-bottom: 20px;
}

.advice-icon {
  font-size: 24px;
}

.advice-text-modal {
  font-size: 14px;
  color: #92400e;
  font-weight: 500;
  line-height: 1.5;
}

/* Карточки культур */
.modal-crops h4 {
  font-size: 16px;
  margin: 0 0 12px;
}

.crop-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.crop-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.crop-icon-large {
  font-size: 32px;
}

.crop-name {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
}

.crop-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.crop-badge.optimal {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
}

/* Сорта */
.crop-varieties {
  margin-bottom: 14px;
}

.varieties-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.varieties-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.variety-tag {
  padding: 6px 12px;
  background: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  border: 1px solid #e0e0e0;
}

/* Кнопка покупки */
.crop-actions {
  display: flex;
  gap: 10px;
}

.buy-seeds-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.buy-seeds-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.buy-seeds-btn:active {
  transform: scale(0.98);
}

/* Пустое состояние */
.modal-empty {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.modal-empty p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 8px 0;
}

.empty-hint {
  font-size: 14px !important;
  color: #999 !important;
}

/* Быстрые покупки */
.modal-quick-shop {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.modal-quick-shop h4 {
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-link {
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s;
}

.quick-link:hover {
  background: var(--primary-color);
  color: white;
}

/* Карточки семян (как в Идеях) */
.modal-seeds-shop {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.modal-seeds-shop h4 {
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.seed-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seed-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
}

.seed-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
  transform: translateY(-2px);
}

.seed-card-image {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seed-emoji {
  font-size: 28px;
}

.seed-card-info {
  flex: 1;
  min-width: 0;
}

.seed-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seed-card-subtitle {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.seed-card-region {
  font-size: 11px;
  color: var(--primary-color);
  margin-top: 4px;
  font-weight: 500;
}

.seed-card-action {
  width: 36px;
  height: 36px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seed-card-price {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

/* Напоминания */
.modal-reminder {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 16px;
}

.reminder-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.reminder-icon {
  font-size: 20px;
}

.reminder-title {
  font-size: 15px;
  font-weight: 600;
  color: #92400e;
}

.reminder-btn {
  width: 100%;
  padding: 14px 20px;
  background: white;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #92400e;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reminder-btn:hover {
  background: #f59e0b;
  color: white;
}

.reminder-btn.locked {
  background: #f5f5f5;
  border-color: #ddd;
  color: #999;
  cursor: pointer;
}

.reminder-btn.locked:hover {
  background: #eee;
  color: #666;
}

.pro-badge {
  padding: 2px 8px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
}

.reminder-hint {
  font-size: 12px;
  color: #b45309;
  margin: 8px 0 0;
  text-align: center;
}

/* Успешное напоминание */
.reminder-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-radius: 14px;
}

.reminder-success-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.reminder-success-text {
  flex: 1;
}

.reminder-success-title {
  font-size: 16px;
  font-weight: 700;
  color: #065f46;
}

.reminder-success-hint {
  font-size: 13px;
  color: #047857;
  margin-top: 2px;
}

.reminder-cancel-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.reminder-cancel-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Бейдж напоминания на дне календаря */
.reminder-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
  line-height: 1;
  z-index: 5;
  animation: bellRing 0.5s ease;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(10deg); }
  50% { transform: rotate(-10deg); }
  75% { transform: rotate(5deg); }
}

.calendar-day.has-reminder {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.calendar-day.has-reminder .day-number {
  color: #059669;
  font-weight: 700;
}

/* Pro Wall Overlay */
.pro-wall-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 24px;
  animation: fadeIn 0.2s ease;
}

.pro-wall-content {
  text-align: center;
  padding: 30px;
  max-width: 320px;
}

.pro-wall-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.pro-wall-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1a1a1a;
}

.pro-wall-content p {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px;
  line-height: 1.5;
}

.pro-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.pro-features li {
  padding: 8px 0;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.pro-features li:last-child {
  border-bottom: none;
}

.pro-wall-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.pro-wall-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.pro-wall-close {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: transparent;
  border: none;
  color: #999;
  font-size: 14px;
  cursor: pointer;
}

.pro-wall-close:hover {
  color: #666;
}

/* Desktop modal */
@media (min-width: 768px) {
  .day-modal.visible {
    justify-content: center;
    align-items: center;
  }
  
  .modal-box {
    position: relative;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    border-radius: 24px;
    animation: zoomIn 0.25s ease;
  }
  
  @keyframes zoomIn {
    from {
      transform: scale(0.9);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  /* Уменьшаем сетку календаря на десктопе */
  .calendar-view {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .calendar-grid {
    padding: 12px;
  }
  
  .calendar-day {
    min-height: 50px;
    padding: 4px;
  }
  
  .day-number {
    font-size: 13px;
  }
  
  .day-moon {
    font-size: 10px;
  }
  
  .day-tasks-indicator {
    font-size: 10px;
  }
}

/* ===== РАЗДЕЛ ОБУЧЕНИЕ / ВИДЕО ===== */
.learning-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  color: white;
}
.learning-header h2 { margin: 0 0 8px; font-size: 24px; }
.learning-subtitle { margin: 0; opacity: 0.9; font-size: 14px; }

.learning-search { margin-bottom: 16px; }
.learning-search input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e5ea;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}
.learning-search input:focus { border-color: #667eea; }

.learning-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}
.learning-categories::-webkit-scrollbar { display: none; }

.category-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 2px solid #e5e5ea;
  border-radius: 20px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.category-chip:hover { border-color: #667eea; background: #f5f3ff; }
.category-chip.active { background: #667eea; border-color: #667eea; color: white; }

.learning-section { margin-bottom: 24px; }
.learning-section-title { font-size: 18px; font-weight: 700; margin: 0 0 12px; }

.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
@media (max-width: 600px) { .learning-grid { grid-template-columns: 1fr; } }

.video-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.2s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.video-card-thumbnail {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card-play {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #667eea;
}
.video-card:hover .video-card-play { transform: scale(1.1); }
.video-card-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.video-card-category { position: absolute; top: 8px; left: 8px; font-size: 24px; }

.video-card-info { padding: 14px; }
.video-card-title { margin: 0 0 6px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.video-card-desc { margin: 0 0 10px; font-size: 13px; color: #666; line-height: 1.4; }
.video-card-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #888; }
.video-card-author { color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.video-card-views { color: #888; white-space: nowrap; }

.learning-empty { text-align: center; padding: 40px 20px; color: #666; }
.learning-empty .empty-icon { font-size: 48px; margin-bottom: 12px; }

/* Модальное окно видео */
.video-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; display: none; }
.video-modal.visible { display: block; }
.video-modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); }
.video-modal-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; max-width: 640px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
}
.video-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.5);
  border: none; border-radius: 50%;
  color: white; font-size: 18px;
  cursor: pointer; z-index: 10;
}
.video-player { width: 100%; aspect-ratio: 16/9; background: #1a1a2e; }
.video-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: white; text-align: center; padding: 20px;
}
.video-placeholder-icon { font-size: 64px; margin-bottom: 16px; }
.video-external-link {
  margin-top: 16px;
  padding: 12px 24px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 8px;
}
.video-info { padding: 20px; }
.video-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.video-description { margin: 0 0 12px; font-size: 14px; color: #666; }
.video-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.video-tag { padding: 4px 10px; background: #f0f0f5; border-radius: 12px; font-size: 12px; color: #667eea; }

