/* Base styles */
:root {
  --color-bg: #121212;
  --color-panel: #1e1e1e;
  --color-panel-strong: #242424;
  --color-panel-gradient: linear-gradient(135deg, #1e1e1e, #242424);
  --color-header: #1a1a1a;
  --color-border: rgba(255, 255, 255, 0.05);
  --color-border-strong: rgba(255, 255, 255, 0.08);
  --color-text: #ffffff;
  --color-muted: #c0c0c0;
  --color-accent: #4fc3f7;
  --color-accent-soft: rgba(79, 195, 247, 0.2);
  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.35);
  --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

/* Layout components */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.popup.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

header {
  background: linear-gradient(135deg, #161616, #1f1f1f);
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  border-bottom: 1px solid var(--color-border-strong);
  height: 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.taskbar-left,
.taskbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Sidebar */
.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 8px;
  border-radius: 6px;
  transition: background 0.2s;
  z-index: 10001;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-toggle svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

/* Dimmed blurred overlay behind sidebar */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(79, 195, 247, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.85));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(.22, .61, .36, 1), visibility 0.28s cubic-bezier(.22, .61, .36, 1);
  z-index: 9995;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  height: 100vh;
  background: var(--color-panel-strong);
  box-shadow: 2px 0 32px rgba(0, 0, 0, 0.85);
  z-index: 10000;
  padding: 28px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  transform: translateX(-105%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 0.32s cubic-bezier(.22, .61, .36, 1), opacity 0.32s cubic-bezier(.22, .61, .36, 1), box-shadow 0.25s ease-out;
}

.sidebar.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.sidebar .sidebar-header {
  margin-bottom: 18px;
}

.sidebar .sidebar-close {
  background: #0f0f0f;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  outline: none;
}

.sidebar .sidebar-close:hover {
  /* subtle lighter dark on hover */
  background: #222222;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.sidebar a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
  padding: 10px 0 10px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.sidebar a:hover {
  background: #111111;
  color: #4fc3f7;
}

/* Sidebar footer quick actions */
.sidebar-footer-actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-footer-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top left, rgba(79, 195, 247, 0.12), rgba(20, 20, 20, 0.95));
  color: #eaf7ff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sidebar-footer-btn span {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-footer-btn svg {
  width: 16px;
  height: 16px;
}

.sidebar-footer-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  border-color: rgba(79, 195, 247, 0.4);
}

.sidebar-footer-btn--secondary {
  background: linear-gradient(135deg, #181818, #222222);
  color: #d0d0d0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.sidebar-footer-btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

/* Start button */
.start-button {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.start-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.start-button img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.start-button span {
  font-weight: 600;
  font-size: 14px;
}

/* Taskbar icons */
.taskbar-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.taskbar-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Sync menu container */
.sync-menu-container {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  gap: 4px;
  min-width: auto;
  width: auto;
  height: auto;
}

.sync-menu-container span {
  white-space: nowrap;
  font-size: 11px;
  line-height: 1;
}

/* Sync dropdown menu */
.sync-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: linear-gradient(135deg, #1a1a1a, #242424);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  min-width: 160px;
  z-index: 10002;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.sync-dropdown:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sync-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: left;
}

.sync-dropdown-item:hover {
  background: rgba(79, 195, 247, 0.15);
}

.sync-dropdown-item:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.sync-dropdown-item:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.sync-dropdown-item svg {
  flex-shrink: 0;
}


/* Navigation */
nav {
  background: #131313;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 40px;
  z-index: 999;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a,
.nav-install-btn {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--color-panel-gradient);
  transition: all 0.3s ease;
  font-size: 14px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

nav a::before,
.nav-install-btn::before {
  /* no translucent sheen */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

nav a:hover,
.nav-install-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #202020, #2a2a2a);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  border-color: var(--color-accent-soft);
}

nav a:hover::before,
.nav-install-btn:hover::before {
  opacity: 1;
}

nav a:active,
.nav-install-btn:active {
  transform: translateY(0);
}

nav a svg,
.nav-install-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  flex-shrink: 0;
}

.nav-install-btn {
  font-weight: 600;
  border: 1px solid var(--color-border);
  cursor: pointer;
}

.nav-install-btn:hover {
  background: linear-gradient(135deg, #212121, #2d2d2d);
}

.nav-install-btn svg {
  opacity: 0.9;
}

/* Search */
.search-container {
  text-align: center;
  margin: 15px auto;
  flex-shrink: 0;
  max-width: 800px;
  width: 90%;
}

.search-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.search-button {
  background: var(--color-panel-gradient);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.search-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #262626, #313131);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.search-button:active {
  transform: translateY(0);
}

.search-button svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.search-container input[type="text"] {
  width: 100%;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  outline: none;
  font-size: 15px;
  background: rgba(30, 30, 30, 0.85);
  color: var(--color-text);
  transition: all 0.3s ease;
}

.search-container input[type="text"]:focus {
  background: rgba(36, 36, 36, 0.95);
  border-color: var(--color-accent-soft);
  box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.12);
}

.search-results {
  margin-top: 15px;
  padding: 12px;
  max-width: 90%;
  font-size: 14px;
  background: rgba(24, 24, 24, 0.95);
  border-radius: 10px;
  margin-left: auto;
  margin-right: auto;
  display: none;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.search-results.active {
  display: block;
}

.search-results p {
  color: #fff;
  line-height: 1.6;
  margin: 0;
}

.search-results .loading {
  text-align: center;
  color: #888;
}

/* Search button loading state */
.search-button.loading {
  pointer-events: none;
  opacity: 0.7;
}

.search-button.loading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Search button pulse effect */
.search-button.searching {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  50% {
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
  }

  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
}

/* (Removed unused Welcome Message styles) */

/* Content sections */
.popup-title {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(135deg, #1a1a1a, #232323);
  padding: 10px 25px;
  margin: 25px auto 15px;
  border-radius: 20px;
  width: fit-content;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border);
}

.icon-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 20px;
  flex-grow: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 90%;
}

.icon {
  text-align: center;
  text-decoration: none;
  padding: 15px 10px;
  border-radius: 15px;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: rgba(20, 20, 20, 0.9);
  position: relative;
  overflow: hidden;
  /* keep animations light for low-end devices */
  transition:
    transform 0.18s ease-out,
    border-color 0.18s ease-out,
    box-shadow 0.2s ease-out,
    background 0.2s ease-out,
    opacity 0.16s ease-out;
  will-change: transform, box-shadow, opacity;
}

.icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.08), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.icon:hover {
  border-color: var(--color-accent-soft);
  background: rgba(29, 29, 29, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* Subtle pointer feedback for draggable main apps */
#mainApps .icon.main-app {
  cursor: grab;
}

#mainApps .icon.main-app.dragging {
  cursor: grabbing;
  opacity: 0.96;
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  z-index: 10;
}

/* When another icon is the current drop target */
#mainApps .icon.main-app.drag-over {
  transform: translateY(4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.icon:hover::before {
  opacity: 1;
}

.icon img {
  width: 122px;
  height: 122px;
  border-radius: 15px;
  object-fit: cover;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.icon:hover img {
  border-color: rgba(79, 195, 247, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.icon p {
  font-size: 12px;
  margin-top: 8px;
  letter-spacing: 0.5px;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  padding: 0 5px;
  position: relative;
  z-index: 1;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #151515, #111111);
  border-top: 1px solid var(--color-border-strong);
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.6);
  margin-top: 40px;
  padding: 40px 5vw 22px;
  color: var(--color-text);
  flex-shrink: 0;
}

.site-footer .footer-content {
  max-width: 1100px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  background: #111417;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0;
}

.footer-tagline {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.footer-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.footer-links,
.footer-contact,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--color-muted);
}

.footer-links a,
.footer-contact a {
  text-decoration: none;
  color: var(--color-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-accent);
  transform: translateX(2px);
}

.footer-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.footer-social-list a:hover {
  background: var(--color-accent-soft);
  border-color: rgba(79, 195, 247, 0.4);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
}

.footer-made {
  color: #e5e5e5;
  font-weight: 500;
}

/* Footer About Section */
.footer-about {
  grid-column: span 2;
  max-width: 100%;
}

.footer-description {
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 600px;
}

.footer-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-services-text {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.footer-services-text strong {
  color: var(--color-accent);
  font-weight: 600;
}

.footer-mission,
.footer-vision {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.6;
  font-style: italic;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .site-footer .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .footer-about {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .site-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-about {
    grid-column: span 1;
  }

  .footer-description {
    font-size: 13px;
    max-width: 100%;
  }

  .footer-services-text {
    font-size: 12px;
  }

  .footer-mission,
  .footer-vision {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .footer-description {
    font-size: 12px;
  }

  .footer-services-text {
    font-size: 11px;
  }
}

/* Popups */
.mini-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: opacity 0.3s, visibility 0.3s;
}

.mini-popup.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mini-popup-content {
  background: rgba(26, 26, 26, 0.95);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding: 28px 32px 18px 32px;
  min-width: 260px;
  max-width: 90vw;
  text-align: center;
  position: relative;
  animation: popupIn 0.25s;
}

.mini-popup-content h3 {
  margin-top: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.mini-popup-content p {
  margin: 0 0 18px 0;
  font-size: 15px;
}

.mini-popup-close {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 7px 18px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}

.mini-popup-close:hover {
  background: var(--color-accent-soft);
  border-color: rgba(79, 195, 247, 0.4);
}

@keyframes popupIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive design */
@media (max-width: 1200px) {
  .icon-container {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 8px 10px;
    height: 35px;
  }

  .start-button span {
    display: none;
  }

  .taskbar-right {
    gap: 8px;
  }

  .search-container {
    margin: 10px auto;
  }

  .search-box {
    max-width: 90%;
  }

  .search-button {
    width: 40px;
    height: 40px;
  }

  .search-button svg {
    width: 18px;
    height: 18px;
  }

  .welcome-message {
    font-size: 16px;
    margin: 10px auto;
  }

  .icon-container {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    padding: 12px;
  }

  /* Social media section specific responsive */
  #social-media .icon-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
  }

  .icon {
    padding: 12px;
  }

  .icon img {
    width: 100px;
    height: 100px;
  }

  .icon p {
    font-size: 11px;
    margin-top: 6px;
    padding: 0 3px;
  }

  nav {
    padding: 8px;
    gap: 10px;
  }

  nav a,
  .nav-install-btn {
    padding: 8px 15px;
    font-size: 13px;
  }

  nav a svg,
  .nav-install-btn svg {
    width: 16px;
    height: 16px;
  }

  .icon {
    padding: 12px;
    border-width: 1.5px;
  }

  .icon img {
    width: 100px;
    height: 100px;
    border-width: 0.5px;
  }

  .icon p {
    font-size: 11px;
    margin-top: 6px;
    padding: 0 3px;
  }

  .mobile-expand-icon {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    opacity: 1 !important;
    flex-shrink: 0;
    color: #4fc3f7;
  }

  .social-media-header:hover .mobile-expand-icon {
    color: #81d4fa;
    transform: scale(1.1);
  }

  .social-media-group {
    padding: 14px;
    margin-bottom: 10px;
  }

  .social-media-header {
    font-size: 14px;
    margin-bottom: 0;
    gap: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
  }

  .social-media-header svg {
    width: 16px;
    height: 16px;
  }

  .social-media-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .social-media-group.expanded .social-media-links {
    max-height: 220px;
    opacity: 1;
    margin-top: 10px;
  }

  .social-media-group.expanded .mobile-expand-icon {
    transform: rotate(180deg);
  }

  .social-media-group.expanded .social-media-header:hover .mobile-expand-icon {
    transform: rotate(180deg) scale(1.1);
  }

  .social-title {
    flex: 1;
  }

  .social-link {
    padding: 8px 10px;
    font-size: 12px;
    gap: 6px;
  }

  .social-link svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 600px) {
  .sidebar {
    width: 85vw;
    min-width: 0;
    padding: 18px 8px 8px 8px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
  }
}

@media (max-width: 480px) {
  .icon-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    padding: 10px;
  }

  /* Social media section specific responsive */
  #social-media .icon-container {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .icon {
    padding: 10px;
    border-width: 1px;
  }

  .icon img {
    width: 90px;
    height: 90px;
    border: none;
  }

  .icon p {
    font-size: 10px;
    margin-top: 4px;
    padding: 0 2px;
  }

  nav a,
  .nav-install-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  nav a svg,
  .nav-install-btn svg {
    width: 14px;
    height: 14px;
  }

  .social-media-group {
    padding: 10px;
    margin-bottom: 8px;
  }

  .social-media-header {
    font-size: 13px;
    margin-bottom: 8px;
    gap: 6px;
  }

  .social-media-header svg {
    width: 14px;
    height: 14px;
  }

  .mobile-expand-icon {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    opacity: 1 !important;
    color: #4fc3f7;
  }

  .social-media-header:hover .mobile-expand-icon {
    color: #81d4fa;
  }

  .social-link {
    padding: 6px 8px;
    font-size: 11px;
    gap: 5px;
  }

  .social-link svg {
    width: 12px;
    height: 12px;
  }
}

/* Social Media Dropdown Styles */
.social-dropdown {
  position: relative;
  width: 100%;
  margin-bottom: 5px;
}

.social-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
}

.social-header:hover {
  background: rgba(79, 195, 247, 0.12);
}

.social-header .dropdown-arrow {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.social-header.active .dropdown-arrow {
  transform: rotate(180deg);
}

.social-options {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: linear-gradient(135deg, #1e1e1e, #242424);
  min-width: 200px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  z-index: 10001;
  border: 1px solid var(--color-border);
  margin-top: 5px;
}

.social-options.show {
  display: block;
  animation: dropdownFadeIn 0.3s ease;
}

.social-options a {
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
  font-size: 14px;
  border-radius: 0;
}

.social-options a:first-child {
  border-radius: 8px 8px 0 0;
}

.social-options a:last-child {
  border-radius: 0 0 8px 8px;
}

.social-options a:hover {
  background: rgba(79, 195, 247, 0.15);
  color: #4fc3f7;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* (Removed unused dropdown overlay styles) */

/* Social Media Section Styles */
.social-media-group {
  background: rgba(26, 26, 26, 0.9);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--color-border);
}

.social-media-group::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: none;
  transform: rotate(25deg);
  pointer-events: none;
}

.social-media-group:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: rgba(33, 33, 33, 0.95);
  border-color: var(--color-accent-soft);
}

.social-media-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  position: relative;
}

.social-media-header svg {
  color: #ffffff;
  flex-shrink: 0;
}

.mobile-expand-icon {
  display: none;
  width: 16px;
  height: 16px;
  color: #4fc3f7;
  transition: transform 0.3s ease;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.9;
}

.social-media-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-link {
  color: var(--color-text);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  font-size: 14px;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: var(--color-accent-soft);
  color: var(--color-text);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  border-color: rgba(79, 195, 247, 0.3);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:active {
  transform: translateY(0);
}


@media (max-width: 360px) {
  .icon-container {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    padding: 8px;
  }

  /* Social media section specific responsive */
  #social-media .icon-container {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .social-media-group {
    padding: 10px;
    margin-bottom: 6px;
  }

  .social-media-header {
    font-size: 13px;
    gap: 5px;
  }

  .social-media-header svg {
    width: 12px;
    height: 12px;
  }

  .mobile-expand-icon {
    width: 12px;
    height: 12px;
  }

  .social-link {
    padding: 5px 6px;
    font-size: 10px;
    gap: 4px;
  }

  .social-link svg {
    width: 10px;
    height: 10px;
  }

  .icon {
    padding: 8px;
  }

  .icon img {
    width: 64px;
    height: 64px;
  }

  .icon p {
    font-size: 9px;
    margin-top: 3px;
    padding: 0 1px;
  }
}

/* Footer mobile enhancements */
@media (max-width: 768px) {
  .site-footer {
    padding: 30px 5vw 18px;
  }

  .site-footer .footer-content {
    gap: 24px;
  }

  .footer-brand {
    flex-direction: row;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 28px 24px 16px;
  }

  .footer-social-list {
    gap: 8px;
  }

  .footer-social-list a {
    min-width: 32px;
    font-size: 12px;
    padding: 5px 10px;
  }
}

/* Glassmorphism theme (overrides) */
:root {
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border: 1px solid rgba(255, 255, 255, 0.10);
  --glass-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --glass-blur: 14px;
  --glass-radius: 16px;
}

body::before {
  content: '';
  position: fixed;
  inset: -20vmax;
  background: radial-gradient(40vmax 40vmax at 15% 10%, rgba(79, 195, 247, 0.08), transparent 60%),
    radial-gradient(35vmax 35vmax at 90% 20%, rgba(79, 195, 247, 0.05), transparent 60%),
    radial-gradient(45vmax 45vmax at 30% 85%, rgba(255, 255, 255, 0.04), transparent 65%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

.popup {
  background: var(--color-bg);
}

header {
  background: linear-gradient(135deg, #161616, #1f1f1f);
  border-bottom: 1px solid var(--color-border-strong);
}

nav {
  background: #131313;
  border-bottom: 1px solid var(--color-border);
}

nav a,
.nav-install-btn {
  background: var(--color-panel-gradient);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.search-container input[type="text"] {
  background: rgba(30, 30, 30, 0.85);
  border: 1px solid var(--color-border);
}

.search-results {
  background: rgba(24, 24, 24, 0.95);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.popup-title {
  background: linear-gradient(135deg, #1a1a1a, #232323);
  border: 1px solid var(--color-border);
}

.mini-popup {
  background: rgba(0, 0, 0, 0.8);
}

.mini-popup-content {
  background: rgba(26, 26, 26, 0.95);
  border: var(--glass-border);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--glass-shadow);
  border-radius: var(--glass-radius);
}

.sidebar {
  background: #141414;
  border-right: 1px solid var(--color-border);
}

.site-footer {
  background: linear-gradient(180deg, #151515, #111111) !important;
  border-top: 1px solid var(--color-border) !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45) !important;
}

.taskbar-icon:hover,
.start-button:hover {
  background: rgba(255, 255, 255, 0.10);
}

@media (max-width: 768px) {
  :root {
    --glass-blur: 10px;
  }
}

/* Google Ads visibility fixes: keep ads above header/nav, below overlays/sidebar */
ins.adsbygoogle {
  display: block !important;
}

#google_anchor_fm_anchor,
.google-auto-placed,
[id^="google_ads_iframe"],
[id^="aswift_"],
[id*="__container__"] {
  position: relative !important;
  z-index: 1001 !important;
  /* header:1000, nav:999, sidebar:10000, mini-popup:10001 */
  pointer-events: auto !important;
}