/* ============================================================================
   LaLaGSM.com - Professional Modern Styles v2.0
   Clean, accessible, and performant
   ============================================================================ */

/* ============================================================================
   VARIABLES
   ============================================================================ */

:root {
  /* Colors - Clean White Theme */
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6c757d;
  --border: #dee2e6;
  
  /* Brand colors */
  --primary: #667eea;
  --primary-dark: #5568d3;
  --secondary: #764ba2;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  
  /* UI */
  --font: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
  
  /* Header specific */
  --nav-height: 80px;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --nav-border: rgba(0, 0, 0, 0.05);
  
  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
body.light-theme {
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6c757d;
  --border: #dee2e6;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Dark Theme - True Black OLED Style */
body.dark-theme {
  --bg: #000000;
  --bg-card: #05070a;
  --bg-elevated: #0d1117;
  --text: #ffffff;
  --text-muted: #8b949e;
  --border: rgba(255, 255, 255, 0.08); /* Minimalist border */
  --shadow: 0 10px 50px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.95);
  --nav-bg: rgba(0, 0, 0, 0.95);
  --nav-border: rgba(255, 255, 255, 0.05);
  --primary: #818cf8;
  --primary-dark: #6366f1;
}

/* Theme transition */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

* {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ============================================================================
   RESET
   ============================================================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ============================================================================
   AIRPODS-STYLE HERO CAROUSEL
   ============================================================================ */

:root {
  --item1-transform: translateX(-100%) translateY(-5%) scale(1.5);
  --item1-filter: blur(30px);
  --item1-zIndex: 11;
  --item1-opacity: 0;

  --item2-transform: translateX(0);
  --item2-filter: blur(0px);
  --item2-zIndex: 10;
  --item2-opacity: 1;

  --item3-transform: translate(50%,10%) scale(0.8);
  --item3-filter: blur(10px);
  --item3-zIndex: 9;
  --item3-opacity: 1;

  --item4-transform: translate(90%,20%) scale(0.5);
  --item4-filter: blur(30px);
  --item4-zIndex: 8;
  --item4-opacity: 1;
  
  --item5-transform: translate(120%,30%) scale(0.3);
  --item5-filter: blur(40px);
  --item5-zIndex: 7;
  --item5-opacity: 0;
}

.carousel {
  position: relative;
  height: 400px;
  min-height: 400px;
  overflow: visible;
  margin: 0;
  padding: 1.5rem 0;
  background: #F4F4F4;
  transition: background 0.4s ease;
  display: block;
  width: 100%;
  z-index: 1;
}

body.dark-theme .carousel {
  background: #000000;
}

.carousel .list {
  position: absolute;
  width: 1140px;
  max-width: 90%;
  height: 85%;
  min-height: 320px;
  left: 50%;
  transform: translateX(-50%);
  top: 10%;
}

.carousel .list .item {
  position: absolute;
  left: 0%;
  width: 70%;
  height: 100%;
  font-size: 15px;
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel .list .item:nth-child(n + 6) {
  opacity: 0;
}

.carousel .list .item:nth-child(2) {
  z-index: 10;
  transform: translateX(0);
  opacity: 1;
  filter: blur(0);
  left: 0%;
}

.carousel .list .item img {
  width: 50%;
  height: auto;
  max-height: 80%;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  object-fit: contain;
}

.carousel .list .item .introduce {
  opacity: 0;
  pointer-events: none;
}

.carousel .list .item:nth-child(2) .introduce {
  opacity: 1;
  pointer-events: auto;
  width: 400px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  color: #333;
  transition: color 0.4s ease;
}

body.dark-theme .carousel .list .item:nth-child(2) .introduce {
  color: #ffffff;
}

.carousel .list .item .introduce .title {
  font-size: 2em;
  font-weight: 500;
  line-height: 1em;
}

.carousel .list .item .introduce .topic {
  font-size: 4em;
  font-weight: 500;
}

.carousel .list .item .introduce .des {
  font-size: small;
  color: #5559;
}

body.dark-theme .carousel .list .item .introduce .des {
  color: #8e9aaf;
}

.carousel .list .item .introduce .seeMore {
  font-family: inherit;
  margin-top: 1.2em;
  padding: 5px 0;
  border: none;
  border-bottom: 1px solid #555;
  background-color: transparent;
  font-weight: bold;
  letter-spacing: 3px;
  transition: background 0.5s;
  cursor: pointer;
}

.carousel .list .item .introduce .seeMore:hover {
  background: #eee;
}

body.dark-theme .carousel .list .item .introduce .seeMore:hover {
  background: rgba(255, 255, 255, 0.1);
}

.carousel .list .item:nth-child(1) {
  transform: var(--item1-transform);
  filter: var(--item1-filter);
  z-index: var(--item1-zIndex);
  opacity: var(--item1-opacity);
  pointer-events: none;
}

.carousel .list .item:nth-child(3) {
  transform: var(--item3-transform);
  filter: var(--item3-filter);
  z-index: var(--item3-zIndex);
}

.carousel .list .item:nth-child(4) {
  transform: var(--item4-transform);
  filter: var(--item4-filter);
  z-index: var(--item4-zIndex);
}

.carousel .list .item:nth-child(5) {
  transform: var(--item5-transform);
  filter: var(--item5-filter);
  opacity: var(--item5-opacity);
  pointer-events: none;
}

/* Animation for text content */
.carousel .list .item:nth-child(2) .introduce .title,
.carousel .list .item:nth-child(2) .introduce .topic,
.carousel .list .item:nth-child(2) .introduce .des,
.carousel .list .item:nth-child(2) .introduce .seeMore {
  opacity: 0;
  animation: showContent 0.5s 0.3s ease-in-out 1 forwards;
}

@keyframes showContent {
  from {
    transform: translateY(-30px);
    filter: blur(10px);
  }
  to {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0px);
  }
}

.carousel .list .item:nth-child(2) .introduce .topic {
  animation-delay: 0.5s;
}

.carousel .list .item:nth-child(2) .introduce .des {
  animation-delay: 0.7s;
}

.carousel .list .item:nth-child(2) .introduce .seeMore {
  animation-delay: 0.9s;
}

/* Next click animation */
.carousel.next .item:nth-child(1) {
  animation: transformFromPosition2 0.5s ease-in-out 1 forwards;
}

@keyframes transformFromPosition2 {
  from {
    transform: var(--item2-transform);
    filter: var(--item2-filter);
    opacity: var(--item2-opacity);
  }
}

.carousel.next .item:nth-child(2) {
  animation: transformFromPosition3 0.7s ease-in-out 1 forwards;
}

@keyframes transformFromPosition3 {
  from {
    transform: var(--item3-transform);
    filter: var(--item3-filter);
    opacity: var(--item3-opacity);
  }
}

.carousel.next .item:nth-child(3) {
  animation: transformFromPosition4 0.9s ease-in-out 1 forwards;
}

@keyframes transformFromPosition4 {
  from {
    transform: var(--item4-transform);
    filter: var(--item4-filter);
    opacity: var(--item4-opacity);
  }
}

.carousel.next .item:nth-child(4) {
  animation: transformFromPosition5 1.1s ease-in-out 1 forwards;
}

@keyframes transformFromPosition5 {
  from {
    transform: var(--item5-transform);
    filter: var(--item5-filter);
    opacity: var(--item5-opacity);
  }
}

/* Previous click animation */
.carousel.prev .list .item:nth-child(5) {
  animation: transformFromPosition4 0.5s ease-in-out 1 forwards;
}

.carousel.prev .list .item:nth-child(4) {
  animation: transformFromPosition3 0.7s ease-in-out 1 forwards;
}

.carousel.prev .list .item:nth-child(3) {
  animation: transformFromPosition2 0.9s ease-in-out 1 forwards;
}

.carousel.prev .list .item:nth-child(2) {
  animation: transformFromPosition1 1.1s ease-in-out 1 forwards;
}

@keyframes transformFromPosition1 {
  from {
    transform: var(--item1-transform);
    filter: var(--item1-filter);
    opacity: var(--item1-opacity);        
  }
}

/* Detail view (expanded) */
.carousel .list .item .detail {
  opacity: 0;
  pointer-events: none;
}

.carousel.showDetail .list .item:nth-child(3),
.carousel.showDetail .list .item:nth-child(4) {
  left: 100%;
  opacity: 0;
  pointer-events: none;
}

.carousel.showDetail .list .item:nth-child(2) {
  width: 100%;
}

.carousel.showDetail .list .item:nth-child(2) .introduce {
  opacity: 0;
  pointer-events: none;
}

.carousel.showDetail .list .item:nth-child(2) img {
  right: 50%;
}

.carousel.showDetail .list .item:nth-child(2) .detail {
  opacity: 1;
  width: 50%;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  pointer-events: auto;
}

.carousel.showDetail .list .item:nth-child(2) .detail .title {
  font-size: 4em;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications {
  display: flex;
  gap: 10px;
  width: 100%;
  border-top: 1px solid #5553;
  margin-top: 20px;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications div {
  width: 90px;
  text-align: center;
  flex-shrink: 0;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications div p:nth-child(1) {
  font-weight: bold;
}

.carousel.carousel.showDetail .list .item:nth-child(2) .checkout button {
  font-family: inherit;
  background-color: transparent;
  border: 1px solid #5555;
  margin-left: 5px;
  padding: 5px 10px;
  letter-spacing: 2px;
  font-weight: 500;
  cursor: pointer;
}

.carousel.carousel.showDetail .list .item:nth-child(2) .checkout button:nth-child(2) {
  background-color: #693EFF;
  color: #eee;
}

.carousel.showDetail .list .item:nth-child(2) .detail .title,
.carousel.showDetail .list .item:nth-child(2) .detail .des,
.carousel.showDetail .list .item:nth-child(2) .detail .specifications,
.carousel.showDetail .list .item:nth-child(2) .detail .checkout {
  opacity: 0;
  animation: showContent 0.5s 1s ease-in-out 1 forwards;
}

.carousel.showDetail .list .item:nth-child(2) .detail .des {
  animation-delay: 1.2s;
}

.carousel.showDetail .list .item:nth-child(2) .detail .specifications {
  animation-delay: 1.4s;
}

.carousel.showDetail .list .item:nth-child(2) .detail .checkout {
  animation-delay: 1.6s;
}

.arrows {
  position: absolute;
  bottom: 10px;
  width: 1140px;
  max-width: 90%;
  display: flex;
  justify-content: space-between;
  left: 50%;
  transform: translateX(-50%);
}

#prev,
#next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: monospace;
  border: 1px solid #5555;
  font-size: large;
  bottom: 20%;
  left: 10%;
  cursor: pointer;
  background: transparent;
  transition: all 0.3s;
}

#next {
  left: unset;
  right: 10%;
}

#prev:hover,
#next:hover {
  background: #eee;
  transform: scale(1.1);
}

#back {
  position: absolute;
  z-index: 100;
  bottom: 0%;
  left: 50%;
  transform: translateX(-50%);
  border: none;
  border-bottom: 1px solid #555;
  font-family: inherit;
  font-weight: bold;
  letter-spacing: 3px;
  background-color: transparent;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.5s;
  cursor: pointer;
}

.carousel.showDetail #back {
  opacity: 1;
}

.carousel.showDetail #prev,
.carousel.showDetail #next {
  opacity: 0;
  pointer-events: none;
}

.carousel::before {
  width: 500px;
  height: 300px;
  content: '';
  background-image: linear-gradient(70deg, #DC422A, blue);
  position: absolute;
  z-index: -1;
  border-radius: 20% 30% 80% 10%;
  filter: blur(150px);
  top: 50%;
  left: 50%;
  transform: translate(-10%, -50%);
  transition: 1s;
}

.carousel.showDetail::before {
  transform: translate(-100%, -50%) rotate(90deg);
  filter: blur(130px);
}

@media screen and (max-width: 991px) {
  .carousel .list .item {
    width: 90%;
  }
  .carousel.showDetail .list .item:nth-child(2) .detail .specifications {
    overflow: auto;
  }
  .carousel.showDetail .list .item:nth-child(2) .detail .title {
    font-size: 2em;
  }
}

@media screen and (max-width: 767px) {
  .carousel {
    height: 380px;
    min-height: 380px;
    padding: 1rem 0;
  }
  
  .carousel .list .item {
    width: 100%;
    font-size: 11px;
  }
  
  .carousel .list {
    height: 90%;
    top: 5%;
  }
  
  .carousel .list .item:nth-child(2) .introduce {
    width: 60%;
    padding-right: 1rem;
  }
  
  .carousel .list .item:nth-child(2) .introduce .topic {
    font-size: 2.5em;
    margin-bottom: 0.5rem;
  }
  
  .carousel .list .item:nth-child(2) .introduce .title {
    font-size: 1.2em;
    margin-bottom: 0.3rem;
  }
  
  .carousel .list .item:nth-child(2) .introduce .des {
    font-size: 0.85em;
    line-height: 1.4;
  }
  
  .carousel .list .item img {
    width: 45%;
    max-height: 70%;
  }
  
  /* Hide side items on mobile */
  .carousel .list .item:nth-child(1),
  .carousel .list .item:nth-child(3),
  .carousel .list .item:nth-child(4),
  .carousel .list .item:nth-child(5) {
    opacity: 0 !important;
    pointer-events: none;
  }
  
  /* Arrows positioning for mobile */
  #prev, #next {
    width: 35px;
    height: 35px;
    font-size: medium;
    bottom: 15%;
  }
  
  #prev {
    left: 5%;
  }
  
  #next {
    right: 5%;
  }
  
  /* Progress dots for mobile */
  .carousel-progress {
    bottom: 5px !important;
  }
  
  .carousel.showDetail .list .item:nth-child(2) .detail {
    backdrop-filter: blur(10px);
    font-size: small;
    padding: 1rem;
  }
  
  .carousel .list .item:nth-child(2) .introduce .des,
  .carousel.showDetail .list .item:nth-child(2) .detail .des {
    height: 100px;
    overflow: auto;
  }
  
  .carousel.showDetail .list .item:nth-child(2) .checkout {
    display: flex;
    width: max-content;
    float: right;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .carousel.showDetail .list .item:nth-child(2) .checkout button {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}

/* ============================================================================
   NAVIGATION - PREMIUM DESIGN
   ============================================================================ */

.navbar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    height: var(--nav-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
    background: var(--nav-bg);
}

body.dark-theme .navbar {
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}

body.dark-theme .navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.brand:hover {
    transform: scale(1.02);
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.03em;
    transition: var(--transition);
}

body.dark-theme .brand-logo {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(129, 140, 248, 0.3);
}

.brand-gsm {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.premium-nav-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.8rem !important;
    flex: 1 !important;
    justify-content: center !important;
    list-style: none !important;
}

@media (max-width: 800px) {
    .premium-nav-links {
        display: none !important;
    }
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none !important;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 40%;
}

.nav-link.active {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
}

.nav-menu {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.nav-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white !important;
    padding: 0.75rem 1.6rem;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

body.dark-theme .nav-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.35);
    filter: brightness(1.1);
}


.nav-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-btn:hover .nav-icon {
    transform: translateX(4px);
}

.nav-divider {
    color: var(--border);
    margin: 0 0.5rem;
    font-weight: 300;
}

/* @media (max-width: 992px) {
  .main-nav {
    display: none !important;
  }
} */

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  border-color: var(--border);
  color: var(--text);
}

.btn-sm {
  padding: 0.4rem 0.875rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* ============================================================================
   HERO
   ============================================================================ */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-bar {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  background: white;
  font-size: 1rem;
  color: #333;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
}

.search-suggestion {
  padding: 0.875rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.search-suggestion:last-child {
  border-bottom: none;
}

.search-suggestion:hover {
  background: #f8f9fa;
}

.suggestion-icon {
  font-size: 1.125rem;
}

.suggestion-text {
  flex: 1;
  font-weight: 500;
  color: #333;
}

.suggestion-type {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
}

.quick-filters {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.quick-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  cursor: pointer;
  user-select: none;
}

.quick-filter input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* PWA Install Banner */
.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: slideUp 0.3s ease;
}

.install-banner p {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ============================================================================
   CATEGORY TABS
   ============================================================================ */

.category-tabs-section {
  background: var(--bg);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(26, 31, 46, 0.95);
}

.category-tabs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.category-tabs::-webkit-scrollbar {
  height: 4px;
}

.category-tabs::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.category-tab {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.3s;
}

.category-tab:hover {
  background: var(--bg-elevated);
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-2px);
}

.category-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* ============================================================================
   SECTIONS
   ============================================================================ */

.featured-section,
.filters-section,
.tools-section {
  padding: 3rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.featured-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.featured-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.featured-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.featured-body {
  padding: 1.5rem;
}

.featured-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.featured-body p {
  color: var(--text-muted);
}

/* ============================================================================
   FILTERS
   ============================================================================ */

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
}

/* ============================================================================
   TOOLS GRID
   ============================================================================ */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Top Downloads Section */
.top-downloads-banner {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 20px;
  padding: 2rem;
  margin: 1.5rem 0;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-downloads-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  animation: shine-rotate 20s linear infinite;
}

@keyframes shine-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.top-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 0 10px;
}

.top-banner-title {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.top-banner-title span {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-tools-scroll-container {
  overflow: hidden;
  position: relative;
  z-index: 2;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.top-tools-scroll {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scrollBanner 45s linear infinite;
}

.top-tools-scroll:hover {
  animation-play-state: paused;
}

@keyframes scrollBanner {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.75rem)); } /* -50% shifts by exactly one half consisting of all cards + half the gap */
}

.top-tool-item {
  width: 290px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  color: var(--text);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.top-tool-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
  background: white;
}

.top-tool-icon {
  width: 65px;
  height: 65px;
  border-radius: 12px;
  object-fit: cover;
  background: white;
  padding: 4px;
  border: 1px solid var(--border);
}

.top-tool-info {
  flex: 1;
}

.top-tool-info h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.top-tool-info p {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.top-tool-stats {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.top-tool-stats .stat-down {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 6px;
}

.top-tool-stats .stat-tag {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success);
  padding: 3px 8px;
  border-radius: 6px;
}

@media (max-width: 1024px) {

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  
  .tools-section {
    padding: 2rem 0 !important;
  }
  
  section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    width: 100% !important;
  }
  
  .card {
    border-radius: 10px;
    margin: 0 !important;
    width: 100% !important;
  }
  
  .card-body {
    padding: 0.65rem;
  }
  
  .card-body h3 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
  }
  
  .card-body p {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  
  .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.45rem;
  }
  
  .section-title {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
    padding-left: 0 !important;
  }
  
  /* Compact Footer for Mobile */
  .footer {
    padding: 1rem 0 0.75rem !important;
    margin-bottom: 5px !important; /* Minimal space, body padding handles mobile nav */
  }
  
  .footer-content {
    gap: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .footer-section {
    padding: 0.5rem 0;
  }
  
  .footer-brand h3 {
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .footer-brand p {
    font-size: 0.75rem !important;
  }
  
  .footer-section h4 {
    font-size: 0.85rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  .footer-links {
    gap: 0.4rem !important;
  }
  
  .footer-links a {
    font-size: 0.75rem !important;
  }
  
  .footer-bottom {
    padding-top: 0.75rem !important;
    font-size: 0.75rem;
  }
  
  .footer-bottom p {
    margin: 0.15rem 0 !important;
  }
}

@media (max-width: 360px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 24px 48px rgba(102, 126, 234, 0.25), 
              0 8px 16px rgba(0, 0, 0, 0.15),
              0 0 0 2px var(--primary);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card:active {
  transform: translateY(-10px) scale(1.02);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.card:hover img {
  transform: scale(1.08);
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
}

.card-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 1rem;
  display: flex;
  align-items: flex-end;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
  background: var(--bg-card);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.card-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  color: var(--text);
  flex: 1;
  word-break: break-word;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.card:hover .card-name {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.card:hover .badge {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
  transform: scale(1.05);
}

.card-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.card-summary {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.badge-dual,
.badge-versions {
  display: inline-block;
  background: linear-gradient(135deg, var(--info), #06b6d4);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.card:hover .badge-dual,
.card:hover .badge-versions {
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.5);
  transform: scale(1.05);
}

/* ============================================================================
   PAGINATION
   ============================================================================ */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2.5rem 0;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.page-btn:hover {
  background: var(--bg-elevated);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.page-dots {
  color: var(--text-muted);
  font-weight: 700;
  padding: 0 0.5rem;
}

/* ============================================================================
   TOOL DETAIL
   ============================================================================ */

.tool-detail-page {
  padding: 3rem 0;
}

.tool-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.tool-cover {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tool-info h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tool-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tool-meta .badge {
  padding: 0.375rem 0.75rem;
}

.tool-summary {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.tool-highlights {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-highlight {
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
}

.tool-downloads {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.tool-downloads .btn {
  margin-right: 0.75rem;
  margin-bottom: 0.75rem;
}

.tool-versions {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
}

.tool-versions h3 {
  margin-bottom: 1.5rem;
}

.version-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.version-info strong {
  display: block;
  margin-bottom: 0.25rem;
}

.version-downloads {
  display: flex;
  gap: 0.5rem;
}

/* Related Tools Section */
.related-tools {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}

.related-tools h3 {
  margin-bottom: 1.5rem;
}

.related-tools #relatedToolsList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.related-tool-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.related-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.related-tool-card img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

.related-tool-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.related-tool-title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.related-tool-meta {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.related-tool-stats {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ============================================================================
   ADMIN
   ============================================================================ */

.admin-layout {
  display: flex;
  min-height: 100vh;
  /* Stitch AI Light Theme Background */
  background-color: #f5f8f8;
  background-image: radial-gradient(circle at 0% 0%, rgba(13, 185, 242, 0.15) 0%, transparent 25%),
                    radial-gradient(circle at 100% 100%, rgba(13, 185, 242, 0.1) 0%, transparent 25%);
  background-attachment: fixed;
  color: #1a1a1a;
  --primary: #0db9f2; /* Override primary for admin only */
  --admin-glass-bg: rgba(255, 255, 255, 0.65);
  --admin-glass-border: rgba(255, 255, 255, 0.5);
}

.admin-sidebar {
  width: 280px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  box-shadow: 4px 0 24px rgba(0,0,0,0.02);
}

.admin-sidebar-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.admin-sidebar-header .logo-box {
  background: var(--primary);
  width: 40px; 
  height: 40px; 
  border-radius: 12px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: bold; 
  color: white;
  box-shadow: 0 4px 15px rgba(13, 185, 242, 0.3);
}

.admin-main {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
}

.admin-header {
  height: 80px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.admin-content {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.admin-page {
  padding: 0;
  flex: 1;
}

.admin-page h1 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: #101e22;
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  border-left-color: var(--warning);
  color: var(--warning);
}

.alert-success {
  background: rgba(40, 167, 69, 0.1) !important;
  color: #1b7a32 !important;
  border-left-color: var(--success);
}

.alert-info {
  background: rgba(23, 162, 184, 0.1);
  border-left-color: var(--info);
  color: var(--info);
}

.admin-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  margin: 0;
  border: none;
  overflow-y: auto;
  flex: 1;
}

.admin-tabs::-webkit-scrollbar {
  width: 4px;
}

.admin-tabs::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
}

.admin-tab {
  background: transparent;
  border: none;
  padding: 0.8rem 1rem;
  cursor: pointer;
  color: #475569;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.admin-tab:hover {
  color: #0f172a;
  background: rgba(255,255,255,0.6);
}

.admin-tab.active {
  color: white;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(13, 185, 242, 0.3);
  font-weight: 600;
}

.admin-pane {
  min-height: 400px;
}

.admin-card {
  background: var(--admin-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--admin-glass-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s;
}

.admin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(13, 185, 242, 0.1);
  border-color: rgba(255,255,255,0.8);
}

.admin-toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
  background: var(--admin-glass-bg);
  backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--admin-glass-border);
}

.admin-toolbar .search-input {
  flex: 1;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.2rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.admin-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.admin-card img {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.admin-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-card-title {
  font-weight: 600;
  font-size: 1.125rem;
}

.admin-card-meta,
.admin-card-stats {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.admin-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ============================================================================
   FORMS
   ============================================================================ */

.tool-form,
.login-form {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
}

.import-textarea {
  width: 100%;
  min-height: 250px;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  resize: vertical;
}

/* ============================================================================
   IMPORT PREVIEW
   ============================================================================ */

.import-preview {
  margin: 2rem 0;
}

.import-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-box {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.stat-new { border-left: 4px solid var(--success); }
.stat-update { border-left: 4px solid var(--info); }
.stat-old { border-left: 4px solid var(--warning); }
.stat-dup { border-left: 4px solid var(--danger); }
.stat-error { border-left: 4px solid var(--danger); }

.import-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.import-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 1rem;
}

.import-card img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.import-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.import-card-title {
  font-weight: 600;
}

.import-card-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.import-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  margin-top: 0.5rem;
}

/* ============================================================================
   LOGIN
   ============================================================================ */

.login-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.login-container {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
}

.login-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-hint {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 2rem 0 1.5rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-section h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0.25rem 0;
}

@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .footer-links {
    align-items: center;
    gap: 0.5rem;
  }
  
  .footer-section h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .footer-brand h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }
  
  .footer-bottom {
    padding-top: 1rem;
  }
}

/* ============================================================================
   ANALYTICS
   ============================================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.top-tools {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.top-tool-item {
  display: flex;
  justify-content: space-between;
  padding: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.top-tool-item:last-child {
  border-bottom: none;
}

.tool-name {
  font-weight: 500;
}

.tool-downloads {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============================================================================
   TRUST BADGES & SECURITY
   ============================================================================ */

.trust-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.trust-badge.verified {
  border-color: var(--success);
  background: rgba(40, 167, 69, 0.1);
  color: var(--success);
}

.trust-badge.safe {
  border-color: var(--info);
  background: rgba(23, 162, 184, 0.1);
  color: var(--info);
}

.trust-badge.popular {
  border-color: var(--warning);
  background: rgba(255, 193, 7, 0.1);
  color: var(--warning);
}

.security-info {
  background: var(--bg-elevated);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
}

.security-item {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.security-item:last-child {
  margin-bottom: 0;
}

.security-item strong {
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.security-item code {
  background: var(--bg-card);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.8125rem;
}

/* ============================================================================
   SOCIAL SHARE BUTTONS
   ============================================================================ */

.share-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
}

.share-label {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.3s;
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.share-btn.whatsapp {
  background: #25D366;
  color: white;
}

.share-btn.whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
}

.share-btn.facebook {
  background: #1877F2;
  color: white;
}

.share-btn.facebook:hover {
  background: #0D65D9;
  transform: translateY(-2px);
}

.share-btn.telegram {
  background: #0088cc;
  color: white;
}

.share-btn.telegram:hover {
  background: #006699;
  transform: translateY(-2px);
}

.share-btn.twitter {
  background: #1DA1F2;
  color: white;
}

.share-btn.twitter:hover {
  background: #0D8BD9;
  transform: translateY(-2px);
}

.share-btn.copy {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.share-btn.copy:hover {
  background: var(--bg-card);
  border-color: var(--primary);
}

/* ============================================================================
   BADGES & LABELS
   ============================================================================ */

.badge-trending {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.card:hover .badge-trending {
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.6);
  transform: scale(1.05);
}

.badge-new {
  background: linear-gradient(135deg, var(--success), #10b981);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.card:hover .badge-new {
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.6);
  transform: scale(1.05);
}

.badge-popular {
  background: linear-gradient(135deg, var(--warning), #fbbf24);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.card:hover .badge-popular {
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.6);
  transform: scale(1.05);
}

.badge-rising {
  background: linear-gradient(135deg, var(--info), #06b6d4);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.hint {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
}

.error {
  color: var(--danger);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* ============================================================================
   TUTORIAL & SCREENSHOTS
   ============================================================================ */

.tutorial-section,
.screenshots-section,
.changelog-section {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}

.tutorial-section h3,
.screenshots-section h3,
.changelog-section h3 {
  margin-bottom: 1.5rem;
}

.tutorial-embed {
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.tutorial-embed iframe {
  width: 100%;
  height: 400px;
  display: block;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.screenshot-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid var(--border);
}

.screenshot-thumb:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.changelog-content {
  line-height: 1.8;
  color: var(--text-muted);
}

/* Lightbox for screenshots */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--danger);
}

/* Star Rating */
.rating-section {
  background: var(--bg-elevated);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
}

.rating-stars {
  display: flex;
  gap: 0.25rem;
}

.star {
  font-size: 1.75rem;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.star:hover {
  color: #ffc107;
  transform: scale(1.1);
}

.star.filled {
  color: #ffc107;
}

.rating-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.rating-count {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
}

/* ============================================================================
   NEW TOOLS BANNER
   ============================================================================ */

.new-tools-banner {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.875rem 0;
  cursor: pointer;
  transition: all 0.3s;
}

.new-tools-banner:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.new-tools-banner .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.banner-icon {
  font-size: 1.5rem;
}

.banner-text {
  flex: 1;
  font-weight: 600;
  font-size: 0.9375rem;
}

.banner-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.banner-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   LOADING SKELETON
   ============================================================================ */

.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
  position: relative;
}

.skeleton-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ============================================================================
   WEEKLY TOP TOOLS
   ============================================================================ */

.weekly-top-section {
  padding: 3rem 0;
  background: var(--bg);
}

.weekly-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.weekly-top-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.weekly-top-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.weekly-rank {
  position: absolute;
  top: -10px;
  left: -10px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.weekly-top-card img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.weekly-top-info {
  flex: 1;
}

.weekly-top-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.weekly-top-meta {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
}

.weekly-top-downloads {
  color: #ff6b6b;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ============================================================================
   MOBILE BOTTOM NAVIGATION
   ============================================================================ */

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: none;
  z-index: 1000;
  padding: 0.75rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 8px;
}

.mobile-nav-item.active {
  color: var(--primary);
  font-weight: 600;
}

.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
}

.mobile-nav-item:hover {
  color: var(--primary);
  background: rgba(102, 126, 234, 0.08);
}

.mobile-nav-item:active {
  transform: scale(0.95);
}

.mobile-nav-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.mobile-nav-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 60px;
  }
  
  body {
    padding-bottom: 75px;
  }
}

/* ============================================================================
   MODAL / POPUP
   ============================================================================ */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  line-height: 1;
}

.modal-close:hover {
  background: var(--bg-elevated);
  color: var(--danger);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
  .modal {
    padding: 1rem;
  }
  
  .modal-content {
    max-width: 100%;
  }
  
  .modal-header {
    padding: 1rem 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .tool-header {
    grid-template-columns: 1fr;
  }
  
  .search-bar {
    flex-direction: column;
  }
  
  .filters {
    flex-direction: column;
  }
  
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .import-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================================
   ADVANCED FEATURES - NEW STYLES
   ============================================================================ */

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 999;
  transition: var(--transition);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(180deg);
  background: var(--primary-dark);
}

/* Comments Section */
.comments-section {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comment-form {
  margin-bottom: 2rem;
}

.comment-form textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  min-height: 100px;
  resize: vertical;
}

.comment-item {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 600;
  color: var(--primary);
}

.comment-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.comment-content {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.comment-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.comment-actions button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}

.comment-actions button:hover {
  color: var(--primary);
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.blog-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-excerpt {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 2rem auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-elevated);
}

.faq-question.active {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.faq-answer.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Report System */
.report-button {
  position: fixed;
  bottom: 80px;
  right: 20px;
  padding: 0.75rem 1.5rem;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 999;
  transition: var(--transition);
}

.report-button:hover {
  background: #c82333;
  transform: scale(1.05);
}

.report-modal .modal-content {
  max-width: 500px;
}

/* Request Tool Form */
.request-form {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 2rem auto;
  max-width: 600px;
}

.request-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.request-item {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.request-content h3 {
  margin-bottom: 0.5rem;
}

.request-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.vote-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.vote-button:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.vote-count {
  font-weight: 700;
  font-size: 1.25rem;
}

/* Download History */
.history-section {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 2rem 0;
}

.history-list {
  display: grid;
  gap: 1rem;
}

.history-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.history-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.history-info h4 {
  margin-bottom: 0.25rem;
}

.history-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Favorites */
.favorite-button {
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.favorite-button.active {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.favorite-button:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* Compare Tools */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 1rem;
  z-index: 998;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.compare-bar.show {
  display: flex;
}

.compare-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

.compare-items {
  display: flex;
  gap: 1rem;
}

.compare-item {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare-table th,
.compare-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--bg-elevated);
  font-weight: 600;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

/* Badges & Gamification */
.badges-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.badge-item {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.badge-item.earned {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.badge-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.badge-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.badge-desc {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Newsletter Subscribe */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 3rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 3rem 0;
  color: white;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 1.5rem auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
}

.newsletter-form button {
  padding: 0.75rem 2rem;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Analytics Dashboard */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.analytics-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.analytics-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.analytics-label {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.analytics-change {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.analytics-change.positive {
  color: var(--success);
}

.analytics-change.negative {
  color: var(--danger);
}

/* Language Selector */
.language-selector {
  position: relative;
  display: inline-block;
}

.language-current {
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 150px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 1000;
}

.language-dropdown.show {
  display: block;
}

.language-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.language-option:hover {
  background: var(--bg-card);
  color: var(--primary);
}

.language-option.active {
  background: var(--primary);
  color: white;
}

/* Floating Action Button (Mobile) */
.fab-menu {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.fab-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.fab-button:hover {
  transform: scale(1.1);
}

.fab-actions {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.fab-menu.open .fab-actions {
  opacity: 1;
  pointer-events: all;
}

.fab-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-elevated);
  padding: 0.75rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.fab-action:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.skeleton-card {
  height: 300px;
  border-radius: var(--radius);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Utility Classes */
.fade-in {
  animation: fadeIn 0.3s ease;
}

.slide-up {
  animation: slideUp 0.4s ease;
}

.pulse {
  animation: pulse 1s ease infinite;
}

/* Profile Page Styles */
.profile-tab-content {
  animation: fadeIn 0.3s ease;
}

/* Image Protection Styles */
.card img,
.screenshot-item img,
.blog-cover {
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

.card img::after,
.screenshot-item img::after {
  content: '© GSM Tools Hub';
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  pointer-events: none;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .theme-toggle {
    bottom: 80px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .compare-bar-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  
  .compare-table {
    font-size: 0.875rem;
  }
  
  .compare-table th,
  .compare-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* ============================================================================
   MODERN CARD ENHANCEMENTS
   ============================================================================ */

.tool-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border-radius: 20px !important;
  border: 2px solid transparent !important;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: 1;
}

.tool-card:hover::before {
  transform: translateX(0);
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
  border-color: var(--primary) !important;
}

.tool-card .card-image {
  transition: transform 0.4s ease;
  border-radius: 16px 16px 0 0 !important;
}

.tool-card:hover .card-image {
  transform: scale(1.05);
}

.badge-trending {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
  color: white !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 50px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4) !important;
  animation: pulse 2s infinite;
}

.badge-new {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  color: white !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 50px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4) !important;
}

.badge-popular {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 50px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.category-tab {
  transition: all 0.3s ease !important;
}

.category-tab:hover {
  transform: translateY(-5px) scale(1.03) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.category-tab.active {
  transform: scale(1.05) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25) !important;
}

/* ============================================================================
   ENHANCED MODERN SEARCH BAR
   ============================================================================ */

.search-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.search-bar {
    display: flex;
    max-width: 850px;
    margin: 0 auto;
    gap: 1rem;
    position: relative;
}

.search-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.search-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25), 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.search-category {
    padding: 0 1.25rem;
    border-right: 2px solid #f3f4f6;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    outline: none;
}

.search-category:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.search-input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 1.05rem;
    outline: none;
    color: #1f2937;
    font-weight: 400;
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 1rem;
}

.search-clear {
    background: #fee2e2;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
    display: none;
}

.search-clear.show {
    display: block;
}

.search-clear:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.05);
}

.search-shortcut {
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    pointer-events: none;
}

.btn-primary {
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.45);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.1);
    max-height: 480px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 2px solid #f3f4f6;
}

.search-suggestions.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestions-header {
    padding: 1rem 1.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-bottom: 2px solid #f3f4f6;
}

.suggestion-item {
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.suggestion-item:hover, .suggestion-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, transparent 100%);
    border-left-color: #667eea;
    transform: translateX(4px);
}

.suggestion-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.suggestion-meta {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-badge {
    padding: 0.3rem 0.65rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 8px;
    font-size: 0.75rem;
    color: #4b5563;
    font-weight: 600;
    flex-shrink: 0;
}

.search-history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.search-history-item:hover {
    background: #f9fafb;
}

.search-history-icon {
    color: #9ca3af;
    font-size: 1.25rem;
}

.search-history-text {
    flex: 1;
    color: #4b5563;
    font-weight: 500;
}

.search-history-remove {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    opacity: 0;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.search-history-item:hover .search-history-remove {
    opacity: 1;
}

.search-history-remove:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* Search Loading State */
.search-loading {
    display: none;
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

.search-loading.active {
    display: block;
}

.search-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 4px solid #f3f4f6;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Results State */
.search-no-results {
    padding: 3rem 2rem;
    text-align: center;
    color: #6b7280;
}

.search-no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.search-no-results h3 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-category {
        border-right: none;
        border-bottom: 2px solid #f3f4f6;
        padding: 0.75rem 1rem;
    }
    
    .search-input {
        padding: 1rem 1.25rem;
    }
    
    .search-shortcut {
        display: none;
    }
    
    .btn-primary {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    .suggestion-item {
        padding: 1rem 1.25rem;
    }
    
    .suggestion-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
