

html, body {
  background: var(--bg);
  overflow-x: hidden;
}



/* =========================
   DASHBOARD LAYOUT
========================= */

.dashboard {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 16px 16px 90px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  gap: 20px; /* единый вертикальный ритм */
}

/* =========================
   CARD
========================= */

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 0px 16px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

/* =========================
   USER BLOCK
========================= */

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    135deg,
    #cbb6e3,
    #e9def5
  );

  font-size: 22px;
}

[data-theme="dark"] .avatar {
  background: linear-gradient(
    135deg,
    #3a3447,
    #1a1820
  );
}

.user-info {
  display: flex;
  flex-direction: column;
}

.username {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.subscription-line {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.2;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: transform .1s ease, box-shadow .1s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.btn.accent {
  margin: 14px 0 18px;
}

/* =========================
   HINT
========================= */

.hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* =========================
   QUICK ACTIONS
========================= */

.quick-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.quick-actions a {
  flex: 1;
  background: #f3eff8;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  text-decoration: none;
  color: #2b2b2b;
  font-size: 13px;
  font-weight: 500;
}

.quick-actions span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.7;
}

/* =========================
   MENU
========================= */

.menu {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  text-decoration: none;
  color: #2b2b2b;
  font-size: 14px;
}




/* =========================
   CAROUSEL (EDGE-TO-EDGE)
========================= */

.recipes-carousel {
  display: flex;
  gap: 12px;

  overflow-x: auto;
  overflow-y: visible;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  padding-left: 0;
  padding-right: 0;

  margin-left: 0;
  margin-right: 0;
}


.lessons-carousel::-webkit-scrollbar,
.recipes-carousel::-webkit-scrollbar {
  display: none;
}

/* =========================
   CAROUSEL CARD
========================= */

.lesson-card-mini {
  flex: 0 0 120px;
  scroll-snap-align: start;

  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.lesson-card-mini:active {
  transform: scale(0.97);
}

/* =========================
   IMAGE + OVERLAY
========================= */

.lesson-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
  overflow: hidden;
}

.lesson-card-img img {
  object-fit: cover;
  transition: transform 0.35s ease;
}

.lesson-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.15),
    rgba(0,0,0,0)
  );
  z-index: 1;
  transition: background 0.25s ease;
}

.lesson-title-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;

  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   BADGES
========================= */

.lesson-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;

  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 12px;
  padding: 4px 7px;
  border-radius: 10px;
}

.lesson-badge.done {
  background: #22c55e;
}

/* =========================
   HOVER (DESKTOP)
========================= */

@media (hover: hover) {

  .lesson-card-mini:hover .lesson-card-img img {
    transform: scale(1.05);
  }

  .lesson-card-mini:hover .lesson-overlay {
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.75),
      rgba(0,0,0,0.3),
      rgba(0,0,0,0)
    );
  }
}


.lessons-carousel .card-media {
  flex: 0 0 130px;    
  max-width: 130px;
}

@media (min-width: 768px) {
.lessons-carousel .card-media {
  flex: 0 0 130px;    
  max-width: 130px;
}
}

.lessons-carousel .card-media {
  flex: 0 0 130px;     /* 🔥 было 160 */
  max-width: 130px;
}


.card-media__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.dashboard-section {
margin-top: 12px;
}




.dashboard-continue {
border-radius: 12px;
}


.section-header h2 {
font-size: 20px;
font-weight: 600;
}


.section-header a {
font-size: 14px;
text-decoration: none;
}

.dashboard-user{
  margin-bottom: 20px;
}

/* =========================
CONTINUE HERO
========================= */


.hero-continue {
position: relative;
border-radius: 18px;
overflow: hidden;
padding: 0;
}


.hero-continue__link {
display: block;
position: relative;
color: #fff;
text-decoration: none;
}



.hero-continue__overlay {
position: absolute;
inset: 0;
background: linear-gradient(
to top,
rgba(0,0,0,0.7),
rgba(0,0,0,0.25),
rgba(0,0,0,0)
);
z-index: 1;
}


.hero-continue__content {
position: absolute;
left: 16px;
right: 16px;
bottom: 16px;
z-index: 2;
}


.hero-continue__label {
font-size: 12px;
opacity: 0.85;
margin-bottom: 4px;
}


.hero-continue__title {
font-size: 16px;
font-weight: 600;
line-height: 1.25;
}

/* =========================
   HERO PROGRESS
========================= */

.hero-progress {
  margin-top: 10px;
}

.hero-progress__bar {
  height: 6px;
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  overflow: hidden;
}

.hero-progress__fill {
  height: 100%;
  background: var(--surface);;
  border-radius: 999px;
  transition: width 0.3s ease;
}



.hero-progress__text {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.9;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* =========================
CONTINUE HERO — CLEAN
========================= */


.dashboard-continue {
padding: 0; /* убираем внутренние отступы */
background: transparent; /* без цветного фона */
margin-bottom: 16px;
}


.hero-continue {
border-radius: 18px; /* как у card */
overflow: hidden;
box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}


.card-media:active {
  transform: scale(0.97);
}

/* ВНУТРЕННИЙ ХОВЕР, БЕЗ ОБРЕЗКИ */
.card-media__image {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .card-media:hover .card-media__image {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.14);
  }
}
.card-media__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-media__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.15),
    transparent
  );
}

/* =========================
   DASHBOARD HEADER (USER)
========================= */

.dashboard-user {
  padding: 14px 16px;
}

.user-row {
  display: flex;
  align-items: center;     /* было flex-start */
  gap: 12px;
  margin-bottom: 0;
  position: relative;
}



.avatar {
  width: 44px;
  height: 44px;
  font-size: 20px;
  background: var(--accent);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;                /* 🔥 компактнее */
}

.username {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.subscription-line {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.dashboard-user {
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.04);
}

/* =========================
   USER SETTINGS ICON
========================= */


.user-settings {
  margin-left: auto;          /* 🔥 уезжает вправо */
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  text-decoration: none;

  font-size: 18px;
  color: #2b2b2b;

  transition: background 0.15s ease, transform 0.1s ease;
}

.user-settings:active {
  transform: scale(0.94);
}

@media (hover: hover) {
  .user-settings:hover {
    background: var(--shadow);
  }
}

/* =========================
LESSON STATE BADGES (UNIFIED)
========================= */

.lesson-state {
position: absolute;
top: 8px;
right: 8px;
z-index: 3;


width: 10px;
height: 10px;
border-radius: 50%;
}


.lesson-state.done {
background: #22c55e;
}


.lesson-state.in-progress {
background: #facc15;
}

.lesson-state.done::before {
content: "✓";
}



.lesson-state.in-progress::before {
content: "•";
}

@media (max-width: 480px) {
  .dashboard-section {
    margin-top: 0px;
  }

  .section-header {
    margin-bottom: 0px;
  }
}

.card-media__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}


.card-media__title {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;

  z-index: 2;

  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;

  text-shadow: 0 2px 6px rgba(0,0,0,.6);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* затемняющий градиент */
.card-media__image::after {
  content: "";
  position: absolute;
  inset: 0;

  z-index: 1;
}
/* =========================
   LESSON STATUS ICONS
========================= */
.checkmark-overlay {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 32px;
  height: 32px;
  border-radius: 50%;

  background: rgba(217, 204, 224, 0.4); /* ← 40% */
  backdrop-filter: blur(4px);

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.checkmark-overlay svg {
  width: 18px;
  height: 18px;
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-section {
  overflow: visible;
}


.card-media__image {
  overflow: hidden; /* ✅ ТУТ НУЖНО */
  border-radius: 12px;
}

/* ВНУТРЕННИЙ ХОВЕР, БЕЗ ОБРЕЗКИ */
.card-media__image {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
.card-media:hover {
transform: none;
box-shadow: none;
}
}


/* ✅ ДВИГАЕМ ВНУТРЕННЮЮ КАРТИНКУ */
.card-media__image {
transition: transform 0.25s ease, box-shadow 0.25s ease;
}


@media (hover: hover) {
.card-media:hover .card-media__image {
transform: translateY(-4px);
box-shadow: 0 12px 30px rgba(0,0,0,0.14);
}
}

.hero-continue__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 180px;     /* 🔥 ограничиваем высоту */
  overflow: hidden;
}






.hero-continue__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-continue__overlay {
  z-index: 1;
}

.hero-continue__content {
  z-index: 2;
}

.admin-card__preview {
  position: relative;
  height: 120px;
  background: #eee;
  overflow: hidden;
}

.admin-card__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-card__preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #aaa;
}

.admin-filters {
  display: flex;
  gap: 6px;
}

.admin-filter {
  all: unset;              /* 🔑 ключевая строка */
  cursor: pointer;

  padding: 6px 10px;
  border-radius: 6px;

  font-size: 14px;
  line-height: 1.2;

  background: #f0f0f0;
  color: #000;
}

.admin-filter:hover {
  background: #e6e6e6;
}

.admin-filter.is-active {
  background: #000;
  color: #fff;
}

.dashboard-v2 {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px clamp(16px, 3vw, 32px) 96px;
  box-sizing: border-box;
}
/* =========================
   CONTINUE HERO — DESKTOP
========================= */

@media (min-width: 1024px) {

  .dashboard-continue {
    max-width: 1100px;
    margin: 0 auto 32px;
  }

  .hero-continue {
    border-radius: 20px;
  }

  .hero-continue__image {
    aspect-ratio: 21 / 9;
    max-height: 260px;
  }

  .hero-continue__content {
    left: 32px;
    right: 32px;
    bottom: 24px;
  }

  .hero-continue__label {
    font-size: 13px;
    letter-spacing: 0.02em;
  }

  .hero-continue__title {
    font-size: 22px;
    line-height: 1.3;
    max-width: 70%;
  }

  .hero-progress {
    max-width: 420px;
  }
}

/* =========================
   DASHBOARD MAX WIDTH
========================= */



.dashboard-menu {
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  font-size: 15px;
  background: var(--surface);
}

.menu-item + .menu-item {
  border-top: 1px solid #eee;
}

.menu-icon {
  width: 28px;
  font-size: 18px;
}

.menu-text {
  flex: 1;
}

.menu-arrow {
  color: var(--text-muted);
  font-size: 18px;
}

.dashboard-main-block {
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
}

@media (max-width: 600px) {
  .dashboard-section {
    padding-top: 12px;
  }
}

.dashboard-section {
  margin-bottom: 20px;  /* Отступ между секциями */
}

.dashboard-menu {
  margin-top: 20px; /* Отступ сверху от уроков */
}

.btn-lessons {
  background-color: #9c7cf4; /* Цвет кнопки */
  padding: 10px 20px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.btn-lessons img {
  width: 20px;
  margin-right: 8px;
}

.btn-lessons:hover {
  background-color: #7b57b1;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  text-decoration: none;
  color: var(--text);
}

.menu-item:hover {
  background: var(--surface-2);
}

.menu-item .menu-icon {
  font-size: 20px;
  margin-right: 10px;
}
.dashboard-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}
.btn-lessons {
  background-color: #fff;  /* Белый фон */
  padding: 1px 20px;  /* Отступы внутри кнопки */
  border-radius: 18px;  /* Скругленные углы */
  display: inline-flex;  /* Растягиваем только по содержимому */
  align-items: center;  /* Выравнивание по центру */
  color: #444;  /* Синий цвет текста */
  font-weight: 500;  /* Легкий жирный текст */
  text-decoration: none;  /* Без подчеркивания */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);  /* Легкая тень */
  transition: all 0.3s ease;  /* Плавный переход */
}

.btn-lessons .arrow {
  margin-left: 5px;  /* Отступ слева от стрелочки */
  font-size: 16px;  /* Размер стрелочки */
  color: #444;  /* Цвет стрелочки */
}

.btn-lessons:hover {
  background-color: #f0f0f5;  /* Легкий серый фон при наведении */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);  /* Более сильная тень при наведении */
}

.btn-lessons:hover .arrow {
  color: #444;  /* Белый цвет стрелочки при наведении */
}

.btn-lessons:active {
  background-color: #e0e0e5;  /* Еще более светлый фон при клике */
  box-shadow: none;  /* Убираем тень при активном состоянии */
}


.menu {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);  /* Легкая тень */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;  /* Плавный переход */
}

.menu a:hover {
  background-color: #f3eff8;  /* Легкий фиолетовый фон при наведении */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.23); /* Сильнее тень при наведении */
}

.menu a:active {
  background-color: #e0e0e5;  /* Еще более светлый фон при клике */
  box-shadow: none;  /* Убираем тень при активном состоянии */
}

.dashboard-menu-container {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);  /* Тень для блока */
  border-radius: 16px; /* Скругленные углы блока */
  padding: 16px; /* Внутренние отступы блока */
  background-color: #fff; /* Белый фон блока */
}

.dashboard-menu {
  display: flex;
  flex-direction: column; /* Вертикальное расположение кнопок */
  gap: 12px; /* Расстояние между кнопками */
}

.menu-btn {
  background-color: #fff; /* Белый фон */
  padding: 12px 20px; /* Отступы внутри кнопки */
  border-radius: 18px; /* Скругленные углы */
  display: flex;
  align-items: center;
  justify-content: center; /* Текст по центру */
  color: #444; /* Цвет текста */
  font-weight: 500; /* Легкий жирный текст */
  text-decoration: none; /* Без подчеркивания */
  box-shadow: none; /* Без тени */
  transition: all 0.3s ease; /* Плавный переход */
}

.menu-btn.active {
  background-color: #fff; /* Белый фон для активных */
}

.menu-btn.inactive {
  background-color: #f0f0f5; /* Светло-серый фон для неактивных */
  color: var(--text-muted); /* Более тусклый цвет для неактивных */
  cursor: not-allowed; /* Курсор "не доступно" для неактивных */
}

.menu-btn:hover {
  background-color: #f0f0f5; /* Легкий серый фон при наведении на активные кнопки */
}

.menu-btn .menu-text {
  font-size: 16px; /* Размер текста */
  font-weight: 600; /* Увеличиваем жирность текста */
}

.menu-btn:active {
  background-color: #e0e0e5; /* Еще более светлый фон при клике */
  box-shadow: none; /* Убираем тень при активном состоянии */
}

.lessons-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-left: 0;
  padding-right: 0;
}



.get-access-info {
  font-size: 14px;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 4px;
  color: #8c74b8;;
  font-weight: 500;
}

.get-access-info a {
  text-decoration: none;
  color: #d9cce0;
  font-weight: bold;
}

.lessons-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto; /* Сделаем карусель горизонтальной */
  padding-left: 0;
  padding-right: 0;
}

.get-access-page {
  text-align: center;
}

.get-access-page h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.get-access-page p {
  font-size: 16px;
  margin-bottom: 20px;
}

.subscribe-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #4caf50;
  color: white;
  font-size: 18px;
  border-radius: 5px;
  text-decoration: none;
  margin-bottom: 30px;
}

.subscribe-button:hover {
  background-color: #45a049;
}

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

.card-media.locked img {
  opacity: 1 !important;
  filter: none !important;
}


.lock-overlay {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);

  color: #fff;
  font-size: 14px;

  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.card-media {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.lessons-carousel .card-media {
  flex: 0 0 130px;
  max-width: 130px;
}
/* =========================
   ALL LESSONS BUTTON
========================= */

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 0px;
}

/* =========================
   LESSONS HEADER (APP STYLE)
========================= */

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



.section-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}


.section-link:active {
  transform: scale(0.98);
}

.dashboard {
  background: transparent;
}

.dashboard-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.menu-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 20px;
  border-radius: 20px;

  background: var(--surface);;
  text-decoration: none;
  color: #1f2937;

  font-weight: 500;
  transition: 
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

/* Левая часть */
.menu-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Иконка */
.menu-icon {
  font-size: 18px;
  opacity: 0.8;
}

/* Стрелка */
.menu-arrow {
  font-size: 20px;
  color: #b8bdc7;
  transition: transform 0.15s ease;
}

/* Hover */
.menu-btn:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

/* Tap эффект */
.menu-btn:active {
  transform: scale(0.98);
  background: #faf9fc;
}

.dashboard-menu-card {
  margin-top: 20px;
  padding: 6px 0; /* внутренний воздух */
}

.dashboard-menu {
  display: flex;
  flex-direction: column;
}

/* Кнопки */

.menu-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 20px;

  text-decoration: none;
  color: #1f2937;
  font-weight: 500;

  transition: 
    background 0.15s ease,
    transform 0.15s ease;
}

/* Разделители между пунктами */
.menu-btn + .menu-btn {
  border-top: 1px solid #f1f2f5;
}

/* Левая часть */
.menu-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-icon {
  font-size: 18px;
  opacity: 0.8;
}

.menu-arrow {
  font-size: 20px;
  color: #c5c9d3;
}

/* Tap эффект */
.menu-btn:active {
  background: #f8f7fb;
  transform: scale(0.98);
}

/* ===============================
   DASHBOARD MENU — ULTRA MINIMAL
================================ */

.dashboard-menu-card {
  margin-top: 24px;
  padding: 0;              /* убираем внутренний padding карточки */
  overflow: hidden;        /* чтобы разделители не выходили за радиус */
  border-radius: 24px;     /* как у остальных карточек */
}

/* Пункт меню */

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

padding: 15px 20px;
  text-decoration: none;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;

  transition: background 0.15s ease, transform 0.15s ease;
}

/* Разделители */

.menu-item + .menu-item {
  border-top: 1px solid #f2f3f7;
}

/* Стрелка */

.menu-arrow {
  font-size: 16px;
  color: #c5c9d3;
  transition: transform 0.15s ease;
}

/* Tap эффект (очень мягкий) */

.menu-item:active {
  background: #f8f7fb;
  transform: scale(0.99);
}

.menu-item:active .menu-arrow {
  transform: translateX(3px);
}


.tile-recipes {
  grid-row: span 2;
}

.tile-recipes {
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.tile-recipes .tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-recipes .tile-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.45) 40%,
    rgba(0,0,0,0.15) 70%,
    rgba(0,0,0,0) 100%
  );

  z-index: 1;
}

.tile-recipes .tile-title {
  position: relative;
  z-index: 2;
  font-weight: 600;
  font-size: 16px;
}

.tile-recipes .tile-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0.25),
    transparent
  );

  z-index: 1;
}
.tile-recipes {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
}

.tile-recipes .tile-title {
  position: relative;
  z-index: 2;
  font-size: 17px;
  font-weight: 600;
}

.tile-recipes .tile-bg {
  transition: transform .3s ease;
}

.tile-recipes:hover .tile-bg {
  transform: scale(1.05);
}



.tile-recipes {
  grid-row: span 2;
}

/* ===============================
   DASHBOARD MENU GRID
================================ */

.dashboard-menu-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-auto-rows: 90px;
  gap: 14px;
  margin-top: 24px;
}

/* Общие плитки */

.menu-tile {
  background: var(--surface);;
  border-radius: 12px;
  text-decoration: none;
  color: #1e1e1e;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  font-weight: 600;

  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  transition: transform .15s ease, box-shadow .15s ease;
}

.menu-tile:active {
  transform: scale(0.98);
}

/* Большая плитка */

.tile-recipes {
  grid-row: span 2;

  position: relative;
  overflow: hidden;
  color: #ffffff;

  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px;
}

.tile-recipes .tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
  z-index: 0;
}

.tile-recipes:hover .tile-bg {
  transform: scale(1.05);
}

.tile-recipes .tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    to top,
    rgba(0,0,0,.65),
    rgba(0,0,0,.25),
    transparent
  );
}

.tile-recipes .tile-title {
  position: relative;
  z-index: 2;
  font-size: 16px;
  font-weight: 600;
   color: #fff;

}

.tile-title {
  position: relative;
  z-index: 2;
}

/* ===============================
   MAIN ACTION BUTTON
================================ */

.dashboard-main-action {
  display: block;
  margin-top: 18px;
  padding: 14px 16px;

  text-align: center;
  text-decoration: none;

  font-size: 14px;
  font-weight: 600;

  border-radius: 12px;

  background: linear-gradient(
    135deg,
    #e6dcf3,
    #d9cce0
  );

  color: #1f2937;

  transition: transform .15s ease, box-shadow .15s ease;
}

.dashboard-main-action:active {
  transform: scale(0.98);
}

/* ===============================
   PREMIUM MAIN ACTION
================================ */

.dashboard-main-action {
  display: block;
  margin-top: 22px;
  padding: 15px 18px;

  text-align: center;
  text-decoration: none;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;

  border-radius: 14px;

  color: #ffffff;

  background: linear-gradient(
    135deg,
    #2d2a3a,
    #1f1c2a
  );

  box-shadow:
    0 8px 20px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.08);

  transition: transform .15s ease,
              box-shadow .15s ease,
              background .2s ease;
}

.dashboard-main-action:hover {
  box-shadow:
    0 10px 24px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.dashboard-main-action:active {
  transform: scale(0.98);
  box-shadow:
    0 6px 14px rgba(0,0,0,0.2),
    inset 0 2px 6px rgba(0,0,0,0.3);
}

.tile-recipes {
  position: relative;
  overflow: hidden;  /* Скрываем лишние изображения */
  height: 200px;     /* Фиксированная высота кнопки */
}

.tile-images {
  display: flex;
  transition: transform 1s ease-in-out; /* Плавное переключение */
}

.tile-image {
  width: 100%;      /* Растягиваем картинку на всю ширину */
  height: 100%;
  object-fit: cover; /* Заполняем всю область кнопки */
}

.card,
.dashboard-user,
.dashboard-main-block,
.menu-tile,
.card-media,
.dashboard-menu-grid > a {

  background: var(--surface);
  color: var(--text);
  border-color: var(--border);

}

.card,
.dashboard-user,
.dashboard-main-block {
width:100%;
  box-shadow: var(--shadow);

}

.theme-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);

  padding: 6px 10px;
  border-radius: 10px;

  font-size: 13px;
  cursor: pointer;

  transition: all .15s ease;

  margin-left: auto;
}


.theme-btn:hover {
  background: var(--soft-2);
}

.menu-tile {
  border: 2px solid var(--border);
}

.section-link {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 10px;

  border-radius: 12px;

  background: var(--surface);
  color: var(--text);

  border: 1px solid var(--border);

  box-shadow:
    0 2px 6px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.6);

  font-size: 14px;
  font-weight: 600;

  text-decoration: none;

  transition: all .15s ease;
}

[data-theme="dark"] .section-link {

  border: 1px solid #2f3034;

  box-shadow:
    0 2px 6px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.05);

}

.section-link:active {
  transform: scale(.97);
  box-shadow:
    0 1px 3px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

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

.user-info {
  flex: 1;
}

.theme-btn {
  margin-left: auto;
}

/* =========================
   TELEGRAM STYLE AVATAR
========================= */

.avatar{
  width:48px;
  height:48px;

  border-radius:50%;
  overflow:hidden;

  flex-shrink:0;

  display:flex;
  align-items:center;
  justify-content:center;

  background:var(--surface);
}

/* изображение внутри круга */
.avatar img{
  width:110%;
  height:110%;
  object-fit:cover;

  transform: scale(1.05); /* лёгкий zoom как в TG */

  display:block;
}

/* THEME TOGGLE */

.theme-toggle {
  margin-left: auto;
  cursor: pointer;
}

.theme-toggle-track {

  width: 56px;
  height: 30px;

  background: var(--soft-2);

  border-radius: 30px;

  padding: 3px;

  display: flex;
  align-items: center;
}

.theme-toggle-thumb {

  width: 24px;
  height: 24px;

  border-radius: 50%;

  background: var(--surface);

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;

  box-shadow: var(--shadow);

  transition: transform .25s ease;
}

.theme-toggle .icon {
  position: absolute;
  font-size: 13px;
  transition: opacity .25s ease;
}

.theme-toggle .sun {
  opacity: 1;
}

.theme-toggle .moon {
  opacity: 0;
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(26px);
}

html[data-theme="dark"] .theme-toggle .sun {
  opacity: 0;
}

html[data-theme="dark"] .theme-toggle .moon {
  opacity: 1;
}

.theme-btn {

  margin-left: auto;

  width: 42px;
  height: 42px;

  border-radius: 12px;

  border: 1px solid var(--soft-2);
  background: var(--surface);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition: all .18s ease;
}

.theme-btn:hover {
  transform: translateY(-1px);
}

.theme-btn:active {
  transform: scale(.94);
}

.theme-icon {
  font-size: 18px;
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.support-modal.active {
  display: block;
}

.support-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

/* Модалка по центру экрана */
.support-modal__content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 480px;
  border-radius: 16px;
  padding: 20px;
  background: var(--card-bg);
  color: var(--text-color);
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.support-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.support-modal__close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.support-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  background: var(--support-option-bg);
  margin-bottom: 10px;
  transition: 0.2s;
}

.support-option:hover {
  transform: scale(1.02);
}

.support-option .icon {
  font-size: 20px;
}

.support-option .title {
  font-weight: 600;
}

.support-option .desc {
  font-size: 12px;
  opacity: 0.6;
}

/* Цвета по теме */
:root {
  --card-bg: #fff;
  --text-color: #111;
  --support-option-bg: #f8f8f8;
}

[data-theme="dark"] {
  --card-bg: #1e1e2f;
  --text-color: #eee;
  --support-option-bg: #2a2a3f;
}

.support-option.tg {
  color: #2AABEE;
}

[data-theme="dark"] .support-option.tg {
  color: #33c0ff;
}

.support-option.vk {
  color: #4C75A3;
}

[data-theme="dark"] .support-option.vk {
  color: #6ea0cc;
}

.support-option .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.tile-admin {
  background: linear-gradient(135deg, #ff6b6b, #ff8787);
  color: #fff;
  font-weight: 600;
}

/* dark */
[data-theme="dark"] .tile-admin {
  background: linear-gradient(135deg, #c94f4f, #ff6b6b);
}

.admin-topbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.admin-btn {
  flex: 1;

  padding: 10px 12px;
  border-radius: 14px;

  background: var(--surface);
  color: var(--text);

  font-size: 14px;
  font-weight: 600;

  text-align: center;
  text-decoration: none;

  box-shadow: var(--shadow-sm);

  transition: all 0.2s ease;
}

/* иконка-кнопка */
.admin-btn:first-child {
  flex: 0 0 44px;
  padding: 10px;
}

/* hover / active */
.admin-btn:active {
  transform: scale(0.96);
}

/* лёгкий hover */
.admin-btn:hover {
  box-shadow: var(--shadow);
}