/* === Переменные определены в assets/css/global.css === */


/* === 2. БАЗОВЫЕ СТИЛИ СТРАНИЦЫ === */
html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

body {
  margin: 0; 
  padding: 0;
  background-color: var(--bg-color);
  color: var(--sm-text);
  transition: background-color 0.5s ease, color 0.5s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Inter", sans-serif;
  min-height: 100vh;
  padding-top: 96px; /* Отступ для десктоп хедера (header top 17px + height ~56px + 23px gap) */
  padding-bottom: 70px; /* Отступ для мобильного футера */
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  body {
    padding-top: 58px !important; /* Отступ для мобильного хедера, прижатого к верхнему краю */
  }
}

/* Языковые правила для верстки */
[data-lang="ru"] .lang-uz, [data-lang="ru"] .sm-cat-name-uz { display: none !important; }
[data-lang="uz"] .lang-ru, [data-lang="uz"] .sm-cat-name-ru { display: none !important; }

/* === 3. ХЕДЕР И НАВИГАЦИЯ === */
.sm-logo-wrapper {
  display: flex; align-items: center;
  text-decoration: none;
  transition: var(--ios-spring);
}
.logo-text-path  { fill: var(--logo-text-fill);  transition: fill 0.4s ease; }
.logo-circle-bg  { fill: var(--logo-circle-fill); transition: fill 0.4s ease; }
.logo-inner-icon { fill: var(--logo-icon-fill); }

.sm-logo-desktop {
  display: flex !important;
  align-items: center;
  gap: 6px;
}
.sm-logo-mobile  { display: none;  }

.sm-header-outer {
  position: fixed;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1240px;
  padding: 0 20px;
  z-index: 1000;
  box-sizing: border-box;
  transition: var(--ios-spring);
}
.scrolled .sm-header-outer {
  top: 8px;
  transform: translateX(-50%) scale(0.99);
}

.sm-header-inner {
  position: relative;
  border-radius: 17px;
  border: var(--sm-border-glass);
  box-shadow: var(--sm-shadow-glass);
}

.sm-glass-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 17px;
  background: var(--sm-bg-glass);
  backdrop-filter: blur(var(--sm-blur)) saturate(var(--sm-saturate));
  -webkit-backdrop-filter: blur(var(--sm-blur)) saturate(var(--sm-saturate));
}

.sm-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.sm-logo-desktop-img {
  height: 36px;
  width: auto;
  max-width: 100%;
  display: block;
  transition: transform 0.2s ease;
}
.sm-logo-desktop:hover .sm-logo-desktop-img {
  transform: scale(1.03);
}

.sm-nav-desktop {
  display: flex;
  gap: 6px;
  align-items: center;
}
.sm-nav-desktop a {
  text-decoration: none;
  color: var(--sm-text);
  font-size: 14px;
  font-weight: 400;
  opacity: 0.8;
  transition: all 0.2s ease;
  position: relative;
  padding: 6px 12px;
  border-radius: 8px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.sm-nav-desktop a:hover {
  opacity: 1;
  color: var(--sm-primary);
  background: var(--sm-primary-5);
}
.sm-nav-desktop a.active {
  opacity: 1;
  color: var(--sm-primary);
  font-weight: 500;
  background: var(--sm-primary-10);
}

.sm-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sm-lang-toggle {
  background: var(--toggle-bg);
  color: var(--sm-text);
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: var(--ios-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
}
.sm-lang-toggle:hover {
  background: var(--sm-primary-light);
  color: var(--sm-primary);
}
.sm-lang-toggle:active {
  transform: scale(0.95);
}

.sm-cta-btn {
  background: var(--sm-primary);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(74, 0, 255, 0.25);
}
.sm-cta-btn:hover {
  background: var(--sm-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 0, 255, 0.35);
}
.cta-icon { display: none; }

.sm-toggle-wrapper {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.sm-toggle-wrapper input {
  opacity: 0;
  width: 0;
  height: 0;
}
.sm-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--toggle-bg);
  border-radius: 24px;
  transition: 0.3s;
}
.sm-toggle-circle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
input:checked + .sm-toggle-slider .sm-toggle-circle {
  transform: translateX(20px);
  background: #2c2c2e;
}
.sm-icon {
  width: 11px;
  height: 11px;
  position: absolute;
  transition: 0.3s;
}
.moon { opacity: 0; color: #ffd60a; }
.sun  { color: #ffb800; }
input:checked + .sm-toggle-slider .sun  { opacity: 0; }
input:checked + .sm-toggle-slider .moon { opacity: 1; }

.sm-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: none;
  border: none;
  color: var(--sm-text);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.sm-burger:hover {
  background: var(--sm-primary-light);
  color: var(--sm-primary);
}
.sm-burger:active {
  transform: scale(0.92);
}

.sm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  z-index: 1999; transition: 0.3s ease;
}
.sm-overlay.active { opacity: 1; pointer-events: auto; }

.sm-drawer {
  position: fixed; top: 0; left: 0; width: 280px; max-width: 85vw; height: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 2000; transform: translateX(-100%); transition: 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  overflow-y: auto;
}
.sm-drawer.active { transform: translateX(0); }
.sm-drawer-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 28px 17px 17px 17px;
}

.sm-drawer-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}
[data-theme="light"] .sm-drawer-settings {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.sm-drawer-user-info-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  text-decoration: none;
  transition: all 0.2s ease;
}
[data-theme="light"] .sm-drawer-user-info-bottom {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.sm-drawer-user-info-bottom:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
[data-theme="light"] .sm-drawer-user-info-bottom:hover {
  background: rgba(0, 0, 0, 0.04);
}
.sm-mobile-nav { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.sm-mobile-nav a { text-decoration: none; color: var(--sm-text); font-size: 13px; font-weight: 600; opacity: 0.7; }
.sm-mobile-nav a.active { opacity: 1; color: var(--sm-primary); }

/* === 4. МОБИЛЬНЫЙ ФУТЕР === */
.sm-footer-outer { display: none; }

@media (max-width: 900px) {
  .sm-logo-desktop { display: flex !important;  }
  .sm-logo-mobile  { display: block; }
  .sm-logo-text    { display: none !important; }

  /* Hide header actions on mobile to prevent overlapping */
  .sm-header-content .sm-lang-toggle,
  .sm-header-content .sm-toggle-wrapper,
  .sm-header-content .sm-login-btn-header {
    display: none !important;
  }
  .sm-nav-desktop { display: none; }
  .sm-header-outer { padding: 0 8px; top: 0 !important; left: 0 !important; transform: none !important; max-width: 100% !important; }
  .scrolled .sm-header-outer { top: 0 !important; transform: none !important; left: 0 !important; }

  .sm-cta-btn {
    display: none !important;
  }

  .sm-burger {
    display: flex !important;
  }

  /* Футер */
  .sm-footer-outer {
    display: block; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0;
    width: 100%; 
    max-width: 100vw; 
    padding: 0; 
    z-index: 1000; 
    box-sizing: border-box;
    pointer-events: none;
  }
  .sm-footer-inner {
    position: relative; 
    border-radius: 16px 16px 0 0; 
    overflow: visible;
    border-top: var(--sm-border-glass); 
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    min-height: 48px;
    height: auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    max-width: 100%;
    margin: 0 auto;
    pointer-events: auto;
    width: 100%;
    box-sizing: border-box;
  }
  .sm-footer-inner .sm-glass-backdrop {
    border-radius: 16px 16px 0 0;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
  .sm-footer-content {
    position: relative; z-index: 2; display: flex;
    justify-content: space-evenly; align-items: center;
    height: 48px; 
    max-width: 480px;
    margin: 0 auto;
    padding: 0 4px;
    overflow: visible;
  }
  .sm-footer-item {
    display: flex; flex-direction: column; align-items: center; 
    justify-content: center; text-decoration: none; 
    color: var(--sm-text); opacity: 0.55;
    flex: 1; min-width: 0; max-width: 76px; width: auto;
    padding: 2px 2px;
    transition: opacity 0.25s ease, color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: visible;
  }
  .sm-footer-item.active {
    opacity: 1;
    color: var(--sm-primary);
  }
  .sm-footer-icon-wrapper {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-bottom: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid transparent;
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
  }
  .sm-footer-icon-wrapper svg {
    width: 17px;
    height: 17px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), stroke-width 0.2s ease, filter 0.2s ease;
  }
  .sm-footer-item.active .sm-footer-icon-wrapper {
    transform: translateY(-10px);
    background: var(--sm-bg-glass);
    backdrop-filter: blur(14px) saturate(var(--sm-saturate));
    -webkit-backdrop-filter: blur(14px) saturate(var(--sm-saturate));
    border-color: rgba(74, 0, 255, 0.32);
    box-shadow: 0 5px 14px rgba(74, 0, 255, 0.24), 0 2px 6px rgba(0, 0, 0, 0.08);
    color: var(--sm-primary);
  }
  [data-theme="dark"] .sm-footer-item.active .sm-footer-icon-wrapper {
    border-color: rgba(130, 80, 255, 0.45);
    box-shadow: 0 5px 16px rgba(74, 0, 255, 0.38), 0 2px 8px rgba(0, 0, 0, 0.4);
  }
  .sm-footer-item.active .sm-footer-icon-wrapper svg {
    transform: scale(1.12);
    stroke-width: 2.35;
    filter: drop-shadow(0 2px 4px rgba(74, 0, 255, 0.28));
  }
  .sm-footer-item.active .sm-footer-label {
    font-weight: 700;
    color: var(--sm-primary);
    transform: translateY(-3px);
  }
  .sm-footer-item:active .sm-footer-icon-wrapper {
    transform: translateY(-6px) scale(0.94);
  }
  .sm-footer-item.sm-footer-login {
    margin: 0 auto;
    opacity: 1 !important;
    color: #00e65b !important;
  }
  .sm-footer-item.sm-footer-login .sm-footer-icon-wrapper {
    color: #00e65b !important;
    filter: drop-shadow(0 2px 8px rgba(0, 230, 91, 0.35));
  }
  .sm-footer-item.sm-footer-login .sm-footer-icon-wrapper svg {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .sm-footer-item.sm-footer-login .sm-footer-label {
    color: #00e65b !important;
    font-weight: 800;
  }
  .sm-footer-item.sm-footer-login:hover {
    color: #00ff66 !important;
    opacity: 1 !important;
  }
  .sm-footer-item.sm-footer-login:hover .sm-footer-icon-wrapper,
  .sm-footer-item.sm-footer-login:hover .sm-footer-label {
    color: #00ff66 !important;
    filter: drop-shadow(0 2px 10px rgba(0, 255, 102, 0.5));
  }
  .sm-footer-item.sm-footer-login:hover .sm-footer-icon-wrapper svg,
  .sm-footer-item.sm-footer-login:active .sm-footer-icon-wrapper svg {
    transform: scale(1.15) translateX(1px);
  }
  [data-theme="dark"] .sm-footer-item.sm-footer-login,
  [data-theme="dark"] .sm-footer-item.sm-footer-login .sm-footer-icon-wrapper,
  [data-theme="dark"] .sm-footer-item.sm-footer-login .sm-footer-label {
    color: #00ff66 !important;
  }

  .sm-footer-label {
    font-size: 7.5px;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: -0.15px;
    line-height: 1.1;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, font-weight 0.2s ease;
  }
  .sm-badge { position: absolute; top: -1px; right: -3px; width: 6px; height: 6px; background-color: #ff3b30; border-radius: 50%; }
}

/* === 5. СТИЛИ ДЛЯ ШАПКИ И КНОПКИ ВХОДА === */
.sm-login-btn-header {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sm-text);
  border: 1px solid var(--sm-border-glass);
  padding: 7px 16px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: var(--ios-spring);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .sm-login-btn-header {
  background: rgba(255, 255, 255, 0.05);
}
.sm-login-btn-header:hover {
  background: var(--sm-primary);
  color: #fff;
  border-color: var(--sm-primary);
  transform: translateY(-1px);
}
.sm-login-btn-header:active {
  transform: scale(0.96);
}

/* === 6. СТИЛИ ДЛЯ HERO СЕКЦИИ === */
.sm-hero-center {
  text-align: center;
  position: relative;
  padding: 24px 20px 20px 20px;
  margin-bottom: 24px;
  overflow: hidden;
  box-sizing: border-box;
}

.sm-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(74, 0, 255, 0.12) 0%, rgba(0, 200, 255, 0.04) 50%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(36px);
}
[data-theme="dark"] .sm-hero-glow {
  background: radial-gradient(circle, rgba(74, 0, 255, 0.22) 0%, rgba(0, 200, 255, 0.06) 50%, rgba(0,0,0,0) 70%);
}

.sm-hero-title-large {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 12px 0;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--sm-text);
}

.sm-hero-subtitle-large {
  font-size: 15px;
  font-weight: 400;
  color: var(--sm-text-muted);
  max-width: 560px;
  margin: 0 auto 24px auto;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

/* Поисковый виджет в стиле Thumbtack / Marketplace */
.sm-search-widget-form {
  display: flex;
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255,255,255,0.8);
  border-radius: 14px;
  padding: 5px 6px 5px 16px;
  max-width: 640px;
  margin: 0 auto 20px auto;
  align-items: center;
  box-sizing: border-box;
  transition: var(--ios-spring);
}
[data-theme="dark"] .sm-search-widget-form {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255,255,255,0.05);
}
.sm-search-widget-form:focus-within {
  border-color: var(--sm-primary);
  box-shadow: 0 0 0 4px var(--sm-primary-light), 0 12px 32px rgba(74, 0, 255, 0.12);
}

.sm-search-field-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.sm-search-field-icon {
  position: absolute;
  left: 0;
  font-size: 15px;
  color: var(--sm-text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.sm-search-widget-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 10px 10px 24px;
  font-size: 14px;
  font-weight: 400;
  color: var(--sm-text);
  outline: none;
  box-sizing: border-box;
}
.sm-search-widget-input::placeholder {
  color: var(--sm-text-muted);
  opacity: 0.7;
}

.sm-search-widget-btn {
  background: var(--sm-primary);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ios-spring);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(74, 0, 255, 0.2);
  flex-shrink: 0;
}
.sm-search-widget-btn:hover {
  background: var(--sm-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(74, 0, 255, 0.35);
}
.sm-search-widget-btn:active {
  transform: scale(0.98);
}

/* Быстрые теги (подсказки) */
.sm-hero-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto 24px auto;
}
.sm-hero-tags-label {
  font-size: 12px;
  color: var(--sm-text-muted);
  align-self: center;
  font-weight: 400;
}
.sm-hero-tag-link {
  font-size: 12px;
  font-weight: 400;
  color: var(--sm-primary);
  background: var(--sm-primary-light);
  border: 1px solid rgba(74, 0, 255, 0.08);
  padding: 4px 12px;
  border-radius: 16px;
  text-decoration: none;
  transition: var(--ios-spring);
}
[data-theme="dark"] .sm-hero-tag-link {
  border-color: rgba(74, 0, 255, 0.2);
}
.sm-hero-tag-link:hover {
  background: var(--sm-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(74, 0, 255, 0.2);
}

.sm-btn-primary {
  background: var(--sm-primary);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--ios-spring);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 17px rgba(74, 0, 255, 0.2);
}
.sm-btn-primary:hover {
  background: var(--sm-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 21px rgba(74, 0, 255, 0.3);
}
.sm-btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.sm-btn-secondary {
  background: var(--card-bg);
  color: var(--sm-text);
  border: var(--card-border);
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--ios-spring);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.02);
}
.sm-btn-secondary:hover {
  background: var(--toggle-bg);
  transform: translateY(-1px);
  box-shadow: var(--card-hover-shadow);
}
.sm-btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.sm-btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--ios-spring);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sm-btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: translateY(-1px);
}
.sm-btn-danger:active {
  transform: translateY(0) scale(0.98);
}

.sm-hero-stats-center {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.sm-hero-stat-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 12px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 125px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: var(--ios-spring);
}
[data-theme="dark"] .sm-hero-stat-card {
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.sm-hero-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(74, 0, 255, 0.2);
}

.stat-icon {
  font-size: 18px;
}
.stat-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.stat-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--sm-text);
  line-height: 1.2;
}
.stat-lbl {
  font-size: 11px;
  color: var(--sm-text-muted);
  font-weight: 400;
  margin-top: 1px;
}

/* === 7. СТИЛИ ДЛЯ СЛАЙДЕРА АКЦИЙ === */
.sm-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .sm-slider-wrapper {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.sm-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.sm-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 24px 32px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
  aspect-ratio: 16 / 9;
  height: auto;
  transition: transform 0.3s ease;
  user-select: none;
}
.sm-slide:active {
  transform: scale(0.995);
}

/* Gradient overlay ONLY for fallback stock photo slide, never for real promo banners */
.sm-slide::before {
  display: none !important;
}

.sm-slide.sm-fallback-slide::before {
  content: '';
  display: block !important;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 15, 0.85) 0%, rgba(10, 10, 15, 0.35) 60%, rgba(10, 10, 15, 0.15) 100%);
  z-index: 1;
}

#smSliderWrapper .sm-slide,
#smBottomSliderWrapper .sm-slide {
  width: 100%;
  min-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

#smSliderWrapper .sm-slide:not(.sm-fallback-slide)::before,
#smBottomSliderWrapper .sm-slide:not(.sm-fallback-slide)::before {
  display: none !important;
}

.sm-slide-content {
  position: relative;
  z-index: 2;
  max-width: 70%;
  text-align: left;
}

.sm-slide-badge {
  background: var(--sm-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(74, 0, 255, 0.2);
}

.sm-slide-title {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.sm-slide-desc {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.9;
  margin: 0;
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.sm-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.sm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sm-text-muted);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sm-dot.active {
  opacity: 1;
  background: var(--sm-primary);
  width: 22px;
  border-radius: 10px;
}

/* === 8. СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН === */
.sm-promo-modal-overlay,
.sm-auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  z-index: 3000;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.sm-promo-modal-overlay.active,
.sm-auth-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sm-promo-modal {
  width: 100%;
  max-width: 294px;
  background: var(--sm-bg-glass);
  border: var(--sm-border-glass);
  box-shadow: var(--sm-shadow-glass);
  border-radius: 20px;
  padding: 21px;
  position: relative;
  transform: translateY(21px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--sm-text);
  opacity: 0;
  backdrop-filter: blur(var(--sm-blur)) saturate(var(--sm-saturate));
  -webkit-backdrop-filter: blur(var(--sm-blur)) saturate(var(--sm-saturate));
  box-sizing: border-box;
}

.sm-promo-modal-overlay.active .sm-promo-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.sm-modal-close {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--toggle-bg);
  border: none;
  color: var(--sm-text);
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ios-spring);
  z-index: 10;
}
.sm-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.sm-modal-image {
  width: 100%;
  height: 112px;
  border-radius: 13px;
  background-size: cover;
  background-position: center;
  margin-bottom: 14px;
  border: var(--card-border);
}

.sm-modal-title {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 7px 0;
  line-height: 1.25;
}

.sm-modal-desc {
  font-size: 10px;
  line-height: 1.5;
  color: var(--sm-text);
  opacity: 0.8;
  margin: 0 0 17px 0;
}

.sm-modal-btn {
  width: 100%;
  background: var(--sm-primary);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 10px;
  cursor: pointer;
  transition: var(--ios-spring);
  box-shadow: 0 4px 14px rgba(74, 0, 255, 0.15);
}
.sm-modal-btn:hover {
  background: var(--sm-primary-hover);
}
.sm-modal-btn:active {
  transform: scale(0.97);
}

/* === Modernized Auth Modal === */
.sm-auth-modal {
  width: 100%;
  max-width: 360px;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  border-radius: 24px;
  padding: 28px 22px 20px 22px;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--sm-text, #1d1d1f);
  opacity: 0;
  box-sizing: border-box;
}

[data-theme="dark"] .sm-auth-modal {
  background: #1c1c1e;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.sm-auth-modal-overlay.active .sm-auth-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.sm-auth-modal .sm-modal-close {
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--toggle-bg, rgba(0, 0, 0, 0.06));
  border: none;
  color: var(--sm-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 10;
}
.sm-auth-modal .sm-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.sm-auth-logo-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 14px auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  position: relative;
}

.sm-auth-logo-badge::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 0, 255, 0.2) 0%, transparent 70%);
  animation: pulse 3s infinite ease-in-out;
  pointer-events: none;
}

.sm-auth-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(74, 0, 255, 0.35);
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sm-auth-logo-badge:hover .sm-auth-logo-img {
  transform: scale(1.06);
}

.sm-auth-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--sm-text, #1d1d1f);
  margin: 0 0 6px 0;
  text-align: center;
  letter-spacing: -0.02em;
}

.sm-auth-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--sm-text-muted, #86868b);
  margin: 0 0 20px 0;
  text-align: center;
  padding: 0 4px;
}

/* Feature Perks Chips */
.sm-auth-perks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sm-auth-perk-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--toggle-bg, rgba(0, 0, 0, 0.04));
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--sm-text, #1d1d1f);
}

[data-theme="dark"] .sm-auth-perk-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.sm-auth-perk-icon {
  font-size: 11px;
  line-height: 1;
}

.sm-auth-widget-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  width: 100%;
}

.sm-btn-tg-login {
  width: 100%;
  background: #54a9eb;
  border: none;
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(84, 169, 235, 0.3);
}

.sm-btn-tg-login:hover {
  background: #4698d8;
  box-shadow: 0 4px 14px rgba(84, 169, 235, 0.45);
  transform: translateY(-1px);
}

.sm-btn-tg-login:active {
  transform: translateY(0);
  background: #3a8bc8;
}

[data-theme="dark"] .sm-auth-widget-wrapper {
  background: transparent;
}

.sm-auth-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 12px 0;
  color: var(--sm-text-muted, #86868b);
  font-size: 11px;
}

.sm-auth-or-divider::before,
.sm-auth-or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.sm-auth-or-divider span {
  padding: 0 10px;
  opacity: 0.75;
}

.sm-btn-bot-auth {
  width: 100%;
  background: var(--toggle-bg, #f5f5f7);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  color: var(--sm-text, #1d1d1f);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 6px;
  box-sizing: border-box;
}

.sm-btn-bot-auth:hover {
  background: var(--sm-primary-light, rgba(74, 0, 255, 0.08));
  border-color: var(--sm-primary, #4A00FF);
  color: var(--sm-primary, #4A00FF);
  transform: translateY(-1px);
}

.sm-bot-auth-caption {
  font-size: 10px;
  color: var(--sm-text-muted, #86868b);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.35;
}

.sm-auth-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--sm-primary, #4A00FF);
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.sm-auth-switch-account-tip {
  font-size: 11px;
  color: var(--sm-text-muted, #86868b);
  line-height: 1.4;
  text-align: center;
  margin-bottom: 12px;
  padding: 0 4px;
}

.sm-auth-switch-account-tip b {
  color: var(--sm-text, #1d1d1f);
}

.sm-auth-security {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
  font-size: 10px;
  color: var(--sm-text-muted, #86868b);
  line-height: 1.35;
  text-align: center;
}

.sm-auth-shield-svg {
  color: var(--accent-emerald, #10b981);
  flex-shrink: 0;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* === АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ === */
@media (max-width: 768px) {
  .sm-hero-center {
    padding: 28px 7px 17px 7px;
    margin-bottom: 14px;
  }
  .sm-hero-title-large {
    font-size: 27px;
    letter-spacing: -1px;
  }
  .sm-hero-subtitle-large {
    font-size: 10px;
    margin-bottom: 17px;
  }
  .sm-hero-actions {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    max-width: 224px;
    margin: 0 auto 20px auto;
  }
  .sm-btn-primary, .sm-btn-secondary {
    justify-content: center;
    padding: 8px 17px;
    font-size: 10px;
  }
  .sm-hero-stats-center {
    gap: 8px;
  }
  .sm-hero-stat-card {
    padding: 7px 10px;
    min-width: auto;
    flex: 1;
  }
  .sm-hero-stat-card .stat-icon {
    font-size: 14px;
  }
  .sm-hero-stat-card .stat-val {
    font-size: 10px;
  }
  .sm-hero-stat-card .stat-lbl {
    font-size: 6px;
  }
  .sm-slide {
    height: auto;
    aspect-ratio: 16 / 9;
    padding: 14px;
  }
  .sm-slide-title {
    font-size: 14px;
  }
  .sm-slide-desc {
    font-size: 8px;
  }
  .sm-slide-badge {
    padding: 3px 6px;
    font-size: 6px;
    margin-bottom: 7px;
  }
}

/* === 9. СТИЛИ ДЛЯ МАКЕТА КОНТЕНТА === */
.sm-main-container {
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.sm-section-divider {
  height: 1px;
  background: var(--border-color);
  margin: 34px 0;
}

.sm-section-title {
  color: var(--sm-text);
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  margin-top: 36px;
  text-align: left;
  letter-spacing: -0.01em;
}

/* Сетка категорий услуг */
.sm-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.sm-service-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  color: var(--sm-text);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: var(--ios-spring);
  display: flex;
  flex-direction: column;
  align-items: center;
}
[data-theme="dark"] .sm-service-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.sm-service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--sm-primary);
}
.sm-service-icon {
  font-size: 26px;
  margin-bottom: 8px;
}
.sm-service-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 3px;
  color: var(--sm-text);
}
.sm-service-count {
  font-size: 11px;
  color: var(--sm-text-muted);
  font-weight: 400;
}

/* Сетка преимуществ */
.sm-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 42px;
}

.sm-benefit-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: var(--ios-spring);
}
[data-theme="dark"] .sm-benefit-card {
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.sm-benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(74, 0, 255, 0.25);
}
.benefit-icon {
  font-size: 26px;
  margin-bottom: 12px;
}
.sm-benefit-card h3 {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--sm-text);
}
.sm-benefit-card p {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--sm-text-muted);
  margin: 0;
}

/* Адаптивность для сеток */
@media (max-width: 900px) {
  .sm-benefits-grid {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-bottom: 28px;
  }
}
@media (max-width: 768px) {
  .sm-section-title {
    font-size: 15px;
    margin-top: 21px;
    margin-bottom: 11px;
  }
  .sm-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .sm-section-divider {
    margin: 22px 0;
  }
}

/* ==========================================================================
   НОВЫЕ СТИЛИ В СТИЛЕ THUMBTACK (ТАБЫ, СЕТКА, ПРОМО, СТАТЬ МАСТЕРОМ)
   ========================================================================== */

/* 1. Десктопная сетка категорий в стиле современных маркетплейсов */
.sm-desktop-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}
@media (max-width: 1024px) {
  .sm-desktop-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.sm-desktop-cat-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--sm-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .sm-desktop-cat-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.sm-desktop-cat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 0, 255, 0.3);
  box-shadow: 0 8px 20px rgba(74, 0, 255, 0.08);
}
[data-theme="dark"] .sm-desktop-cat-card:hover {
  box-shadow: 0 8px 20px rgba(74, 0, 255, 0.18);
}

.sm-desktop-cat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.sm-desktop-cat-icon-wrap .material-icons {
  font-size: 22px;
}
.sm-desktop-cat-card:hover .sm-desktop-cat-icon-wrap {
  transform: scale(1.06);
}

.sm-desktop-cat-info {
  flex: 1;
  min-width: 0;
}
.sm-desktop-cat-title {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--sm-text);
  margin: 0 0 3px 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.sm-desktop-cat-count {
  font-size: 11px;
  color: var(--sm-text-muted);
  margin: 0;
  font-weight: 400;
  line-height: 1.2;
}

.sm-desktop-cat-arrow {
  color: var(--sm-text-muted);
  opacity: 0.45;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.sm-desktop-cat-arrow .material-icons {
  font-size: 18px;
}
.sm-desktop-cat-card:hover .sm-desktop-cat-arrow {
  opacity: 1;
  color: var(--sm-primary);
  transform: translateX(3px);
}

/* Fallback tabs (preserved for legacy references) */
.sm-category-tabs-container {
  display: flex;
  overflow-x: auto;
  padding: 7px 0 14px 0;
  margin-bottom: 21px;
  gap: 11px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.sm-category-tabs-container::-webkit-scrollbar {
  display: none;
}
.sm-category-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  min-width: 70px;
  text-align: center;
  transition: var(--ios-spring);
  -webkit-tap-highlight-color: transparent;
}
.sm-category-tab-item:hover {
  transform: translateY(-2px);
}
.sm-category-tab-icon-bubble {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: 0 3px 8px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: var(--ios-spring);
  margin-bottom: 8px;
}
.sm-category-tab-item:hover .sm-category-tab-icon-bubble {
  background: var(--sm-primary-light);
  border-color: var(--sm-primary);
  box-shadow: 0 4px 12px rgba(74, 0, 255, 0.15);
}
.sm-category-tab-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--sm-text);
  line-height: 1.3;
}

/* 2. Сетка популярных услуг */
.sm-curated-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 34px;
}
@media (max-width: 1024px) {
  .sm-curated-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.sm-curated-service-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: var(--ios-spring);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--sm-text);
  position: relative;
}
[data-theme="dark"] .sm-curated-service-card {
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.sm-curated-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--sm-primary);
}

.sm-curated-service-img-wrapper {
  position: relative;
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
}
.sm-curated-service-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
}

.sm-curated-service-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #1d1d1f;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
[data-theme="dark"] .sm-curated-service-badge {
  background: rgba(30, 30, 35, 0.95);
  color: #f5f5f7;
}

.sm-curated-service-info {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.sm-curated-service-title {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 6px 0;
  line-height: 1.35;
  color: var(--sm-text);
}

.sm-curated-service-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
}
.sm-curated-service-rating .rating-star {
  color: #FFC107;
}
.sm-curated-service-rating .review-count {
  color: var(--sm-text-muted);
  font-weight: 400;
}

.sm-curated-service-price-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--input-border);
}
.price-label {
  font-size: 11px;
  color: var(--sm-text-muted);
  font-weight: 400;
}
.price-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--sm-primary);
}

/* 3. Баннер «Стать мастером» */
.sm-pro-cta-banner {
  background: linear-gradient(135deg, #1d1d1f 0%, #121214 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 31px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 21px;
  margin-bottom: 42px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
[data-theme="light"] .sm-pro-cta-banner {
  background: linear-gradient(135deg, #4A00FF 0%, #3A00CC 100%);
  border: none;
  box-shadow: 0 10px 24px rgba(74, 0, 255, 0.2);
}


/* 3.1 CTA Slider Wrapper */
.sm-cta-slider {
  position: relative;
  width: 100%;
  height: 155px; /* fixed height for desktop */
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 42px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}

[data-theme="light"] .sm-cta-slider {
  box-shadow: 0 10px 24px rgba(74, 0, 255, 0.15);
}

@media (max-width: 768px) {
  .sm-cta-slider {
    height: 290px; /* fixed height for mobile */
    margin-bottom: 12px;
  }
}

.sm-cta-slider-track {
  display: flex;
  width: 200%; /* 2 slides */
  height: 100%;
  transition: transform 0.4s ease-in-out;
}

.sm-cta-slider.single-slide .sm-cta-slider-track {
  width: 100% !important;
  transform: none !important;
}

.sm-cta-slide {
  width: 50%; /* each slide is 100% of container width */
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.sm-cta-slider.single-slide .sm-cta-slide {
  width: 100% !important;
}

.sm-cta-slider.single-slide .sm-cta-slider-dots {
  display: none !important;
}

/* Strip external margin, border-radius, border, and shadow from inner banners in slider */
.sm-cta-slide .sm-pro-cta-banner {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  box-sizing: border-box;
  padding: 24px 24px !important; /* side padding 24px */
}

@media (max-width: 768px) {
  .sm-cta-slide .sm-pro-cta-banner {
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 24px 36px 24px !important; /* vertical and side padding */
    gap: 10px !important;
  }
}

/* Pagination Dots */
.sm-cta-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.sm-cta-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sm-cta-dot.active {
  background: #ffffff !important;
}

/* Slide 1: Premium styling for master banner */
.sm-pro-cta-slide .sm-pro-cta-banner {
  background: linear-gradient(135deg, #3d00cc 0%, #1a0066 100%) !important;
  color: #ffffff !important;
}
.sm-pro-cta-slide .sm-pro-cta-title {
  color: #ffffff !important;
}
.sm-pro-cta-slide .sm-pro-cta-desc {
  color: rgba(255, 255, 255, 0.85) !important;
  opacity: 1 !important;
}
.sm-pro-cta-slide .sm-pro-cta-btn {
  color: #1a0066 !important;
  background: #ffffff !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25) !important;
}
.sm-pro-cta-slide .sm-pro-cta-btn:hover {
  background: #f1ecff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.35) !important;
}

/* Slide 2: Strict premium business styling for partner banner */
.sm-partner-cta-slide .sm-pro-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
.sm-partner-cta-banner .sm-pro-cta-title {
  color: #ffffff !important;
}
.sm-partner-cta-banner .sm-pro-cta-desc {
  color: rgba(255, 255, 255, 0.8) !important;
  opacity: 1 !important;
}
.sm-partner-cta-banner .sm-pro-cta-btn {
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 114, 255, 0.2) !important;
}
.sm-partner-cta-banner .sm-pro-cta-btn:hover {
  background: #f1f5f9 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 114, 255, 0.3) !important;
}

/* 3.2 Premium CSS 3D Graphics */
.sm-cta-graphic-coin-wrapper,
.sm-cta-graphic-partner-wrapper {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 768px) {
  .sm-cta-graphic-coin-wrapper,
  .sm-cta-graphic-partner-wrapper {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 140px !important;
    height: 140px !important;
    display: flex !important;
    margin: -10px auto -5px auto !important;
    z-index: 2 !important;
  }
}

.sm-coin-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
  filter: blur(15px);
  z-index: 1;
}

.sm-3d-coin {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.5), inset 0 2px 4px rgba(255,255,255,0.6), inset 0 -4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: float-coin 4s ease-in-out infinite;
}

.sm-coin-inner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-coin-text {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.sm-vector-wrench-logo {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  z-index: 3;
  animation: float-wrench 4s ease-in-out infinite;
}

.sm-vector-wrench-logo img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(73, 0, 255, 0.3);
}

.sm-partner-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.35) 0%, transparent 70%);
  filter: blur(15px);
  z-index: 1;
}

.sm-vector-handshake {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, #0052d4 0%, #4364f7 50%, #6fb1fc 100%);
  border-radius: 22px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(67, 100, 247, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
  animation: float-coin 4.5s ease-in-out infinite;
}

.sm-vector-partnership-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d2ff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  z-index: 3;
  animation: float-badge 4.5s ease-in-out infinite;
}

@keyframes float-coin {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}

@keyframes float-wrench {
  0%, 100% { transform: translateY(0) rotate(-15deg); }
  50% { transform: translateY(-6px) rotate(-8deg); }
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
}

/* Light theme dots when Slide 1 (partner) is active in light mode */
.sm-cta-slider.slide-active-1 .sm-cta-slider-dots .sm-cta-dot {
  background: rgba(255, 255, 255, 0.4);
}
.sm-cta-slider.slide-active-1 .sm-cta-slider-dots .sm-cta-dot.active {
  background: #ffffff;
}


.sm-pro-cta-glow {
  position: absolute;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(74, 0, 255, 0.3) 0%, rgba(0,0,0,0) 70%);
  right: -35px;
  top: -35px;
  pointer-events: none;
  filter: blur(21px);
}

.sm-pro-cta-content {
  max-width: 60%;
  position: relative;
  z-index: 2;
  text-align: left;
}
.sm-pro-cta-title {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.25;
}
.sm-pro-cta-desc {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
  margin: 0;
  line-height: 1.5;
}

.sm-pro-cta-actions {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.sm-pro-cta-btn {
  background: #fff;
  color: #121214;
  border: none;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ios-spring);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  box-sizing: border-box;
}
[data-theme="light"] .sm-pro-cta-btn {
  color: #4A00FF;
}
.sm-pro-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  background: #f5f5f7;
}
.sm-pro-cta-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Адаптивность для поисковой формы и баннера */
@media (max-width: 768px) {
  .sm-hero-title-large {
    font-size: 22px;
    letter-spacing: -0px;
  }
  .sm-search-widget-form {
    flex-direction: column;
    padding: 6px;
    border-radius: 14px;
    gap: 6px;
  }
  .sm-search-field-wrapper,
  .sm-search-location-wrapper {
    width: 100%;
  }
  .sm-search-widget-separator {
    display: none;
  }
  .sm-search-widget-btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }
  .sm-category-tabs-container {
    padding: 7px 3px 11px 3px;
  }
  .sm-curated-services-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .sm-pro-cta-banner {
    flex-direction: column;
    padding: 21px;
    gap: 14px;
    margin-bottom: 0 !important;
  }
  .sm-pro-cta-content {
    max-width: 100%;
    text-align: center;
  }
  .sm-pro-cta-title {
    font-size: 14px;
  }
  .sm-pro-cta-desc {
    font-size: 9px;
  }
  .sm-pro-cta-actions {
    width: 100%;
  }
  .sm-pro-cta-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box !important;
  }
}

/* Autocomplete Dropdown Search suggestions */
.sm-search-field-wrapper {
  position: relative;
}
.sm-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 11px;
  box-shadow: 0 7px 18px -4px rgba(0, 0, 0, 0.05), 0 6px 7px -4px rgba(0, 0, 0, 0.05);
  max-height: 224px;
  overflow-y: auto;
  z-index: 999;
  display: none;
  padding: 6px 0;
}
.sm-autocomplete-item {
  display: flex;
  align-items: center;
  padding: 7px 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--sm-text, #1e293b);
  border-bottom: 1px solid rgba(241, 245, 249, 0.5);
}
.sm-autocomplete-item:last-child {
  border-bottom: none;
}
.sm-autocomplete-item:hover,
.sm-autocomplete-item.active {
  background: rgba(74, 0, 255, 0.08);
  color: var(--sm-primary, #4A00FF);
}
.sm-autocomplete-icon {
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(74, 0, 255, 0.05);
  border-radius: 50%;
  color: var(--sm-primary, #4A00FF);
}
.sm-autocomplete-text {
  flex: 1;
  font-size: 9px;
  font-weight: 500;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.sm-autocomplete-parent {
  font-size: 7px;
  color: #64748b;
  margin-top: 1px;
}
.sm-autocomplete-badge {
  font-size: 6px;
  background: #f1f5f9;
  color: #475569;
  padding: 1px 4px;
  border-radius: 69px;
  font-weight: 600;
}
.sm-autocomplete-item:hover .sm-autocomplete-badge,
.sm-autocomplete-item.active .sm-autocomplete-badge {
  background: rgba(74, 0, 255, 0.15);
  color: var(--sm-primary, #4A00FF);
}

[data-theme="dark"] .sm-autocomplete-dropdown {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(51, 65, 85, 0.8);
  box-shadow: 0 7px 18px -4px rgba(0, 0, 0, 0.3), 0 6px 7px -4px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .sm-autocomplete-item {
  color: #f1f5f9;
  border-bottom-color: rgba(51, 65, 85, 0.3);
}
[data-theme="dark"] .sm-autocomplete-item:hover,
[data-theme="dark"] .sm-autocomplete-item.active {
  background: rgba(140, 102, 255, 0.15);
  color: #8C66FF;
}
[data-theme="dark"] .sm-autocomplete-icon {
  background: rgba(140, 102, 255, 0.1);
  color: #8C66FF;
}
[data-theme="dark"] .sm-autocomplete-parent {
  color: #94a3b8;
}
[data-theme="dark"] .sm-autocomplete-badge {
  background: #1e293b;
  color: #94a3b8;
}
[data-theme="dark"] .sm-autocomplete-item:hover .sm-autocomplete-badge,
[data-theme="dark"] .sm-autocomplete-item.active .sm-autocomplete-badge {
  background: rgba(140, 102, 255, 0.25);
  color: #8C66FF;
}


/* === 9. ВЫПАДАЮЩЕЕ МЕНЮ ПОЛЬЗОВАТЕЛЯ === */
.sm-user-dropdown {
  position: relative;
  display: inline-block;
}

/* Кнопка аватара */
.sm-avatar-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 34px;
  height: 34px;
}

.sm-avatar-btn:hover {
  transform: scale(1.05);
}

.sm-avatar-btn:active {
  transform: scale(0.95);
}

/* Картинка аватара и плейсхолдер */
.sm-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--sm-primary);
  box-shadow: 0 0 10px rgba(74, 0, 255, 0.25);
}

.sm-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sm-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid var(--sm-primary);
  box-shadow: 0 0 10px rgba(74, 0, 255, 0.25);
  text-transform: uppercase;
}

/* Выпадающее меню */
.sm-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 168px;
  background: var(--sm-bg-glass);
  border: var(--sm-border-glass);
  box-shadow: var(--sm-shadow-glass);
  backdrop-filter: blur(var(--sm-blur)) saturate(var(--sm-saturate));
  -webkit-backdrop-filter: blur(var(--sm-blur)) saturate(var(--sm-saturate));
  border-radius: 14px;
  padding: 6px;
  display: none;
  flex-direction: column;
  z-index: 1010;
  transform: translateY(7px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sm-user-dropdown.active .sm-dropdown-menu {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

/* Шапка меню */
.sm-dropdown-header {
  padding: 8px 11px;
  text-align: left;
}

.sm-dropdown-name {
  font-weight: 600;
  color: var(--sm-text);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sm-dropdown-role {
  font-size: 8px;
  color: var(--sm-text-muted);
  margin-top: 3px;
  font-weight: 500;
}

/* Разделитель */
.sm-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

[data-theme="light"] .sm-dropdown-divider {
  background: rgba(0, 0, 0, 0.05);
}

/* Элементы меню */
.sm-dropdown-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 500;
  color: var(--sm-text);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-align: left;
}

.sm-dropdown-item:hover {
  background: var(--sm-primary-light);
  color: var(--sm-primary);
  transform: translateX(3px);
}

.sm-dropdown-icon {
  font-size: 13px;
  color: var(--sm-text-muted);
  transition: color 0.2s ease;
}

.sm-dropdown-item:hover .sm-dropdown-icon {
  color: var(--sm-primary);
}

.sm-dropdown-item.logout-item {
  color: var(--sm-error);
}

.sm-dropdown-item.logout-item:hover {
  background: rgba(255, 59, 48, 0.08);
  color: var(--sm-error);
}

.sm-dropdown-item.logout-item:hover .sm-dropdown-icon {
  color: var(--sm-error);
}

@media (max-width: 900px) {
  .sm-user-dropdown {
    display: none !important;
  }
}

/* === RESPONSIVE HOMEPAGE & VISIBILITY UTILITIES === */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none !important;
}

.sm-mobile-home-container {
  padding: 8px 16px 85px 16px;
  box-sizing: border-box;
  display: none !important;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 768px) {
  body {
    padding-top: 58px !important;
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .sm-mobile-home-container {
    display: flex !important;
  }
}

/* Header bell notification */
.sm-header-bell-wrapper {
  position: relative;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--ios-spring);
  -webkit-tap-highlight-color: transparent;
  background: var(--toggle-bg);
}

.sm-header-bell-wrapper:hover {
  background: var(--sm-primary-light);
  transform: translateY(-1px);
}
.sm-header-bell-wrapper:hover .material-icons {
  color: var(--sm-primary);
}

.sm-header-bell-wrapper:active {
  transform: scale(0.92);
}

.sm-header-bell-wrapper .material-icons {
  font-size: 20px;
  color: var(--sm-text);
  transition: color 0.2s ease;
}

.sm-header-bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--sm-error);
  color: white;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px 3px;
  box-sizing: border-box;
  border: 1.5px solid var(--card-bg);
  line-height: 1;
}

/* Search widget for mobile */
.sm-mobile-search-widget {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 11px;
  padding: 7px 8px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  width: 100%;
  margin: 0;
}

.sm-mobile-search-icon {
  color: var(--sm-text-muted);
  margin-left: 6px;
}

.sm-mobile-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 500;
  color: var(--sm-text);
  outline: none;
}

.sm-mobile-search-btn-icon {
  background: var(--sm-primary);
  color: white;
  border: none;
  border-radius: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ios-spring);
}
.sm-mobile-search-btn-icon:active {
  transform: scale(0.95);
}

/* 2x2 grid - compact row-based like Cyan */
.sm-mobile-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  width: 100%;
  margin: 0;
}

.sm-mobile-grid-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 8px;
  padding: 5.5px 7px;
  text-align: left;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--ios-spring);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.sm-mobile-grid-card:active {
  transform: scale(0.97);
}

.sm-mobile-grid-icon-bubble {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--sm-primary-light);
  color: var(--sm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sm-mobile-grid-icon-bubble .material-icons {
  color: var(--sm-primary) !important;
  font-size: 12px;
}

.sm-mobile-grid-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--sm-text);
  line-height: 1.25;
}

/* Mobile Slider Section - eliminates gap above popular services */
.sm-mobile-slider-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.sm-mobile-slider-section .sm-slider-wrapper {
  margin-bottom: 0 !important;
}

.sm-mobile-slider-section .sm-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  margin-bottom: 0;
}

.sm-mobile-popular-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 8px;
  padding: 2px 0 4px 0;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}
.sm-mobile-popular-grid::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.sm-mobile-pop-card {
  flex: 0 0 calc(50% - 4px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.02);
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sm-popular-nav-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  background: var(--card-bg, #ffffff);
  color: var(--sm-text, #1e293b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}
.sm-popular-nav-btn:hover {
  background: var(--sm-primary, #6366f1);
  color: #ffffff;
  border-color: var(--sm-primary, #6366f1);
}
.sm-popular-nav-btn:active {
  transform: scale(0.9);
}

.sm-popular-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  margin-bottom: 6px;
}
.sm-popular-dots .sm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sm-text-muted, #94a3b8);
  opacity: 0.35;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.sm-popular-dots .sm-dot.active {
  opacity: 1;
  background: var(--sm-primary, #6366f1);
  width: 16px;
  border-radius: 6px;
}

.sm-mobile-pop-img {
  height: 62px;
  background-size: cover;
  background-position: center;
}

.sm-mobile-pop-body {
  padding: 5px 7px 6px 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sm-mobile-pop-title {
  font-size: 9.5px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  color: var(--sm-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sm-mobile-pop-price {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--sm-primary);
  line-height: 1.2;
}

/* Global verified tooltip and badges styling */
.sm-tooltip-container {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.sm-tooltip {
  position: absolute;
  bottom: 135%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: #1e293b;
  color: #ffffff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 7px;
  line-height: 1.4;
  font-weight: 500;
  width: 140px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.15);
  z-index: 999;
  pointer-events: none;
}

.sm-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border-width: 4px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}

.sm-tooltip-container:hover .sm-tooltip,
.sm-tooltip-container:active .sm-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

/* Specific badge colors */
.badge-passport {
  background: rgba(37, 99, 235, 0.1) !important;
  color: #2563eb !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
}

.badge-selfemployed {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

/* Global input controls styling */
input[type="checkbox"], input[type="radio"] {
  accent-color: var(--sm-primary) !important;
}

/* Premium onboarding banner styling (glassmorphism tip box) */
.sm-onboarding-banner {
  background: var(--sm-bg-glass, rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(var(--sm-blur, 7px));
  -webkit-backdrop-filter: blur(var(--sm-blur, 7px));
  border: 1px solid rgba(74, 0, 255, 0.2);
  border-radius: 14px;
  padding: 14px 17px;
  margin-bottom: 21px;
  font-size: 9px;
  line-height: 1.6;
  color: var(--sm-text, #1e293b);
  box-shadow: 0 6px 17px rgba(74, 0, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.sm-onboarding-banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--sm-primary, #4A00FF), #a855f7);
}

.sm-onboarding-title {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sm-text);
}

.sm-onboarding-desc {
  font-size: 9px;
  line-height: 1.55;
  color: var(--sm-text-muted);
}

.sm-onboarding-bullets {
  margin-top: 8px;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 9px;
  color: var(--sm-text);
}

/* Premium onboarding banner carousel styling */
.sm-onboarding-banner {
  position: relative;
  overflow: hidden;
  min-height: 98px; /* Base size */
  display: flex;
  flex-direction: column;
}

.sm-onboarding-slider {
  position: relative;
  width: 100%;
  flex: 1;
}

.sm-onboarding-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  padding-bottom: 18px; /* Space for dots at the bottom */
}

.sm-onboarding-slide.active {
  position: relative; /* Current active slide determines container height */
  opacity: 1;
  visibility: visible;
}

.sm-onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding-top: 6px;
}

.sm-onboarding-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .sm-onboarding-dot {
  background: rgba(255, 255, 255, 0.18);
}

.sm-onboarding-dot.active {
  background: var(--sm-primary);
  width: 13px; /* Expand active indicator to a pill shape */
  border-radius: 3px;
}

/* Custom Geolocation Button on Google Maps */
.sm-map-geo-btn {
  position: absolute;
  bottom: 14px;
  left: 7px;
  z-index: 10;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 9px;
  font-weight: 700;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transition: all 0.2s ease;
}
.sm-map-geo-btn:hover {
  background: #f8f9fa;
  color: var(--sm-primary);
}
.sm-map-geo-btn .material-icons {
  font-size: 13px;
}
.sm-map-geo-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}
[data-theme="dark"] .sm-map-geo-btn {
  background: #2c2c2e;
  color: #e5e5ea;
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
[data-theme="dark"] .sm-map-geo-btn:hover {
  background: #3a3a3c;
  color: var(--sm-primary);
}

/* Spinner Animation */
.rotating {
  animation: sm-spin 1.5s linear infinite;
}
@keyframes sm-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Verification SVG Icons adaptation (Light/Dark themes) */
.sm-verification-badge-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

.sm-verification-badge-inline svg {
  width: 13px;
  height: 13px;
  display: block;
}

.sm-verification-badge-inline svg path:not([fill]),
.sm-verification-badge-inline svg g path:not([fill]),
.badge-icon svg path:not([fill]) {
  fill: var(--sm-text) !important;
  transition: fill 0.3s ease;
}

.qualification-icon-mockup svg path {
  fill: var(--sm-text) !important;
  transition: fill 0.3s ease;
}

.qualification-inline-badge svg path {
  fill: var(--sm-success) !important;
}

/* Native scroll-snap promo slider */
.sm-promo-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 12px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.sm-promo-slider-container::-webkit-scrollbar {
    display: none;
}
.sm-promo-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: 20px;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    border: var(--card-border);
    box-shadow: var(--sm-shadow-glass);
    box-sizing: border-box;
    max-width: 100%;
}
.sm-promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.65) 0%, rgba(15,23,42,0.15) 40%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}
.sm-promo-badge {
    font-size: 8px;
    font-weight: 800;
    padding: 2.5px 6px;
    border-radius: 5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 4px;
}
.sm-promo-title {
    font-size: 14px;
    font-weight: 850;
    margin: 0;
    line-height: 1.25;
}
.sm-promo-subtitle {
    font-size: 10px;
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === TOP MASTERS SHOWCASE CARD STYLES === */
.sm-masters-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 20px;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.sm-master-card-wrap {
  position: relative;
  width: 100%;
  max-width: 370px;
  display: flex;
  flex-direction: column;
}
.sm-master-showcase-card {
  position: relative;
  width: 100%;
  min-height: 200px;
  height: 100%;
  background-color: var(--sm-carousel-card);
  border: var(--input-border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  text-align: left;
  transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  text-decoration: none;
  color: var(--sm-text);
}
.sm-master-showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 0, 255, 0.25);
  box-shadow: var(--card-hover-shadow);
}
.sm-master-card-wrap:hover .sm-card-top-right-badges {
  transform: translateY(-4px);
  transition: transform 0.3s;
}

/* Top Right Badges (PRO badge + Verification Badges) */
.sm-card-top-right-badges {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
}
.sm-card-pro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.05em;
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.12);
  user-select: none;
  pointer-events: none;
}
[data-theme="dark"] .sm-card-pro-badge {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.sm-card-top-right-badges .sm-verify-badge-container {
  position: static;
  top: auto;
  right: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: auto;
}

/* Top Row Layout (Left: Avatar; Right: Details) */
.sm-card-top-layout {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 2px;
}
.sm-card-avatar-wrap {
  position: relative !important;
  width: 76px;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sm-carousel-photo-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sm-card-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sm-card-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--sm-carousel-photo-bg);
}
.sm-card-details-wrap {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 2px;
  padding-right: 56px;
}

.sm-master-showcase-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px 0;
  color: var(--sm-text);
  text-align: left;
}
.sm-master-showcase-name .name-first {
  display: block;
}
.sm-master-showcase-name .name-last {
  display: block;
  font-weight: 400;
  color: var(--sm-text-muted);
  font-size: 11px;
}
.sm-master-showcase-rating-row {
  font-size: 10px;
  display: flex;
  align-items: center;
  margin: 0 0 10px 0;
  line-height: 1;
}
.sm-rating-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}
.sm-rating-star-icon svg {
  height: 11px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.sm-rating-star-icon svg *, .sm-rating-star-icon svg path {
  fill: #FFC107 !important; /* Star color */
}
.sm-rating-value {
  font-size: 10px;
  font-weight: 700;
  color: var(--sm-text);
  margin-left: 0;
}

/* Reviews next to Rating */
.sm-reviews-wrapper {
  display: flex;
  align-items: center;
  margin-left: 10px;
  color: var(--sm-text-muted);
  gap: 3px;
}
.sm-reviews-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sm-reviews-icon svg {
  height: 11px;
  width: auto;
}
.sm-reviews-icon svg path, .sm-reviews-icon svg * {
  fill: currentColor !important;
}
.sm-reviews-value {
  font-size: 10px;
  font-weight: 500;
  color: var(--sm-text-muted);
  margin-left: 0;
}

.sm-master-showcase-experience {
  font-size: 10px;
  color: var(--sm-text-muted);
  margin: 0 0 4px 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sm-master-showcase-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.3;
  margin: 6px 0 8px 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.sm-master-showcase-spec .spec-label {
  font-weight: 500;
  color: var(--sm-text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}
.sm-master-showcase-spec .spec-value {
  font-weight: 700;
  color: var(--sm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Prices list with dotted leaders */
.sm-master-showcase-prices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  width: 100%;
  border-top: none;
  padding-top: 0;
}
.sm-master-showcase-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 10px;
  margin-bottom: 0;
  width: 100%;
}
.sm-master-showcase-price-row .price-name {
  color: var(--sm-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
  font-weight: 400;
  flex: 0 1 auto;
  display: flex;
  align-items: baseline;
  width: auto;
}
.sm-master-showcase-price-row .dots-connector {
  flex-grow: 1;
  border-bottom: 1px dotted var(--sm-text-muted);
  margin: 0 6px;
  position: relative;
  bottom: 3px;
}
.sm-master-showcase-price-row .price-val {
  font-size: 9px;
  font-weight: 700;
  color: var(--sm-text);
  white-space: nowrap;
  flex: 0 0 auto;
  text-align: right;
}

.sm-verify-badge-container {
  position: absolute;
  top: 19px;
  right: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 20;
}
.sm-verify-icon-wrapper {
  position: relative;
  cursor: default;
  opacity: 0.15;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--sm-carousel-icon-color);
  padding: 2px;
}
.sm-verify-icon-wrapper.verified {
  cursor: pointer;
  opacity: 1;
  color: var(--sm-carousel-icon-color);
}
.sm-verify-icon-wrapper.verified:hover {
  color: var(--sm-carousel-icon-hover);
}
.sm-verify-icon-wrapper svg {
  height: 16px;
  width: auto;
  display: block;
}

/* Force all paths/shapes to currentColor to respect dark/light theme */
.sm-verify-icon-wrapper svg path,
.sm-verify-icon-wrapper svg circle,
.sm-verify-icon-wrapper svg rect,
.sm-verify-icon-wrapper svg polygon,
.sm-verify-icon-wrapper svg g {
  fill: currentColor !important;
}

/* Verification badge colors */
.sm-verify-icon-wrapper.verified.qualification {
  color: #D84315 !important;
}
.sm-verify-icon-wrapper.verified.self-employed {
  color: #00695C !important;
}
.sm-verify-icon-wrapper.verified.passport {
  color: var(--sm-primary) !important;
}
.sm-verify-icon-wrapper.verified.warranty {
  color: #C62828 !important;
}

[data-theme="dark"] .sm-verify-icon-wrapper.verified.qualification {
  color: #FF6D00 !important;
}
[data-theme="dark"] .sm-verify-icon-wrapper.verified.self-employed {
  color: #00E676 !important;
}
[data-theme="dark"] .sm-verify-icon-wrapper.verified.passport {
  color: #00E5FF !important;
}
[data-theme="dark"] .sm-verify-icon-wrapper.verified.warranty {
  color: #FF1744 !important;
}

/* Global fixed tooltip for verification icons */
#sm-global-verify-tip {
  position: fixed;
  z-index: 99999;
  width: 210px;
  background: var(--sm-carousel-tooltip);
  border: 1px solid var(--sm-carousel-border-tooltip);
  color: var(--sm-text);
  font-size: 11px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  white-space: normal;
  word-break: break-word;
}
#sm-global-verify-tip.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .sm-masters-showcase-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 0 !important;
  }
  .sm-master-card-wrap {
    width: 100% !important;
  }
  .sm-master-showcase-card {
    padding: 12px 14px !important;
    min-height: 195px !important;
    height: 100% !important;
    width: 100% !important;
    border-radius: 14px !important;
  }
  .sm-card-details-wrap {
    padding-right: 48px !important;
  }
  .sm-card-top-right-badges {
    top: 10px !important;
    right: 12px !important;
    gap: 5px !important;
  }
  .sm-card-pro-badge {
    font-size: 9px !important;
    padding: 2.5px 6px !important;
  }
  .sm-card-avatar-wrap {
    width: 72px !important;
    height: 72px !important;
    border-radius: 12px !important;
  }
  .sm-master-showcase-spec {
    font-size: 10.5px !important;
    margin: 5px 0 7px 0 !important;
  }
  .sm-master-showcase-spec .spec-label {
    font-size: 10.5px !important;
  }
  .sm-master-showcase-spec .spec-value {
    font-size: 10.5px !important;
  }
  .sm-master-avatar-wrap {
    width: 40px !important;
    height: 40px !important;
    font-size: 15px !important;
    margin-bottom: 6px !important;
    border-width: 1px !important;
  }
  .sm-master-showcase-name {
    font-size: 12px !important;
  }
  .sm-master-showcase-stats {
    gap: 3px !important;
    margin-bottom: 6px !important;
  }
  .sm-master-showcase-rating,
  .sm-master-showcase-orders {
    font-size: 8px !important;
  }
  
  /* Horizontal scroll section layout on mobile */
  .sm-masters-mobile-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 8px 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
  }
  .sm-masters-mobile-scroll::-webkit-scrollbar {
    display: none;
  }
  .sm-masters-mobile-scroll .sm-master-card-wrap {
    flex: 0 0 290px;
    width: 290px !important;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .sm-masters-mobile-scroll .sm-master-showcase-card {
    width: 100% !important;
    min-height: 195px !important;
    height: 100% !important;
  }
}

/* === 20. PREMIUM ORDER FEED CARDS (MOBILE-FIRST) === */
.sm-premium-order-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: var(--ios-spring);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .sm-premium-order-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sm-premium-order-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}

/* Card Header elements */
.sm-order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.sm-order-card-category {
  font-size: 11px;
  font-weight: 700;
  background: var(--sm-primary-light);
  color: var(--sm-primary);
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sm-order-card-date {
  font-size: 11px;
  color: var(--sm-text-muted);
  font-weight: 500;
}

/* Card Title */
.sm-order-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sm-text);
  margin: 0;
  line-height: 1.4;
}

/* Card Meta items (Address & Distance) */
.sm-order-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sm-order-card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--sm-text);
  font-weight: 500;
}

.sm-order-card-distance-badge {
  background: rgba(52, 199, 89, 0.1);
  color: #34c759;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
}

/* Description / Comment block */
.sm-order-card-comment-block {
  display: flex;
  gap: 8px;
  background: var(--sub-card-bg);
  padding: 12px;
  border-radius: 14px;
  border: var(--card-border);
  align-items: flex-start;
}

.sm-order-card-comment-icon {
  font-size: 16px;
  line-height: 1;
}

.sm-order-card-comment-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--sm-text-muted);
  margin: 0;
  word-break: break-word;
}

/* Budget details */
.sm-order-card-budget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--sub-card-bg);
  padding: 12px 14px;
  border-radius: 14px;
  border: var(--card-border);
}

.sm-order-card-budget-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--sm-text-muted);
}

.sm-order-card-budget-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--sm-primary);
}

/* Card Actions */
.sm-order-card-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.sm-order-card-actions .sm-btn-secondary {
  flex: 1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--ios-spring);
}

.sm-order-card-actions .sm-btn-primary {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(135deg, #4A00FF 0%, #7000FF 100%);
  transition: var(--ios-spring);
}

@media (max-width: 480px) {
  .sm-premium-order-card {
    padding: 14px;
    border-radius: 16px;
  }
  .sm-order-card-title {
    font-size: 15px;
  }
  .sm-order-card-meta-item {
    font-size: 12px;
  }
  .sm-order-card-comment-text {
    font-size: 12px;
  }
  .sm-order-card-budget-value {
    font-size: 14px;
  }
}

/* 3.2 Redesigned How It Works Steps Grid */
.sm-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 40px 0;
  position: relative;
  z-index: 1;
}

.sm-step-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, rgba(74, 0, 255, 0.1));
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 8px 28px rgba(74, 0, 255, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .sm-step-card,
body.dark-theme .sm-step-card {
  background: rgba(28, 28, 32, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .sm-step-card {
  background: #ffffff;
  border-color: rgba(74, 0, 255, 0.09);
  box-shadow: 0 8px 28px rgba(74, 0, 255, 0.045);
}

.sm-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(74, 0, 255, 0.11);
  border-color: rgba(74, 0, 255, 0.28);
}

/* Step Header */
.sm-step-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.sm-step-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 0, 255, 0.06);
  border: 1px solid rgba(74, 0, 255, 0.12);
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
}

[data-theme="dark"] .sm-step-badge-wrap {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.28);
}

.sm-step-number {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #4900FF 0%, #6366F1 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(73, 0, 255, 0.3);
  flex-shrink: 0;
}

.sm-step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4900FF;
}

[data-theme="dark"] .sm-step-label {
  color: #a5b4fc;
}

.sm-step-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--sm-text);
  margin: 0;
  text-align: left;
  line-height: 1.3;
}

/* Step Content Layout */
.sm-step-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.sm-step-illustration-wrapper {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #F5F3FF 0%, #EEF2FF 100%);
  border: 1px solid rgba(73, 0, 255, 0.1);
  box-shadow: 0 6px 16px rgba(73, 0, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  flex-shrink: 0;
}

[data-theme="dark"] .sm-step-illustration-wrapper {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.sm-step-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 17px;
  display: block;
  transition: transform 0.35s ease;
}

.sm-step-card:hover .sm-step-illustration {
  transform: scale(1.05);
}

.sm-step-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--sm-text-muted);
  margin: 0;
  text-align: left;
}

/* Mobile Styling */
@media (max-width: 768px) {
  .sm-steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 10px 0 18px 0;
    padding-left: 0;
  }
  
  .sm-step-card {
    padding: 16px;
    border-radius: 16px;
    gap: 12px;
  }
  
  .sm-step-title {
    font-size: 14px;
  }
  
  .sm-step-number {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .sm-step-label {
    font-size: 10px;
  }

  .sm-step-content {
    gap: 14px;
    align-items: center;
  }
  
  .sm-step-illustration-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 16px;
  }
  
  .sm-step-desc {
    font-size: 12px;
    line-height: 1.48;
  }
}

/* === 19. УНИФИЦИРОВАННЫЕ КНОПКИ НАЗАД (BACK BUTTONS) & СТРАНИЧНЫЕ КОМПОНЕНТЫ === */
.sm-page-container {
  max-width: 1200px;
  margin: 16px auto 0 auto;
  padding: 0 16px 90px 16px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .sm-page-container {
    margin: 12px auto 0 auto;
    padding: 0 14px 85px 14px;
  }
}

.sm-back-btn-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
  gap: 12px;
  text-align: left;
}
.sm-back-btn-circle {
  background: var(--sm-bg-glass) !important;
  backdrop-filter: blur(var(--sm-blur)) !important;
  -webkit-backdrop-filter: blur(var(--sm-blur)) !important;
  border: var(--sm-border-glass) !important;
  box-shadow: var(--sm-shadow-glass) !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: var(--sm-text) !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, background-color 0.2s ease !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
}
.sm-back-btn-circle:active {
  transform: scale(0.9);
}
.sm-back-btn-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--sm-text);
  line-height: 1.2;
  margin: 0;
}

/* Единая поисковая строка для списков */
.sm-unified-search-box {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
  box-sizing: border-box;
}
.sm-unified-search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sm-text-muted);
  font-size: 18px;
  pointer-events: none;
  z-index: 2;
}
.sm-unified-search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  background: var(--input-bg);
  border: var(--input-border);
  color: var(--sm-text);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: var(--ios-spring);
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.sm-unified-search-input:focus {
  border-color: var(--sm-primary);
  box-shadow: 0 0 0 3px rgba(74, 0, 255, 0.12);
  background: var(--card-bg);
}

/* Единая строка подзаголовка раздела (Слева - капс серый, справа - ссылка действия) */
.sm-unified-subheading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  margin-bottom: 12px;
  gap: 8px;
  flex-wrap: nowrap;
}
.sm-unified-subheading-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--sm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm-unified-subheading-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sm-primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--sm-primary-light);
  transition: all 0.2s ease;
}
.sm-unified-subheading-action:hover {
  background: var(--sm-primary);
  color: #ffffff;
}
.sm-unified-subheading-action .material-icons {
  font-size: 14px;
  line-height: 1;
}

.sm-action-text-mobile {
  display: none;
}
.sm-action-text-desktop {
  display: inline;
}
@media (max-width: 768px) {
  .sm-action-text-mobile {
    display: inline;
  }
  .sm-action-text-desktop {
    display: none;
  }
}

/* === FAVORITE CARDS BUTTON === */
.card-fav-btn {
  border: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
  border-radius: 50%;
}
.card-fav-btn .material-icons {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-fav-btn:hover .material-icons {
  transform: scale(1.18);
}
.card-fav-btn:active .material-icons {
  transform: scale(0.9);
}

/* Floating on banner image */
.card-fav-btn.vac-fav-on-banner {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  z-index: 5;
}
.card-fav-btn.vac-fav-on-banner.is-favorite {
  background: #ffffff;
  color: #ff3b30;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Inline in header tag row */
.card-fav-btn.vac-fav-inline {
  background: var(--input-bg);
  border: var(--input-border);
  color: var(--sm-text-muted);
  border-radius: 6px;
}
.card-fav-btn.vac-fav-inline:hover {
  color: #ff3b30;
  border-color: rgba(255, 59, 48, 0.25);
}
.card-fav-btn.vac-fav-inline.is-favorite {
  background: rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.35);
  color: #ff3b30;
}


/* === 20. УНИФИЦИРОВАННАЯ ТИПОГРАФИКА ДЛЯ СТРАНИЦ === */

/* Секционные заголовки (как на главной) */
.sm-section-title {
  font-family: 'Outfit', -apple-system, sans-serif !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  color: var(--sm-text) !important;
  margin-top: 36px !important;
  margin-bottom: 20px !important;
  letter-spacing: -0.01em !important;
}

/* Главные заголовки страниц (Title) */
.sm-page-title,
.masters-page-title,
.sm-vacancies-hero h1,
.sm-candidates-hero h1 {
  font-family: 'Outfit', -apple-system, sans-serif !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  color: var(--sm-text) !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
}

/* Подзаголовки и описания */
.sm-page-subtitle,
.masters-page-subtitle,
.sm-vacancies-hero p,
.sm-candidates-hero p {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--sm-text-muted) !important;
  line-height: 1.5 !important;
  margin: 0 auto !important;
  max-width: 600px !important;
}

/* Ограничители высоты шапок (Hero / Headers) */
.sm-page-header,
.masters-page-header {
  text-align: center !important;
  margin: 30px 0 20px 0 !important;
}
.sm-vacancies-hero,
.sm-candidates-hero {
  padding: 32px 20px !important;
  margin-bottom: 24px !important;
  border-radius: 20px !important;
}

/* === МЕДИА-ЗАПРОСЫ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ === */
@media (max-width: 768px) {
  /* Секционные заголовки на мобильном (13px) */
  .sm-section-title {
    font-size: 13px !important;
    text-align: left !important;
    margin: 21px 0 8px 0 !important;
  }
  
  /* Заголовки страниц на мобильном (18px) */
  .sm-page-title,
  .masters-page-title,
  .sm-vacancies-hero h1,
  .sm-candidates-hero h1 {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }
  
  /* Подзаголовки на мобильном (11px) */
  .sm-page-subtitle,
  .masters-page-subtitle,
  .sm-vacancies-hero p,
  .sm-candidates-hero p {
    font-size: 11px !important;
  }
  
  /* Шапки страниц на мобильном */
  .sm-page-header,
  .masters-page-header {
    margin: 16px 0 12px 0 !important;
  }
  .sm-vacancies-hero,
  .sm-candidates-hero {
    padding: 16px 12px !important;
    margin-bottom: 16px !important;
    border-radius: 12px !important;
  }
}



