@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #0f0c29;
  --bg-2: #1b1f3a;
  --purple: #302b63;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.12);
  --green: #32cd32;
  --green-2: #00ff88;
  --cyan: #00eaff;
  --text: #ffffff;
  --muted: #d7d8ea;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.highlight {
  color: #00ff7f;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 255, 127, 0.45);
}

/* ========== HEADER / HOME ========== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4%;
  background: rgba(15, 12, 41, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo svg {
  width: 38px;
  height: 38px;
}

.logo-text,
.logo a {
  font-size: 1.35rem;
  font-weight: 800;
  color: #3ed84b;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #fff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}

/* ========== BUTTONS ========== */
.btn,
.btn-outline,
.btn-primary,
.container .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn,
.container .btn,
.btn-primary,
.card .btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #06210c;
  box-shadow: 0 8px 20px rgba(0, 255, 136, 0.22);
}

.btn:hover,
.container .btn:hover,
.btn-primary:hover,
.card .btn-primary:hover {
  transform: translateY(-2px);
  background: #28a428;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* ========== HOME ========== */
.hero,
.container {
  text-align: center;
  padding: 80px 20px 50px;
}

.hero h1,
.container h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span {
  background: linear-gradient(90deg, #7dffb0, #4caf50);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p,
.container p {
  max-width: 720px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.container {
  max-width: 900px;
  margin: 30px auto 10px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("image/xxx1010.jpg") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.section,
.samples,
.clothing-samples,
.demo-video,
.manual-edit-video {
  padding: 50px 16px;
}

.section h2,
.samples h2,
.clothing-samples h2,
.demo-video h2,
.manual-edit-video h2,
.effects-selection h2 {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  margin-bottom: 10px;
}

.section-sub,
.manual-edit-video p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ========== TOOL / DASHBOARD CARDS ========== */
.tools-grid,
.dashboard-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.tool-card,
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: 0.28s ease;
}

.tool-card:hover,
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 136, 0.55);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.35);
}

.tool-card h3,
.card h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.tool-card p,
.card p {
  color: #eaeaea;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

/* ========== GALLERIES ========== */
.gallery,
.clothing-gallery,
.swap-gallery {
  display: grid;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery {
  grid-template-columns: repeat(3, 1fr);
}

.clothing-gallery,
.swap-gallery {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-item,
.clothing-item {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  min-height: 180px;
  box-shadow: var(--shadow);
  transition: 0.28s ease;
}

.gallery-item:hover,
.clothing-item:hover {
  transform: scale(1.03);
}

.gallery-item img,
.clothing-item img,
.swap-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: pointer;
}

/* ========== VIDEOS ========== */
.video-box,
.video-container,
.manual-video-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-box video,
.video-container video,
.manual-video-container video,
.demo-video video {
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
}

.video-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 14px;
  font-weight: 700;
  text-align: center;
}

.cta {
  text-align: center;
  background: linear-gradient(180deg, rgba(50, 205, 50, 0.1), transparent);
}

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox.open,
.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 14px;
}

/* ========== DASHBOARD ========== */
.dashboard-body {
  background: radial-gradient(circle at top left, #1b1f3a, #0f0c29);
  min-height: 100vh;
}

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  min-height: 64px;
  background: rgba(18, 18, 34, 0.96);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.navbar-content h2 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px 12px;
}

.coin-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

#coinCount {
  font-weight: 700;
  color: #fff;
}

.btn-logout {
  background: var(--green-2);
  border: none;
  color: #000;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-logout:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.dashboard-header {
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: 28px 16px 24px;
  letter-spacing: 0.3px;
}

.vision-highlight {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 234, 255, 0.35);
}

.hamburger-container {
  position: relative;
}

.hamburger-btn {
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.hamburger-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  background: rgba(24, 24, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 0;
  z-index: 1200;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hamburger-menu.active {
  display: flex;
  flex-direction: column;
}

.hamburger-menu a {
  padding: 11px 16px;
  color: #fff;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.hamburger-menu a:hover {
  background: rgba(0, 255, 136, 0.12);
  color: #7dffb0;
}

/* ========== EFFECTS SECTION ========== */
.effects-selection {
  padding: 20px 16px 50px;
}

.effects-selection h2 {
  margin-bottom: 22px;
}

.effects-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto;
}

.effect-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transition: 0.25s ease;
  cursor: pointer;
}

.effect-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 191, 255, 0.25);
}

.effect-wrapper video {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.video-tag,
.modal-video-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 191, 255, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  z-index: 2;
  letter-spacing: 0.3px;
}

.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2200;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #0c0c0c;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-content video {
  width: 100%;
  max-height: calc(100vh - 220px);
  border-radius: 10px;
  background: #000;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  z-index: 5;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.use-btn,
.download-btn {
  background: #00bfff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.use-btn:hover,
.download-btn:hover {
  background: #0099cc;
}

/* ========== NOTIFICATIONS ========== */
.notification-bell {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: 0.2s ease;
}

.notification-bell:hover {
  background: rgba(255, 255, 255, 0.08);
}

.notification-bell svg {
  stroke: #fff;
}

.notification-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff3b3b;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
  padding: 0 4px;
}

#notificationContainer {
  position: fixed;
  top: 72px;
  right: 16px;
  width: min(280px, calc(100% - 24px));
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  background: rgba(255, 255, 255, 0.96);
  color: #1a1a2e;
  border-left: 4px solid #32cd32;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  animation: slideInNotif 0.35s ease;
}

.notification.fade-out {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@keyframes slideInNotif {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========== FOOTER ========== */
.dashboard-footer,
footer {
  text-align: center;
  padding: 22px 16px;
  color: #ccc;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .tools-grid,
  .dashboard-main,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .clothing-gallery,
  .effects-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    background: #16133a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .navbar-content {
    flex-wrap: wrap;
  }

  .navbar-actions {
    gap: 8px;
  }

  .hero,
  .container {
    padding-top: 50px;
  }

  .gallery-item img,
  .clothing-item img,
  .effect-wrapper video {
    height: 220px;
  }

  .dashboard-header {
    margin-top: 18px;
  }
}

@media (max-width: 520px) {
  .tools-grid,
  .dashboard-main,
  .gallery,
  .clothing-gallery,
  .effects-gallery,
  .swap-gallery {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .modal-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn,
  .btn-outline,
  .container .btn,
  .use-btn,
  .download-btn {
    width: 100%;
  }

  .navbar-content h2 {
    font-size: 0.95rem;
  }

  .coin-box {
    padding: 5px 8px;
  }

  .btn-logout {
    padding: 7px 12px;
    font-size: 0.85rem;
  }

  #notificationContainer {
    right: 10px;
    top: 68px;
  }
}