:root {
  --bg: #000;
  --text: #fff;
  --neon-yellow: #ffe600;
  --shadow: 0 0 8px var(--neon-yellow);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #111;
  border-bottom: 2px solid var(--neon-yellow);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 32px;
  width: 32px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--neon-yellow);
  text-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.logo-text:hover {
  transform: scale(1.1);
  text-shadow: 0 0 10px var(--neon-yellow), 0 0 20px var(--neon-yellow);
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.burger {
  display: none;
  font-size: 1.5rem;
  background: none;
  color: var(--neon-yellow);
  border: none;
  cursor: pointer;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: #222;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--neon-yellow);
  box-shadow: var(--shadow);
  z-index: 10;
  min-width: 200px;
}

.dropdown-content input {
  padding: 8px;
  width: 100%;
  background: #000;
  border: 1px solid var(--neon-yellow);
  color: #fff;
  margin-bottom: 8px;
}

.dropdown-content a {
  color: var(--neon-yellow);
  text-decoration: none;
}

.dropdown-item {
  padding: 4px 0;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

.icon-btn {
  background: transparent;
  color: var(--neon-yellow);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

@media (min-width: 769px) {
  .desktop-menu .icon-btn:hover {
    color: #fff;
    text-shadow: var(--shadow);
    transform: scale(1.05);
  }
}

.container {
  flex: 1;
  padding: 24px;
  text-align: center;
  max-width: 100%;
  overflow-x: hidden;
}

input[type='text'] {
  padding: 10px;
  width: 90%;
  max-width: 500px;
  margin: 16px 0;
  border: 1px solid var(--neon-yellow);
  background: #000;
  color: #fff;
  box-shadow: var(--shadow);
  word-wrap: break-word;
}

button,
.download-button {
  background: var(--neon-yellow);
  border: none;
  color: #000;
  padding: 10px 16px;
  margin: 10px auto;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.download-button:hover,
button:hover {
  box-shadow: var(--shadow);
  transform: scale(1.05);
}
.close-sidebar {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  background: transparent;
  color: var(--neon-yellow);
  border: none;
  cursor: pointer;
  z-index: 110;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: #111;
  color: var(--neon-yellow);
  transition: right 0.3s ease-in-out;
  z-index: 100;
  padding: 24px;
  overflow-y: auto;
  border-left: 2px solid var(--neon-yellow);
  box-shadow: -4px 0 12px rgba(255, 230, 0, 0.15);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sidebar.show {
  right: 0;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 60px; /* ← increased from 12px */
}


.sidebar-section {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #333;
}

.sidebar-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-section h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--neon-yellow);
  padding-bottom: 6px;
  position: relative;
}

.sidebar-section h4::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--neon-yellow);
  box-shadow: 0 0 6px var(--neon-yellow), 0 0 10px var(--neon-yellow);
  margin-top: 4px;
}

.sidebar-section input[type="text"] {
  background: #000;
  color: #fff;
  padding: 10px;
  border: 1px solid var(--neon-yellow);
  border-radius: 6px;
  font-size: 1rem;
  word-break: break-word;
  box-shadow: var(--shadow);
  transition: border 0.3s ease;
  width: 100%;
  margin-top: 8px;
}

.sidebar-section input[type="text"]:focus {
  outline: none;
  border-color: #fff200;
}

/* 🎯 Make support button match the follow links */
.supportbtn {
  display: inline-block;
  text-decoration: underline;
  color: var(--neon-yellow);
  font-weight: bold;
  border-bottom: 1px solid #333;
  padding: 6px 0;
  transition: color 0.3s ease;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.supportbtn:hover {
  color: #fff;
  text-shadow: var(--shadow);
}

.follow-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.follow-list li a,
.sidebar-section a,
.sidebar-section p {
  text-decoration: underline;
  color: var(--neon-yellow);
}

.follow-list li a {
  display: inline-block;
  font-weight: bold;
  border-bottom: 1px solid #333;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.follow-list li a:hover {
  color: #fff;
  text-shadow: var(--shadow);
}

#loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}


#loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.spinner {
  border: 4px solid #333;
  border-top: 4px solid var(--neon-yellow);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

#error-msg {
  color: red;
  margin-top: 10px;
  font-weight: bold;
  font-size: 0.9rem;
  word-break: break-word;
}

.info-section {
  padding: 24px;
  text-align: left;
  line-height: 1.6;
  word-wrap: break-word;
}

footer.footer {
  background: #111;
  color: #fff;
  padding: 20px;
  text-align: center;
  width: 100%;
  flex-shrink: 0;
}

footer.footer a {
  color: var(--neon-yellow);
  margin: 0 10px;
  text-decoration: none;
}

.result-card {
  margin: 16px auto;
  background: #111;
  border: 1px solid var(--neon-yellow);
  box-shadow: var(--shadow);
  padding: 14px;
  border-radius: 10px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.4s ease-in-out;
}

.result-left {
  width: 100%;
  display: flex;
  justify-content: center;
}

.result-thumbnail {
  width: 100%;
  max-width: 280px;
  border-radius: 6px;
  border: 2px solid var(--neon-yellow);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.result-details {
  text-align: left;
  width: 100%;
  font-size: 0.95rem;
  color: #fff;
  padding: 0 8px;
  word-break: break-word;
}

.result-details p {
  margin: 4px 0;
}

.result-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.reset-btn {
  background: transparent;
  border: 1px solid var(--neon-yellow);
  color: var(--neon-yellow);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.reset-btn:hover {
  background: var(--neon-yellow);
  color: #000;
  box-shadow: var(--shadow);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }

  .burger {
    display: block;
    margin-left: auto;
    margin-right: 0;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    display: flex;
    align-items: center;
    flex: 1;
  }

  .info-section {
    font-size: 0.95rem;
    padding: 16px;
  }

  input[type='text'] {
    width: 100%;
  }

  .download-button {
    width: 100%;
    max-width: 100%;
  }

  .container {
    padding: 16px;
  }

  .result-buttons {
    flex-direction: column;
  }
}

@media (min-width: 769px) {
  .result-card {
    flex-direction: row;
    align-items: stretch;
  }

  .result-left {
    width: 40%;
    justify-content: flex-start;
  }

  .result-right {
    width: 60%;
    display: flex;
    flex-direction: column;
    padding-left: 16px;
    gap: 16px;
  }

  .result-details {
    flex-shrink: 0;
    padding-bottom: 12px;
    line-height: 1.6;
  }

  .result-details p {
    margin: 8px 0;
  }

  .result-buttons {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .reset-btn {
    align-self: flex-start;
  }
}

/* ✅ Close button on right corner */

/* Add this section at the bottom of your existing CSS (everything else stays untouched) */

/* ✅ Photo Gallery Section Update */
.photo-gallery {
  margin-top: 20px;
  display: none; /* Hide by default */
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.photo-gallery.active {
  display: flex;
  background: #111;
  border: 1px solid var(--neon-yellow);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
  animation: fadeIn 0.4s ease-in-out;
}

.photo-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-item img {
  max-width: 100%;
  max-height: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 2px solid var(--neon-yellow);
  box-shadow: var(--shadow);
  object-fit: contain;
}

.photo-desc {
  color: var(--text);
  font-size: 1rem;
  margin: 6px 0 12px;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
  padding: 0 6px;
}

.download-button {
  padding: 12px 20px;
  font-size: 1.05rem;
  border-radius: 8px;
}

/* 📱 Mobile */
@media (max-width: 768px) {
  .photo-gallery.active {
    padding: 16px;
  }

  .photo-item {
    width: 100%;
  }

  .photo-item img {
    max-height: 240px;
  }

  .download-button {
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }

  .photo-desc {
    font-size: 0.95rem;
  }
}

/* 💻 Desktop 2-column */
@media (min-width: 769px) {
  .photo-item {
    width: 45%;
  }

  .photo-item img {
    max-height: 320px;
  }

  .photo-desc {
    font-size: 1.05rem;
  }
}
.ad-hint {
  font-size: 0.8em;
  color: #aaa;
  margin-left: 6px;
  vertical-align: middle;
  cursor: help;
}



