/* ====== LAYOUT & COMPONENTS ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== HEADER ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95); /* Напівпрозорий білий */
  backdrop-filter: blur(10px); /* Ефект розмиття фону під шапкою */
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 24px 0;
}
.site-header .container {
    max-width: 1400px;
    padding: 0 20px;
}
[data-theme="dark"] .site-header {
  background: rgba(30, 41, 59, 0.95); /* Напівпрозорий темний */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 24px;
  color: var(--brand);
}

.brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  max-width: 900px; /* обмежуємо ширину */
}

.nav-links a {
  font-size: 0.85rem;
  padding: 0.4rem 0.7rem;
  background: rgba(85, 111, 207, 0.1);
  border-radius: 20px;
  transition: all 0.3s;
  text-decoration: none; /* прибираємо підкреслення */
  }

.nav-links a:hover {
  background: rgba(255,255,255,0.2);
  color: #4348ad; 
}

.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-login, .btn-register {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-login {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}

.btn-login:hover {
  background: rgba(43, 108, 176, 0.1);
}

.btn-register {
  background: var(--brand);
  border: 2px solid var(--brand);
  color: white;
}

.btn-register:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.user-menu {
  display: flex;
  gap: 12px;
  align-items: center;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

/* ====== MOBILE MENU FIXES ====== */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--brand);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Анімація для бургера */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Оновлене мобільне меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--card);
    z-index: 1000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-links {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-link {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-link:hover {
    background: var(--primary-light);
    color: var(--brand);
    transform: translateX(5px);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
}

/* Оверлей для мобільного меню */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Мобільні кнопки */
.mobile-auth-buttons {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.mobile-btn.btn-login {
    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand);
}

.mobile-btn.btn-login:hover {
    background: var(--primary-light);
}

.mobile-btn.btn-register {
    background: var(--brand);
    color: white;
}

.mobile-btn.btn-register:hover {
    background: var(--brand-dark);
}

/* Покращена адаптивність */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .nav-links,
    .auth-buttons {
        display: none;
    }
    
    /* Заборона скролу при відкритому меню */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 90%;
    }
    
    .mobile-nav-link {
        padding: 12px 15px;
        font-size: 16px;
    }
}

/* ====== HERO SECTION ====== */
.hero {
  padding: 60px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text {
  max-width: 550px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--brand-dark);
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; /* Ефект градієнтного тексту */
}

.hero-subtitle {
  font-size: 22px;
  color: var(--muted);
  margin: 0 0 30px;
  font-weight: 500;
}

.talk-box {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.talk-box:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.hint {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(56, 161, 105, 0.1);
  color: var(--ok);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hint i {
  font-size: 18px;
}

.input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.message-input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid var(--ring);
  border-radius: 12px;
  font-size: 16px;
  transition: var(--transition);
  background: var(--input-bg);
  color: var(--ink);
}

.message-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
}

.send-btn {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0 28px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3);
}

.send-btn:hover {
  background: var(--brand-dark);
  box-shadow: 0 6px 16px rgba(43, 108, 176, 0.4);
  transform: translateY(-2px);
}

.send-btn:active {
  transform: translateY(0);
}

.send-note {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.send-note em {
  font-style: normal;
  background: rgba(43, 108, 176, 0.1);
  color: var(--brand);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.hero-image:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ====== FEATURES SECTION ====== */
.features {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 50px;
  color: var(--brand-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-card.emergery { /* Можливо, помилка, має бути emergency */
  border-top: 5px solid var(--warn);
}

.feature-card h3 {
  font-size: 22px;
  margin: 0 0 20px;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card h3 i {
  color: var(--brand);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--ring);
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  color: var(--ok);
  font-size: 14px;
}

.emergency-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.emergency-list li {
  padding: 12px 0;
  font-weight: 500;
}

.emergency-list strong {
  color: var(--warn);
  font-size: 18px;
}

/* ====== BLOG SECTION ====== */
.blog {
  padding: 60px 0;
  background: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .blog {
  background: rgba(30, 41, 59, 0.5);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05); /* Ефект збільшення зображення при наведенні */
}

.blog-content {
  padding: 25px;
}

.blog-date {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
}

.blog-title {
  font-size: 20px;
  margin: 0 0 15px;
  color: var(--brand-dark);
}

.blog-excerpt {
  color: var(--muted);
  margin-bottom: 20px;
}

.read-more {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--brand-dark);
  gap: 8px; /* Збільшує відстань між текстом і стрілкою */
}

/* ====== MODAL ====== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 90%;
  max-width: 450px;
  box-shadow: var(--shadow-hover);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-title {
  font-size: 24px;
  color: var(--brand-dark);
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--ink);
}

.auth-tabs {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--ring);
}

.auth-tab {
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.auth-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--ink);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--ring);
  border-radius: 8px;
  font-size: 16px;
  transition: var(--transition);
  background: var(--input-bg);
  color: var(--ink);
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  color: var(--muted);
}

.form-options a {
  color: var(--brand);
  text-decoration: none;
}

.form-options a:hover {
  text-decoration: underline;
}

.modal-btn {
  width: 100%;
  padding: 14px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.modal-btn:hover {
  background: var(--brand-dark);
}

.modal-btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

.form-footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.form-footer a:hover {
  text-decoration: underline;
}

.profile-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--ring);
  border-radius: 8px;
  font-size: 16px;
  background: var(--input-bg);
  color: var(--ink);
}

.profile-input:disabled {
  background: var(--bg);
  color: var(--muted);
}

.btn-danger {
  background: var(--warn) !important;
  margin-top: 10px;
}

.btn-danger:hover {
  background: #c53030 !important;
}

/* ====== FOOTER ====== */
.footer {
  background: var(--brand-dark);
  color: white;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 16px;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  color: white;
  font-size: 24px;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--brand-light);
  transform: translateY(-3px);
}

/* ====== MOBILE MENU ====== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background: var(--card);
  z-index: 999;
  padding: 30px;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--ring);
  display: block;
  transition: var(--transition);
}

.mobile-nav a:hover {
  color: var(--brand);
}

.mobile-auth {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .auth-buttons {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .send-btn {
    padding: 16px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .talk-box {
    padding: 20px;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .modal {
    padding: 20px;
  }
}



/* Emergency Note */
.emergency-note {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    color: #d97706;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

[data-theme="dark"] .emergency-note {
    background: #44370a;
    border-color: #665a1a;
    color: #e9c46a;
}

/* Blog CTA */
.blog-cta {
    background: var(--card);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 40px;
    box-shadow: var(--shadow);
}

.blog-cta h3 {
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.blog-cta p {
    color: var(--muted);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--ring);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--ink);
}

/* Features Grid Update */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

/* Smooth scrolling for navigation */
html {
    scroll-behavior: smooth;
}

/* Mobile nav updates */
.mobile-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid var(--ring);
    display: block;
    transition: var(--transition);
}

.mobile-nav a:hover {
    color: var(--brand);
    padding-left: 10px; /* Зсув тексту при наведенні */
}



/* Додати в кінець style.css */

/* Techniques Section */
.techniques {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .techniques {
    background: rgba(30, 41, 59, 0.5);
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.techniques-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card);
    border: 2px solid var(--border);
    color: var(--ink);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
    transform: translateY(-2px);
}

.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.technique-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.technique-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.technique-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); /* Верхня акцентна лінія */
}

.technique-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.technique-card h3 {
    color: var(--ink);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.technique-card h4 {
    color: var(--brand-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.technique-content p {
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.technique-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.step {
    background: var(--sidebar-bg);
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.4;
    border-left: 3px solid var(--brand); /* Акцентна лінія зліва */
}

.technique-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--insight-bg);
    color: var(--brand);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

.techniques-cta {
    background: var(--card);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.techniques-cta h3 {
    color: var(--brand-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.techniques-cta p {
    color: var(--muted);
    margin-bottom: 25px;
    font-size: 1.1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* User Menu in Header */
.user-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-avatar-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.user-avatar:hover {
    transform: scale(1.05);
    border-color: var(--brand-light);
}


/* приховати стару кнопку в хедері */
#themeToggle.theme-toggle:not(.universal-theme-btn) {
    display: none !important;
}

    /* Стилі для бейджів */
    .new-badge, .soon-badge, .premium-badge {
        position: absolute;
        top: -10px;
        right: 20px;
        padding: 6px 14px;
        border-radius: 30px;
        font-size: 12px;
        font-weight: bold;
        z-index: 10;
        display: flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .new-badge {
        background: linear-gradient(135deg, #00b4db, #0083b0);
        color: white;
        animation: pulseNew 2s infinite;
    }
    
    .soon-badge {
        background: linear-gradient(135deg, #f39c12, #e67e22);
        color: white;
        animation: pulseSoon 2s infinite;
    }
    
    .premium-badge {
        background: linear-gradient(135deg, #9b59b6, #8e44ad);
        color: white;
    }
    
    @keyframes pulseNew {
        0%, 100% {
            box-shadow: 0 2px 8px rgba(0, 180, 219, 0.4);
        }
        50% {
            box-shadow: 0 2px 15px rgba(0, 180, 219, 0.8);
        }
    }
    
    @keyframes pulseSoon {
        0%, 100% {
            box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
        }
        50% {
            box-shadow: 0 2px 15px rgba(243, 156, 18, 0.8);
        }
    }
    
    /* Стиль для картки "Скоро" */
    .feature-card.soon-card {
        position: relative;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .feature-card.soon-card::before {
        transform: translateY(-5px); /* Можна залишити тільки підняття */
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    } 
    
    .feature-card.soon-card:hover::before {
        left: 100%;
    }
    
    .feature-card.soon-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(243, 156, 18, 0.2);
        border-color: #f39c12;
    }
    
    .soon-btn {
        background: linear-gradient(135deg, #f39c12, #e67e22) !important;
        color: white !important;
        border: none !important;
    }
    
    .soon-btn i {
        margin-right: 6px;
    }
    
    /* Модальне вікно */
    .soon-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .soon-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .soon-modal-content {
        background: var(--card-bg, white);
        border-radius: 24px;
        padding: 40px;
        max-width: 500px;
        width: 90%;
        text-align: center;
        transform: scale(0.9);
        transition: transform 0.3s ease;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
        position: relative;
        overflow: hidden;
    }
    
    .soon-modal-overlay.active .soon-modal-content {
        transform: scale(1);
    }
    
    .soon-modal-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #f39c12, #e67e22);
    }
    
    .soon-modal-icon {
        font-size: 70px;
        margin-bottom: 20px;
        animation: bounce 1s ease infinite;
    }
    
    @keyframes bounce {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-10px);
        }
    }
    
    .soon-modal-content h2 {
        font-size: 32px;
        margin-bottom: 15px;
        color: #f39c12;
    }
    
    .soon-modal-content p {
        color: var(--text-secondary, #666);
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    .soon-progress {
        margin: 25px 0;
    }
    
    .progress-label {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
        font-size: 14px;
        color: var(--text-secondary, #666);
    }
    
    .progress-bar {
        background: #e0e0e0;
        border-radius: 20px;
        height: 10px;
        overflow: hidden;
    }
    
    .progress-fill {
        background: linear-gradient(90deg, #f39c12, #e67e22);
        height: 100%;
        border-radius: 20px;
        animation: fillProgress 1.5s ease-out;
    }
    
    @keyframes fillProgress {
        from {
            width: 0;
        }
        to {
            width: 65%;
        }
    }
    
    .soon-features {
        text-align: left;
        margin: 25px 0;
        padding: 20px;
        background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(230, 126, 34, 0.05));
        border-radius: 16px;
    }
    
    .soon-features h4 {
        margin-bottom: 15px;
        color: #f39c12;
        font-size: 18px;
    }
    
    .soon-features ul {
        list-style: none;
        padding: 0;
    }
    
    .soon-features li {
        padding: 8px 0;
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text-color, #333);
    }
    
    .soon-features li i {
        color: #f39c12;
        width: 24px;
        font-size: 18px;
    }
    
    .soon-actions {
        display: flex;
        gap: 15px;
        margin-top: 25px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-notify {
        background: linear-gradient(135deg, #00b4db, #0083b0);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.2s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .btn-notify:hover {
        transform: scale(1.05);
    }
    
    .btn-close-soon {
        background: transparent;
        border: 2px solid #f39c12;
        color: #f39c12;
        padding: 12px 24px;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .btn-close-soon:hover {
        background: #f39c12;
        color: white;
    }
    
    /* Тост-сповіщення */
    #toastContainer {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2100;
        display: flex;
        flex-direction: column;
        gap: 10px;
        pointer-events: none;
    }
    
    .toast {
        background: #27ae60;
        color: white;
        padding: 12px 24px;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 500;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        animation: slideUp 0.3s ease;
        pointer-events: auto;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    /* Адаптивність */
    @media (max-width: 768px) {
        .new-badge, .soon-badge, .premium-badge {
            top: -8px;
            right: 10px;
            padding: 4px 10px;
            font-size: 10px;
        }
        
        .soon-modal-content {
            padding: 25px;
        }
        
        .soon-modal-icon {
            font-size: 50px;
        }
        
        .soon-modal-content h2 {
            font-size: 24px;
        }
        
        .soon-actions {
            flex-direction: column;
        }
        
        .btn-notify, .btn-close-soon {
            width: 100%;
            justify-content: center;
        }
    }

    /* Стилі для карток - забезпечуємо повне відображення */
.feature-card {
    background: var(--card-bg, white);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    cursor: pointer;
    height: auto;  /* Важливо: автоматична висота */
    min-height: 480px;  /* Мінімальна висота */
    display: flex;
    flex-direction: column;
    overflow: visible;  /* Важливо: не обрізати вміст */
}

/* Стиль для картки "Скоро" */
.feature-card.soon-card {
    position: relative;
    overflow: visible;  /* Не обрізаємо вміст */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Контейнер для іконки */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: all 0.3s ease;
}

/* Список особливостей */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 25px;
    text-align: left;
    flex-grow: 1;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary, #666);
}

.feature-list li i {
    color: #27ae60;
    width: 20px;
    font-size: 14px;
    flex-shrink: 0;
}

/* Кнопка */
.feature-btn {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--primary-color, #2b6cb0);
    background: transparent;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    font-size: 14px;
}

.feature-btn.soon-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
}

/* Бейджі */
.soon-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
    animation: pulseSoon 2s infinite;
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .feature-card {
        padding: 20px 15px;
        min-height: 420px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .feature-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .feature-card p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .feature-list li {
        font-size: 12px;
        padding: 5px 0;
    }
    
    .feature-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .soon-badge {
        top: -8px;
        right: 10px;
        padding: 4px 10px;
        font-size: 10px;
    }
}

/* Для екранів середнього розміру */
@media (min-width: 769px) and (max-width: 1024px) {
    .feature-card {
        min-height: 460px;
        padding: 25px 20px;
    }
}