/* mobile.css - Полный адаптированный CSS из расширения для веб-версии */

/* Базовые переменные */
:root {
  --primary-color: #232f3e;
  --secondary-color: #FFD814;
  --secondary-hover: #FCD200;
  --accent-color: #ffd812;
  --success-color: #4CAF50;
  --warning-color: #FF9500;
  --danger-color: #F44336;
  --text-color: #333;
  --text-secondary: #666;
  --background-color: #fff;
  --border-color: #e0e0e0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}



body {
  font-family: "Amazon Ember", Arial, sans-serif;
  color: var(--text-color);
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  /* background-color: #232f3e; */
}


/* Header */
.main-header {
  background: var(--primary-color);
  color: white;
  padding: 15px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.header {
  width: 100%;
  z-index: 1030;
  transition: all .4s;
  background-color: #232f3e;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px 0 20px;
  height: 84px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  color: #ffffff;
  text-decoration: none;
}

.img_logo {
  background-image: url(../img/flat_panda_m.svg);
  width: 50px;
  height: 50px;
  transition: all 0.5s ease-out;
}

.img_logo:hover {
  background-image: url(../img/flat_panda_g.svg);
}

.txt_logo {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  margin: 14px 10px 14px 18px;
  width: 200px;
  float: right;
}

.logo_left {
  float: left;
  padding: 5px 0px 0px 0px;
}

.header-nav {
  display: flex;
  align-items: center;
}

.chrome_button {
  border-radius: 13px 13px 13px 0;
  border: 1px solid #434343;
  background: #fff;
}

.nav-item {
  margin: 0 15px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-decoration: none;
}

.signup-btn {
  background-color: var(--primary-color);
  border-radius: 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  height: 35px;
  justify-content: center;
  line-height: 15px;
  margin-left: 15px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
}


#sign-in-button {
  width: 100px;
}

.footer {
  display: flex;
  background-color: #111;
  color: white;
  padding: 10px 20px;
  gap: 12px;
  align-content: space-around;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  position: absolute;
  left: 0px;
  right: 0px;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 5px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  width: 220px;
}

.logo img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.8em;
  font-weight: 600;
}

.auth-section {
  display: flex;
  align-items: center;
  /* width: 340px; */
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-details {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.reports-counter {
  padding: 10px 20px;
  background: rgb(229 229 229);
  border-radius: 12px;
  font-weight: 600;
  margin: 20px 0px;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}


/////

.guest-settings-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
}

.auth-prompt {
  max-width: 400px;
  padding: 40px 20px;
}

.auth-prompt h2 {
  margin-bottom: 15px;
  color: #333;
}

.auth-prompt p {
  margin-bottom: 25px;
  color: #666;
  line-height: 1.5;
}

.settings-signin {
  display: flex;
  /* justify-content: center; */
}

.user-settings-state.hidden,
.guest-settings-state.hidden {
  display: none !important;
}


/////

.reports-label {
  /* font-size: 11px; */
  /* opacity: 0.8; */
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
  background: #fff;
  border-radius: 12px 12px 0px 0px;
}

#top-product-section {
  transition: opacity 0.3s ease;
}

#top-product-section.hidden {
  display: none !important;
}

#top-product-image {
  transition: opacity 0.3s ease;
}


/* Кнопки */
.primary-button {
  background: var(--secondary-color) !important;
  color: black;
  border: 1px solid var(--secondary-hover);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 160px;
  transition: background 0.2s;
  font-weight: 500;
  font-size: 1em;
  margin-left: 10px;
  width: -webkit-fill-available;
}

.primary-button:hover {
  background: var(--secondary-hover);
}

.secondary-button {
  background: #f0f0f0;
  color: #333;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.secondary-button:hover {
  background: #e0e0e0;
}

.secondary-button.small {
  height: 33px;
  max-width: 50%;
  min-width: 150px;
  border-radius: 8px;
  box-sizing: border-box;
  background: #f0f0f0;
  border-color: #f0f0f0;
  border-style: solid;
  border-width: 1px;
  cursor: pointer;
  display: inline-block;
  padding: 0;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  line-height: 30px;
  font-size: 13px;
}

/* Поисковая секция */
.search-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.search-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: row;
  align-content: space-around;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 10px;
  justify-content: space-between;
}

/* Группа настроек сверху */
.setting-group-top {
  /* margin: 10px 9px 0px 9px; */
  display: flex;
  gap: 5px;
  max-width: 40%;
  min-width: 342px;
  /* margin-bottom: 15px; */
}

.cost-input-container {
  /* flex: 1; */
}

#settings-tab {
  padding: 20px;
}

.setting-group-top input,
.setting-group-top select {
  padding: 6px 9px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  height: 40px;
}

#currency-select {
  border: none;
  border-radius: 0;
  width: 68px;
  text-align: center;

  background: #fff;
  color: black;
}


#country-select {
  width: 202px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: black;
}

/* Основная форма поиска */
.main-form {
  display: flex;
  margin-bottom: 0;
  transition: transform .5s;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  /* padding: 8px 0px 0px 0px; */
  width: -webkit-fill-available;
  max-width: 50%;
  min-width: 358px;
}

#generate-icon {
  color: black;
}

.input-container {
  position: relative;
  display: flex;
  width: 100%;
  gap: 6px;
  flex: 1 1 0%;
  margin-right: 1px;
}

.form-input {
  width: 100%;
  padding: 9px 37px 9px 10px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  height: 40px;
}

.form-button {
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.03em;
  border-width: medium;
  border-style: none;
  border-image: none;
  padding: 0px 4px;
  background: var(--secondary-color);
  border-color: var(--secondary-hover);
  border-radius: 10px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-button:hover {
  background: var(--secondary-hover);
}

/* Кнопка очистки */
.clear-input {
  position: absolute;
  right: 56px;
  top: 25%;
  background: none;
  border: medium;
  padding: 0px;
  cursor: pointer;
  display: none;
  opacity: 0.5;
  transition: opacity 0.2s;
  scale: 1.2;
  color: black;
  height: 20px;
  width: 20px;
  z-index: 1000;
  border-radius: 6px;
}

.clear-input:hover {
  opacity: 1;
}

.input-container input:not(:placeholder-shown)+.clear-input {
  display: block;
}

.search-button svg {
  width: 24px;
  height: 24px;
}

/* Suggestions dropdown */
.suggestions-container {
  position: absolute;
  z-index: 1000;
  background: white;
  max-height: 250px;
  overflow-y: auto;
  border-radius: 0 0 4px 4px;
  margin-left: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 70%;
  top: 41px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.suggestions-container div {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.suggestions-container div:hover {
  background-color: #f5f5f5;
}

/* Табы */
.tabs-nav {
  background: #f8f9fa;
  border-bottom: 1px solid var(--border-color);
  border-radius: 12px 12px 0px 0px;
}

.tab-button {
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  /* color: var(--text-secondary); */
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--secondary-color);
  font-weight: 600;
}

.tab-button:hover {
  color: var(--primary-color);
}

/* Анимация Tab активации для автопереключения */
.tab-button.auto-activated {
  animation: tab-highlight 0.8s ease-out;
}

@keyframes tab-highlight {
  0% {
    background-color: rgba(255, 193, 7, 0.3);
    transform: scale(1.05);
  }

  50% {
    background-color: rgba(255, 193, 7, 0.2);
  }

  100% {
    background-color: transparent;
    transform: scale(1);
  }
}

/* Контент табов */
.tab-content {
  min-height: 60vh;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Карточки идей продуктов */
.ideas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.idea-card {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  padding: 18px 20px;
  border-bottom: 0.01em solid var(--border-color);
  border-right: 0.01em solid var(--border-color);
  transition: background 0.25s;
  border-radius: 3px;
}

.idea-card:hover {
  background: #f5f5f5 !important;
}

.idea-image-container {
  position: relative;
  margin-right: 15px;
  min-width: 100px;
}

.idea-image {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
}

.idea-price {
  position: absolute;
  right: 5px;
  top: 5px;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
}

.idea-info {
  flex: 1;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.idea-title {
  word-break: break-word;
  font-weight: normal;
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.3;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  color: #333;
  margin-top: -5px;
  padding-right: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idea-buttons {
  display: flex;
  gap: 10px;
  clear: both;
}

/* История результатов */
.history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.history-card {
  padding: 18px 20px;
  border-bottom: 0.01em solid var(--border-color);
  border-right: 0.01em solid var(--border-color);
  cursor: pointer;
  transition: background 0.25s;
  border-radius: 3px;
  min-width: 320px;
}

.history-card:hover {
  background: #f5f5f5 !important;
}

/* Анимация процесса анализа для карточек */
.history-card[data-status="pending"],
.history-card[data-status="processing"] {
  position: relative;
  overflow: hidden;
}

.history-card[data-status="pending"]::before,
.history-card[data-status="processing"]::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary-color);
  background-size: 200% 100%;
  animation: progress-bar 1.5s infinite linear;
}

@keyframes progress-bar {
  0% {
    background-position: 0% 50%;
    transform: translateX(-100%);
  }

  100% {
    background-position: 100% 50%;
    transform: translateX(100%);
  }
}

/* Анимация появления новой карточки */
.history-card.new-item {
  animation: card-slide-in 0.6s ease-out;
}

@keyframes card-slide-in {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Подсветка обновленной карточки */
.history-card.status-updated {
  animation: card-update-highlight 2s ease-out;
}

@keyframes card-update-highlight {
  0% {
    background-color: rgba(255, 126, 29, 0.2);
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255, 126, 29, 0.3);
  }

  50% {
    background-color: rgba(255, 126, 29, 0.1);
  }

  100% {
    background-color: transparent;
    transform: scale(1);
    box-shadow: none;
  }
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5px;
}

.history-title {
  word-break: break-word;
  font-weight: normal;
  font-size: 1.2em;
  line-height: 1.3;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  color: #333;
  flex: 1;
  margin-right: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #666;
  letter-spacing: 0.02em;
  margin-bottom: 5px;
}

.history-date {
  font-size: 11px;
  color: #999;
}

.marketplace-info {
  /* display: flex;
  align-items: center; */
}

.mp-icon {
  width: 21px !important;
  height: 21px !important;
  /* margin-right: 5px; */
}

.flag-icon {
  border-radius: 2px;
  width: 16px;
  height: 16px;
  margin-left: 5px;
}

.history-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  clear: both;
  /* padding: 10px 0px 0px 0px; */
}

.metric-label {
  color: #666;
  margin-right: 3px;
  font-variant-caps: all-small-caps;
}

.metric-value {
  font-weight: normal;
  color: #333;
  font-size: 1.8em;
  font-weight: 400;
  white-space: nowrap;
}

.metric-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /* gap: 8px; */
  font-size: 11px;
  min-width: 190px;
  width: 40%;
}

.metric-item-img {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 8px;
  padding-right: 10px;
}

.metric-item-left {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  width: 70px;
  align-items: self-start;
}

.metric-item-right {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  width: 110px;
  align-items: self-end;
}

.product-metric-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-right: 16px;
  border-radius: 8px;
}

/* Стили для индикатора очереди */
.queue-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 6px;
  border-left: 3px solid var(--secondary-color);
}

.queue-position {
  background: var(--warning-color);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

.queue-total {
  color: var(--text-secondary);
  font-size: 11px;
}

/* Status badges */
.status-badge {
  display: inline-block;
  border-radius: 3px;
  height: 21px;
  padding: 0px 8px;
  font-size: 14px;
  color: white;
  letter-spacing: 0.05em;
  font-variant-caps: all-small-caps;
  line-height: 18px;
  margin-top: 2px;
}

.status-completed {
  background: var(--success-color);
}

.status-pending,
.status-processing {
  background: var(--secondary-color);
  color: black;
  box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  animation: pulse-shadow 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-shadow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  }

  70% {
    box-shadow: 0 0 0 5px rgba(255, 193, 7, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

.status-failed {
  background: var(--danger-color);
}

.status-nodata {
  background: #999999;
}

.status-subscribe {
  background: var(--accent-color);
  color: black;
}

.status-queued {
  background: #9C27B0;
}

.status-unknown {
  background: #999;
}

/* Стили для диалогов */
.options-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlay-appear 0.3s ease-out;
}

@keyframes overlay-appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.options-dialog {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: dialog-appear 0.3s ease-out;
  position: relative;
}

@keyframes dialog-appear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.dialog-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.dialog-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.dialog-close:hover {
  background: #f0f0f0;
}

.dialog-message {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.dialog-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.dialog-button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 90px;
}

.dialog-button.restart {
  background: var(--success-color);
  color: white;
}

.dialog-button.restart:hover {
  background: #45a049;
  transform: translateY(-1px);
}

.dialog-button.remove {
  background: var(--danger-color);
  color: white;
}

.dialog-button.remove:hover {
  background: #da190b;
  transform: translateY(-1px);
}

.dialog-button.cancel {
  background: #f0f0f0;
  color: #333;
}

.dialog-button.cancel:hover {
  background: #e0e0e0;
}

/* Message box */
.message-box {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid #e0e0e0;
  margin: 20px 18px;
}

/* Loading spinner */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
}

.spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--primary-color);
  animation: spin 0.8s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

/* МОДАЛЬНОЕ ОКНО РЕЗУЛЬТАТОВ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  bottom: 0px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 90vw;
  width: 100%;
  overflow: hidden;
  display: flex;
  height: 100%;
  flex-direction: column;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5em;
  color: var(--text-color);
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0;
  width: 8%;
  /* height: 80%; */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  scale: 1.5;
  margin-left: 10px;
  margin-bottom: 10px;

}

.close-button:hover {
  color: var(--text-color);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  max-height: 100vh;
}

/* РЕЗУЛЬТАТЫ АНАЛИЗА */
.results-container {
  padding: 0;
}

/* Заголовок продукта */
.product-header {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.product-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #333;
  text-transform: capitalize;
  line-height: 1.3;
  margin: 0;
}

.marketplace-info {
  display: flex;
  align-items: center;
  /* padding: 6px 2px; */
  /* border-radius: 6px; */
  /* border: 1px solid var(--border-color); */
}

.marketplace-info img {
  width: 20px;
  height: 20px;
  /* margin-right: 8px; */
}

.marketplace-info span {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-color);
  padding-left: 10px;
}

/* Верхний продукт */
.top-product-section {
  padding: 0 15px 15px;
}

.top-product-section h3 {
  padding-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.product-card {
  display: flex;
  background: white;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.product-image {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-right: 12px;
  border-radius: 4px;
}

.product-info {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
}

/* Карточки с оценками */
.score-cards {
  display: flex;
  gap: 10px;
  padding: 0 15px;
  margin-bottom: 15px;
  justify-content: space-between;
  text-align: center;
}

.score-card {
  padding: 15px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--border-color);
  width: 100%;
  display: flex;
  justify-content: space-around;
  flex-direction: column;
  /* gap: 10px; */
}

.score-card h3 {
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--text-color);
  font-weight: 500;
}

.score-value {
  font-size: clamp(14px, 6vw, 45px);
  font-weight: 400;
  margin-bottom: 8px;
  white-space: nowrap;
}

.score-bar {
  height: 3px;
  background: #d3d3d3;
  border-radius: 1px;
  margin-bottom: 8px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-description {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Секция данных */
.data-section {
  padding: 0 15px 15px;
}

.data-section h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text-color);
  /* font-weight: 500; */
}

.data-cards {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  text-align: center;
}

.data-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--border-color);
  width: 100%;
}

.data-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 8px;
}

.data-value {
  font-size: clamp(14px, 6vw, 50px);
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 5px;
  white-space: nowrap;
  text-align: center;
}

/* График */
.chart-container {
  height: 280px;
  margin-top: 10px;
  background: white;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--border-color);
}

/* Прогноз продаж */
.forecast-section {
  padding: 0 15px 15px;
}

.forecast-section h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text-color);
  font-weight: 600;
}

.forecast-cards {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.forecast-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--border-color);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.forecast-label {
  color: var(--text-color);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.forecast-value {
  font-size: clamp(14px, 5vw, 40px);
  font-weight: 400;
  color: var(--text-color);
  white-space: nowrap;
}

/* Таблицы */
.competitors-table,
.keywords-table {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
}

.competitors-table table,
.keywords-table table {
  width: 100%;
  border-collapse: collapse;
}

.competitors-table th,
.keywords-table th {
  background: #f5f5f5;
  text-align: left;
  padding: 8px 10px;
  font-weight: 500;
  font-size: 12px;
}

.competitors-table td,
.keywords-table td {
  padding: 8px 10px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
}

.keyword-title {
  text-transform: capitalize;
  font-weight: 600;
  cursor: pointer;
  width: 80%;
}

.keyword-row {
  cursor: pointer;
  transition: background 0.2s;
}

.keyword-row:hover {
  background: #f8f9fa;
}

.competition-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  color: white;
  font-weight: 400;
  display: inline-block;
}

.competition-low {
  background-color: #4CAF50;
}

.competition-medium {
  background-color: #FF9500;
}

.competition-high {
  background-color: #F44336;
}

.competitors-table tr:nth-child(odd),
.keywords-table tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.03);
}

.competitors-table tr:hover,
.keywords-table tr:hover {
  background-color: rgba(0, 0, 0, 0.07) !important;
}

/* Премиум-секция */
.premium-locked {
  position: relative;
  margin-top: 10px;
}

.premium-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 30px;
  text-align: center;
}

.lock-icon {
  font-size: 32px;
  margin-bottom: 16px;
  color: #3E7BFA;
}

.premium-overlay h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-color);
}

.premium-overlay p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 300px;
}

.premium-content {
  filter: blur(3px);
}

/* Ценовой диапазон */
.price-range-container {
  background: white;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--border-color);
  margin: 0 0 15px 0;
}

.price-range-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.price-box {
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.price-label {
  color: var(--text-color);
  font-size: 12px;
  margin-bottom: 5px;
  font-weight: 500;
}

.price-min {
  font-size: clamp(14px, 5vw, 40px);
  font-weight: 400;
  color: #4CAF50;
}

.price-avg {
  font-size: clamp(14px, 5vw, 40px);
  font-weight: 400;
  color: #FF9500;
}

.price-max {
  font-size: clamp(14px, 5vw, 40px);
  font-weight: 400;
  color: #F44336;
}

.price-gradient-bar {
  height: 3px;
  border-radius: 3px;
  margin-bottom: 10px;
  background: linear-gradient(to right, #4CAF50, #FFC107, #F44336);
}

/* Market evaluation и время */
.market-evaluation,
.time-container {
  background: white;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--border-color);
  width: 100%;
}

.market-evaluation h3,
.time-container h3 {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-color);
}

.evaluation-row,
.time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #F1F4F8;
}

.evaluation-row:last-child,
.time-row:last-child {
  border-bottom: none;
}

.evaluation-label,
.time-label,
.advertising-label {
  font-weight: 400;
  color: var(--text-color);
  font-size: 13px;
}

.evaluation-warning,
.time-value,
.advertising-value {
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: clamp(14px, 4.0vw, 25px);
  white-space: nowrap;
  font-variant-caps: all-small-caps;
}

/* Меню поставщиков */
.supplier-menu-container {
  white-space: nowrap;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 20px 18px;
  border-radius: 10px;
  margin: 18px;
  border: 1px solid var(--border-color);
  background: rgb(0 0 0 / 4%);
}

.supplier-menu-container h3 {
  margin-left: 0px !important;
  margin-bottom: 0px !important;
}

.supplier-dropdown {
  position: relative;
  display: inline-block;
}

.supplier-button {
  font-size: 14px;
  gap: 9px;
  padding: 9px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
  background: #FFD814;
  color: black;
}

.supplier-button:hover {
  background: #FCD200;
}

.supplier-dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 4px;
  right: 0;
  margin-top: 5px;
  text-align: left;
}

.supplier-dropdown-content.show {
  display: block;
}

.supplier-dropdown-content a {
  color: var(--text-color);
  padding: 8px 10px;
  text-decoration: none;
  display: block;
  font-size: 13px;
  transition: background-color 0.15s;
}

.supplier-dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Дисклеймер */
.disclaimer-card {
  margin: 15px 0px;
  padding: 12px;
  background: rgb(255 235 59 / 15%);
  border-radius: 8px;
  border-left: 3px solid #FF9500;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-color);
}

/* Анимация профита */
@keyframes profit-count-up {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }

  80% {
    transform: scale(1);
    opacity: 1;
  }

  90% {
    transform: scale(1.2);
  }

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

.profit-card {
  transition: background-color 0.5s ease;
}

.profit-card.positive {
  background-color: rgba(76, 175, 80, 0.15) !important;
}

.profit-card.negative {
  background-color: rgba(244, 67, 54, 0.15) !important;
}

.profit-card.neutral {
  background-color: rgba(244, 216, 20, 0.15) !important;
}

#profit-value {
  animation: profit-count-up 2s ease-out;
}

/* Стили настроек */
.setting-group {
  margin: 15px 0;
}

.setting-group label {
  display: block;
  margin: 7px 0px;
  font-size: 14px;
  font-weight: bold;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
}

.feedback-form {
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  margin-top: 20px;
}

.support-info {
  margin-top: 20px;
  color: #666;
  font-size: 14px;
}

.support-info a {
  color: var(--primary-color);
  text-decoration: none;
}

.support-info a:hover {
  text-decoration: underline;
}

.feedback-result {
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.feedback-result.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.feedback-result.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Уведомления */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10001;
  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
}

.notification-success {
  background: var(--success-color);
}

.notification-error {
  background: var(--danger-color);
}

.notification-warning {
  background: var(--warning-color);
}

.notification-info {
  background: #2196F3;
}

.notification-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  margin-left: 15px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.td_text {
  word-break: break-word;
  font-weight: normal;
  font-size: 1.2em;
  line-height: 1.3;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  color: rgb(51, 51, 51);
  margin-right: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  flex: 1 1 0%;
  overflow: hidden;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* ПРАВИЛЬНАЯ ШАХМАТНАЯ ПОДСВЕТКА */
/* Hover эффекты остаются приоритетными */
.history-card:hover,
.idea-card:hover {
  background: #f5f5f5 !important;
  transition: background 0.25s;
}

/* Для одной колонки - простое чередование */
@media (max-width: 667px) {

  .history-card:nth-child(odd),
  .idea-card:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.03);
  }
}

/* Для двух колонок - шахматный порядок */
@media (min-width: 668px) and (max-width: 923px) {

  .history-card:nth-child(4n+1),
  .history-card:nth-child(4n),
  .idea-card:nth-child(4n+1),
  .idea-card:nth-child(4n) {
    background-color: rgba(0, 0, 0, 0.03);
  }
}

/* Для трех колонок - особый шахматный порядок */
@media (min-width: 924px) {

  .history-card:nth-child(6n+1),
  .history-card:nth-child(6n+3),
  .history-card:nth-child(6n+5),
  .idea-card:nth-child(6n+1),
  .idea-card:nth-child(6n+3),
  .idea-card:nth-child(6n+5) {
    background-color: rgba(0, 0, 0, 0.03);
  }
}

/* Адаптивность */
@media (min-width: 360px) {
  .main-form {
    max-width: 40%;
    min-width: 278px;
  }
}

#currency-select {
  border: none;
  border-radius: 0;
  /* width: 68px; */
  text-align: center;
  background: #fff;
}

@media (min-width: 638px) {
  .main-form {
    max-width: 40%;
    min-width: 278px;
  }

  .tabs-nav {
    /* border-radius: 0px; */
  }

  #currency-select {
    width: 68px;
  }
}



@media (max-width: 767px) {

  .tabs-nav {
    border-radius: 0px;
  }

  .main-content {
    padding: 0px 0px;
  }

  .search-section {
    border-radius: 0px;
    /* padding: 10px 20px; */
  }

  .setting-group-top {
    /* flex-direction: column; */
    min-width: auto;
    max-width: 100%;
  }

  .main-form {
    min-width: auto;
    max-width: 100%;
  }

  #country-select {
    width: 100%;
  }

  .suggestions-container {
    width: calc(100% - 60px);
  }

  .score-cards,
  .data-cards,
  .forecast-cards {
    /* flex-direction: column; */
  }

  .modal {
    padding: 0px;
  }

  .modal-content {
    max-width: 100vw;
    /* max-height: 100vh; */
    border-radius: 0px;
  }

  .modal-header {
    padding: 15px;
  }

  .modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: var(--text-color);
    word-break: break-word;
    font-weight: normal;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
  }



  .price-range-grid {
    /* grid-template-columns: 1fr; */
  }

  .supplier-menu-container {
    flex-direction: column;
    text-align: center;
  }

  .market-evaluation h3,
  .time-container h3 {
    font-size: 12px;
  }

  .evaluation-row,
  .time-row {
    /* flex-direction: column; */
    /* align-items: flex-start; */
    gap: 5px;
  }

  .options-dialog {
    margin: 0 16px;
  }

  .dialog-buttons {
    flex-direction: column;
  }

  .dialog-button {
    width: 100%;
  }
}

@media (max-width: 810px) {
  .nav-item {
    display: none;
  }
}

@media (max-width: 991px) {
  .header-container {
    padding: 0 20px;
    flex-wrap: wrap;
  }
}

@media (min-width: 668px) {
  .main-form {
    max-width: 45%;
  }

  #country-select {
    width: 202px;


  }

  .header-container {
    padding: 0 20px;
  }


  .ideas-grid,
  .history-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .score-cards {
    grid-template-columns: auto auto;
  }

  .data-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .forecast-cards {
    grid-template-columns: auto auto;
  }

  .price-range-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 924px) {
  .main-form {
    max-width: 59%;
  }

  .header-container {
    padding: 0 20px;
    flex-wrap: wrap;
  }

  .ideas-grid,
  .history-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .score-cards {
    grid-template-columns: auto auto auto;
  }

  .data-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .forecast-cards {
    grid-template-columns: auto auto auto;
  }
}


/* Анимация профита - ИСПРАВЛЕННАЯ ВЕРСИЯ */
@keyframes profit-final-bounce {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

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

/* Состояния карточки профита */
.forecast-card {
  transition: background-color 0.5s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.forecast-card.positive {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05)) !important;
  border-left: 4px solid #4CAF50;
}

.forecast-card.negative {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(244, 67, 54, 0.05)) !important;
  border-left: 4px solid #F44336;
}

.forecast-card.neutral {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05)) !important;
  border-left: 4px solid #FFC107;
}

/* Эффект при завершении анимации */
.forecast-card.positive::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(76, 175, 80, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: profit-shine 2s ease-out 0.5s;
}

.forecast-card.negative::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(244, 67, 54, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: profit-shine 2s ease-out 0.5s;
}

@keyframes profit-shine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Стили для самого значения профита */
#profit-value {
  font-weight: 600;
  font-size: clamp(16px, 7vw, 42px);
  transition: color 0.3s ease;
}

.forecast-card.positive #profit-value {
  color: #2E7D32;
}

.forecast-card.negative #profit-value {
  color: #C62828;
}

.forecast-card.neutral #profit-value {
  color: #F57F17;
}

/* Пульсация во время анимации */
.forecast-card.neutral #profit-value {
  animation: profit-pulse 1s ease-in-out infinite;
}

@keyframes profit-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Останавливаем пульсацию когда анимация завершена */
.forecast-card.positive #profit-value,
.forecast-card.negative #profit-value {
  animation: none;
}

/////
/* Добавить в mobile.css */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.signin-suggestion {
  animation: slideIn 0.3s ease;
}

/* One Tap контейнер от Google */
#credential_picker_container {
  z-index: 10000 !important;
}

/* Стили для кнопки Google Sign-In */
#sign-in-button {
  margin: 10px 0;
}

#sign-in-button iframe {
  border-radius: 4px;
}


/* Subscription styles */
.subscription-container {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 20px 0;
}

.feature-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease;
}

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

.feature-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

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

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 20px 0;
}

.plan-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.plan-card.recommended {
  border-color: #FFD814;
  transform: scale(1.02);
}

.plan-card.recommended:hover {
  transform: scale(1.02) translateY(-3px);
}

.recommended-badge {
position: absolute;
top: 0px;
right: -2px;
background: #FFD814;
color: #333;
padding: 6px 12px;
border-radius: 0px 6px 0px 12px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.plan-header {
  padding: 30px 20px 20px 20px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

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

.plan-price {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.plan-price span {
  font-size: 0.4em;
  color: #666;
  font-weight: normal;
}

.plan-discount {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.plan-features {
  padding: 25px 20px;
}

.plan-feature {
  color: #555;
  margin-bottom: 12px;
  font-size: 15px;
  display: flex;
  align-items: center;
}

/* .plan-feature::before {
  content: "✓";
  color: #28a745;
  font-weight: bold;
  margin-right: 10px;
  font-size: 16px;
} */

.plan-feature.highlight {
  font-weight: 600;
  color: #28a745;
}

.plan-button {
  width: calc(100% - 40px);
  margin: 0 20px 25px;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: #FFD814;
  color: #333;
}

.plan-button:hover {
  background: #FCD200;
  transform: translateY(-1px);
}

.plan-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Dialog styles */
.options-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.options-dialog {
  background: white;
  border-radius: 12px;
  padding: 25px;
  max-width: 90%;
  width: 420px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: dialogAppear 0.3s ease-out;
}

/* Статус подписки */
.subscription-status-section {
  margin-bottom: 30px;
}

.subscription-status {
  display: flex;
  padding: 20px;
  border-radius: 12px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 20px;
  flex-direction: row-reverse;
  justify-content: space-around;
  align-content: stretch;
  flex-wrap: wrap;
  gap: 1px 20px;
  margin-top: 10px;
  width: fit-content;
  align-items: flex-start;
}

.status-icon {
  font-size: 36px;
  /* margin-right: 20px; */
  margin-top: -3px;
}

.status-icon.active {
  color: var(--success-color, #4CAF50);
}

.status-icon.inactive {
  color: var(--danger-color, #F44336);
}

.status-icon.warning {
  color: var(--warning-color, #FF9500);
}

.status-details {
  flex: 1;
}

.status-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.status-description {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.reports-info {
  display: flex;
  align-items: center;
  /* gap: 8px; */
  justify-content: center;
  flex-direction: column;
  margin-top: -5px;
}

.reports-info span:first-child {
  font-size: 36px;
  font-weight: 600;
  color: #333;
}

.reports-label {
  font-size: 9px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Сообщение для активных подписчиков */
.active-subscription-message {
  text-align: center;
  padding: 40px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
  border: 2px solid #4CAF50;
}

.success-message {
  max-width: 400px;
  margin: 0 auto;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.success-message h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2e7d32;
}

.success-message p {
  font-size: 16px;
  color: #4a4a4a;
  line-height: 1.5;
}

/* Скрытие планов для премиум-пользователей */
#subscription-plans-section.hidden,
.active-subscription-message.hidden {
  display: none !important;
}

/* Адаптивный дизайн для статуса */
@media (max-width: 600px) {
  .subscription-status {
    /* flex-direction: column; */
    /* text-align: center; */
  }

  .status-icon {
    margin-right: 0;
    /* margin-bottom: 15px; */
  }
}

@keyframes dialogAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Responsive design */
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}