/* Zilly-Inspired Premium Light Theme */
:root {
  --bg-primary: #ffffff;
  /* Nền trắng sáng tinh tế */
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1f2937;
  /* Đen đậm chuẩn UI/UX */
  --text-secondary: #6b7280;
  /* Xám trung tính */
  --accent-primary: #059669;
  /* Xanh lá cây chuẩn Zilly */
  --accent-secondary: #047857;
  /* Xanh lá đậm khi Hover */
  --border-color: #e5e7eb;
  /* Viền xám nhe */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --font-main: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.light-theme {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.highlight {
  color: var(--accent-primary);
}

.btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-main);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-block {
  width: 100%;
  margin-top: 15px;
}

/* Header */
.app-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  color: var(--accent-primary);
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: #f3f4f6;
  border-radius: 12px;
  /* overflow: hidden;  -- Đã xóa để hiện dropdown tìm kiếm */
  border: 1px solid var(--border-color);
  width: 45%;
  transition: all 0.3s ease;
  padding-left: 15px;
}

.search-bar:focus-within {
  border-color: var(--accent-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.search-icon {
  color: #9ca3af;
  font-size: 0.9rem;
}

.search-bar input {
  background: transparent;
  border: none;
  padding: 12px 15px;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  font-size: 0.9rem;
}

.search-btn {
  background-color: var(--accent-primary);
  border: none;
  padding: 12px 25px;
  border-top-right-radius: 11px;
  border-bottom-right-radius: 11px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  white-space: nowrap;
}

.search-btn:hover {
  background-color: var(--accent-secondary);
  padding-left: 30px;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navigation */
.app-nav {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  position: relative;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 20px 30px;
  /* Space between items (Row, Column) */
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
}

/* Main Content */
.app-main {
  min-height: 70vh;
}

/* Auth Cards */
.auth-card {
  background: var(--bg-secondary);
  max-width: 400px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--accent-primary);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 10px 15px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  outline: none;
}

.form-group input:focus {
  border-color: var(--accent-primary);
}

.auth-links {
  margin-top: 15px;
  text-align: center;
  font-size: 0.85rem;
}

.auth-links a {
  color: var(--accent-primary);
  text-decoration: none;
}

/* Tool Section inside Main */
.tool-section {
  background: var(--bg-secondary);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.page-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

/* Home Grid */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.tool-card {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.tool-icon-wrapper {
  background-color: #ecfdf5;
  /* Nền xanh mint nhạt */
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.tool-card:hover .tool-icon-wrapper {
  background-color: var(--accent-primary);
}

.tool-icon {
  font-size: 1.8rem;
  color: var(--accent-primary);
  transition: var(--transition);
}

.tool-card:hover .tool-icon {
  color: #ffffff;
}

.tool-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.action-link {
  color: var(--accent-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  transition: gap 0.3s ease;
}

.tool-card:hover .action-link {
  gap: 12px;
}

/* Footer */
.app-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 50px;
  padding: 40px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-column h3 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: #f8fafc;
  color: #94a3b8;
  text-decoration: none;
  border: 1px solid #e2e8f0;
}

.social-icon-btn.facebook:hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(24, 119, 242, 0.3);
}

.social-icon-btn.youtube:hover {
  background: #ff0000;
  color: white;
  border-color: #ff0000;
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(255, 0, 0, 0.3);
}

.social-icon-btn.tiktok:hover {
  background: #000000;
  color: white;
  border-color: #000000;
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.social-icon-btn.telegram:hover {
  background: #0088cc;
  color: white;
  border-color: #0088cc;
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 136, 204, 0.3);
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: var(--transition);
}

.social-link-item:hover .social-icon-btn {
    transform: translateY(-3px);
}

.social-link-item:hover .social-icon-btn.facebook {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-link-item:hover .social-icon-btn.telegram {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

.social-link-item:hover .social-icon-btn.zalo {
    background: #0068ff;
    color: white;
    border-color: #0068ff;
}

.social-link-item:hover span:last-child {
    color: var(--accent-primary) !important;
    transform: translateX(5px);
}

.hover-primary {
  display: inline-block;
  transition: all 0.3s ease;
}

.hover-primary:hover {
  color: var(--accent-primary) !important;
  transform: translateX(5px);
}

.footer-desc {
  color: var(--text-secondary);
  margin-top: 15px;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* =========================================
   📱 RESPONSIVE MOBILE - PREMIUM EXPERIENCE
   ========================================= */

@media (max-width: 900px) {
  .search-bar {
    width: 40%;
  }
  .magazine-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 13px;
  }
  /* Header Layout */
  .app-header {
    padding: 12px 0;
  }
  
  .header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo {
    font-size: 1.6rem;
    order: 1;
  }
  
  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 2;
  }

  .mobile-menu-btn, .mobile-search-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    border: none;
    font-size: 1.1rem;
    transition: all 0.2s;
  }

  .mobile-menu-btn {
    background: #f3f4f6;
  }

  .mobile-menu-btn:active, .mobile-search-toggle-btn:active {
    background: #e5e7eb;
    transform: scale(0.95);
  }
  
  .auth-buttons {
    display: none; /* Moved to mobile menu if needed */
  }
  
  .search-bar {
    order: 3;
    width: 100%;
    margin-top: 16px;
    background: #f9fafb;
    border-radius: 14px;
    padding-left: 14px;
    display: none; /* Ẩn mặc định trên mobile */
  }

  .search-bar.show-mobile-search {
    display: flex !important;
    animation: slideDownSearch 0.2s ease-out forwards;
  }

  @keyframes slideDownSearch {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .search-bar input {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  
  .search-btn {
    padding: 12px 22px;
    border-radius: 0 14px 14px 0;
  }
  
  /* Default Desktop Nav Hidden */
  .app-nav {
    padding: 0;
    border: none;
  }
  
  .nav-links {
     display: none;
  }

  /* Global Mobile Nav via JS toggle */
  .nav-links.show-mobile-nav {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    padding: 24px 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-top: 1px solid var(--border-color);
    z-index: 1001;
    gap: 16px;
  }
  
  .nav-links.show-mobile-nav li {
    width: 100%;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 12px;
  }
  
  .nav-links.show-mobile-nav li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .nav-links.show-mobile-nav a {
    font-size: 1.15rem;
    font-weight: 500;
  }
  
  /* Cards & Grid for Mobile */
  .featured-post {
    display: none !important; /* Hide massive banner on mobile */
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tool-card {
    padding: 20px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .tool-icon-wrapper {
    width: 55px;
    height: 55px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .tool-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  
  .tool-card h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }
  
  .tool-card p {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  /* Footer Mobile */
  .app-footer {
    padding: 40px 0 25px;
    text-align: center;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .footer-column .logo, 
  .social-links {
    justify-content: center;
  }
  
  /* Tweak specific alignment for the first column */
  .footer-column:nth-child(1) {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px; /* Tighter bleed on ultra mobile */
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .footer-column:nth-child(1) {
    grid-column: span 1;
  }

  .post-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .post-list-item {
    flex-direction: column;
    gap: 12px;
  }
  
  .post-list-thumb {
    width: 100%;
  }

  .post-list-thumb-inner {
    width: 100%;
    height: 200px;
  }

  /* Make sure horizontal grid lists stack properly */
  .post-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Dropdown Navigation - Premium Look */
.nav-links li.has-dropdown {
  position: relative;
  padding-bottom: 5px;
  /* Bridge gap for hover */
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  min-width: 220px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  list-style: none;
  padding: 8px;
  display: block;
  /* Ensure it's not display:none */
}

.nav-links li.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  padding: 10px 15px;
  color: var(--text-primary);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
}

.dropdown-menu li a i {
  width: 16px;
  text-align: center;
  color: var(--text-secondary);
}

.dropdown-menu li a:hover {
  background-color: rgba(5, 150, 105, 0.05);
  color: var(--accent-primary);
  transform: translateX(5px);
}

.dropdown-menu li a:hover i {
  color: var(--accent-primary);
}

/* Magazine Layout */
.magazine-container {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 30px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .magazine-container {
    grid-template-columns: 1fr;
  }
}

.magazine-main {
  display: flex;
  flex-direction: column;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

@media (max-width: 600px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-thumb {
  width: 100%;
  height: 180px;
  border-radius: 4px;
  background: var(--border-color);
  margin-bottom: 12px;
  overflow: hidden;
}

/* Post List Items (Mới nhất / Blog) */
.post-list-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.post-list-thumb {
  flex-shrink: 0;
  display: block;
}

.post-list-thumb-inner {
  width: 250px;
  height: 155px;
  margin-bottom: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.post-list-thumb:hover .post-list-thumb-inner {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.post-list-content {
  flex: 1;
  min-width: 0;
}

.post-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s;
}

.post-title:hover {
  color: var(--accent-primary) !important;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
  margin-top: 15px;
  color: var(--text-primary);
}

/* Sidebar Widgets */
.sidebar-widget {
  margin-bottom: 35px;
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 400;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.widget-list {
  list-style: none;
}

.widget-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  align-items: flex-start;
}

.widget-thumb {
  width: 50px;
  height: 50px;
  background: var(--border-color);
  flex-shrink: 0;
}

.widget-info h4 {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
  transition: color 0.2s;
}

.widget-info a:hover h4 {
  color: var(--accent-primary);
}

/* Download Sidebar */
.download-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
}

.download-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.download-info h4 {
  margin: 0 0 3px 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.download-dev {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.download-rating {
  font-size: 0.65rem;
  color: #9ca3af;
}

.download-rating .fa-solid {
  color: #bfdbfe;
}

.free-tag {
  color: #10b981;
  font-size: 0.75rem;
  margin-left: 5px;
}

/* =========================================
   🌐 GLOBAL RESPONSIVE UTILITIES 
   ========================================= */

/* Ngăn bảng biểu bị tràn mép ngang trên Mobile */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Form controls trên Mobile: Ngăn iOS tự động zoom khi focus (yêu cầu font-size >= 16px) */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* =========================================
   📱 MOBILE NAVBAR DROPDOWN OVERRIDES
   ========================================= */
@media (max-width: 768px) {
  /* Disable desktop hover effects on mobile */
  .nav-links li.has-dropdown:hover .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: none;
  }

  .nav-links li.has-dropdown .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    background: transparent;
    box-shadow: none !important;
    border: none;
    border-left: 2px solid var(--border-color);
    margin-left: 10px;
    border-radius: 0;
    transition: all 0.3s ease;
    display: block; /* override potentially hidden dropdowns */
  }

  .nav-links li.has-dropdown.open .dropdown-menu,
  .nav-links li.has-dropdown.open:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 500px;
    padding: 10px 0 0 10px;
    margin-top: 5px;
  }

  .nav-links li.has-dropdown.open > a .fa-chevron-down {
    transform: rotate(180deg);
  }

  .nav-links a .fa-chevron-down {
    transition: transform 0.3s ease;
  }
}

/* --- PREMIUM MOBILE NAVIGATION & OVERLAY --- */

/* App Header Glassmorphism (Global) */
.app-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.85);
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: all 0.3s;
}

/* Hide Mobile Components by default on Desktop */
.mobile-overlay, .floating-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    /* FLOATING BOTTOM NAV (MOBILE) */
    .floating-bottom-nav {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 16px;
        right: 16px;
        height: 65px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
        z-index: 1040;
    }

    .bottom-nav-container {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 100%;
        padding: 0 10px;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        text-decoration: none !important;
        font-size: 0.65rem;
        font-weight: 600;
        gap: 4px;
        width: 60px;
        transition: all 0.2s;
    }

    .bottom-nav-item i { font-size: 1.2rem; }
    .bottom-nav-item.active { color: var(--accent-primary); }
    .bottom-nav-item.active i { transform: translateY(-2px); }

    .bottom-nav-item.center-item { position: relative; top: -20px; }
    .center-circle {
        width: 52px; height: 52px;
        background: var(--accent-primary);
        color: white;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.2rem; border: 4px solid #ffffff;
    }

    /* MOBILE OVERLAY MENU */
    .mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(4px);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-container {
        position: absolute;
        left: 0; top: 0; bottom: 0;
        width: 280px;
        background: white;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
    }

    .mobile-overlay.active .mobile-menu-container { transform: translateX(0); }

    .mobile-menu-header {
        padding: 20px;
        display: flex; justify-content: space-between; align-items: center;
        border-bottom: 1px solid #f1f5f9;
    }

    .menu-close-btn {
        background: #f1f5f9; border: none;
        width: 32px; height: 32px; border-radius: 8px;
        color: #64748b;
    }

    .mobile-menu-body { padding: 20px; overflow-y: auto; }
    .mobile-nav-list { list-style: none; padding: 0; margin: 0; }
    .mobile-nav-list li { margin-bottom: 8px; }

    .mobile-nav-list a, .logout-link {
        display: flex; align-items: center; gap: 12px;
        padding: 12px 16px; color: #475569;
        text-decoration: none !important;
        font-weight: 500; border-radius: 12px;
        transition: all 0.2s; font-size: 0.95rem;
    }

    .mobile-nav-list a.active {
        background: #f0fdf4; color: var(--accent-primary); font-weight: 600;
    }

    .menu-icon { width: 20px; text-align: center; font-size: 1.1rem; opacity: 0.8; }
    .menu-divider { height: 1px; background: #f1f5f9; margin: 15px 0; }

    .logout-link {
        width: 100%; background: transparent; border: none;
        color: #ef4444 !important;
    }

    body { padding-bottom: 90px; }
}