/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
}

.visitor-counter {
  text-align: right;
  font-size: 0.7rem;
  color: #cbd5e1;
  margin-top: 0.5rem;
  font-family: monospace;
  opacity: 0.6;
}

/* ===== DARK MODE VARIABLES ===== */
:root {
  --bg-body: #f3f4f8;
  --bg-card: #fff;
  --bg-input: #f8fafc;
  --text-primary: #1e293b
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 25px rgba(0,0,0,0.08);
  --accent-gradient: linear-gradient(135deg, #7c3aed, #2563eb);
  --accent-hover: #6d28d9;
  --tab-active-bg: #f3f0ff;
}

[data-theme="dark"] {
  --bg-body: #0f172a;
  --bg-card: #000;
  --bg-input: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #334155;
  --border-light: #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 25px rgba(0,0,0,0.5);
  --accent-gradient: linear-gradient(135deg, #8b5cf6, #3b82f6);
  --accent-hover: #a78bfa;
  --tab-active-bg: #1e1b4b;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.navbar-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text-primary); cursor: pointer;
}
.navbar-brand svg { width: 36px; height: 36px; }
.navbar-title {
  font-size: 1.25rem; font-weight: 700;
  background:var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-links { display: flex; align-items: center; gap: 1rem; }

/* ===== SEARCH & BUTTONS ===== */
.search-box {
  display: flex; align-items: center; background: #f8fafc;
  border: 1px solid var(--border-color); border-radius: 10px;
  padding: 0.5rem 1rem; gap: 8px; width: 240px;
}
.search-box input {
  border: none; background: transparent; outline: none;
  font-size: 0.9rem; width: 100%; color: var(--text-primary);
}
.search-box svg { width: 18px; height: 18px; color: #94a3b8; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, var(--accent-hover));
  color: var(--bg-card); border: none; padding: 0.6rem 1.2rem;
  border-radius: 10px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124,58,237,0.35);
}

/* ===== PAGE UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; }
.page-header p { color: #64748b; font-size: 0.95rem; }

/* ===== TABS ===== */
.tab-bar { 
  display: flex; gap: 0; border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem; background: var(--bg-card); border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.tab-item {
  padding: 0.85rem 1.5rem; font-size: 0.95rem; font-weight: 500;
  color: #64748b; cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.2s; background: none; border: none;
}
.tab-item:hover { color: #7c3aed; background: #f8fafc; }
.tab-item.active { 
  color: #7c3aed; border-bottom-color: #7c3aed; 
  background: var(--tab-active-bg); font-weight: 600;
}

/* ===== TAB CONTENT SECTIONS ===== */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== APP CARD ===== */
.app-card {
  background: var(--bg-card); border-radius: 14px; padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.25s; border: 1px solid #f1f5f9; margin-bottom: 1.5rem;
}
.app-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); transform: translateY(-2px); }
.app-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.app-card-info { display: flex; align-items: center; gap: 12px; }
.app-card-icon { 
  width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.app-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-card-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.app-card-subtitle { font-size: 0.82rem; color: #64748b; display: flex; align-items: center; gap: 4px; }
.app-card-subtitle svg { width: 14px; height: 14px; }
.app-card-dots { background: none; border: none; cursor: pointer; padding: 4px; color: #94a3b8; font-size: 1.2rem; }
.app-card-desc { font-size: 0.85rem; color: #94a3b8; margin-bottom: 1rem; line-height: 1.5; }
.app-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid #f1f5f9; }
.app-card-expire { font-size: 0.8rem; color: #64748b; }
.app-card-expire span { color: #7c3aed; font-weight: 600; }
.btn-text {
  background: #7c3aed; border: none; color: var(--bg-card); font-weight: 600;
  font-size: 0.85rem; cursor: pointer; padding: 0.4rem 1rem;
  border-radius: 8px; transition: all 0.2s;
}
.btn-text:hover { background: var(--accent-hover); }

/* ===== DOWNLOAD SECTION ===== */
.download-section { background: var(--bg-card); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow-sm); }
.download-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.download-section p { color: #64748b; margin-bottom: 1.5rem; font-size: 1rem; }
.download-buttons { display: flex; justify-content: right; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.download-btn {
  display: flex; align-items: center; gap: 10px; background: #334155;
  color: #fff; padding: 0.75rem 1.5rem; border-radius: 12px;
  text-decoration: none; font-size: 0.9rem; font-weight: 600;
  transition: all 0.2s; border: none; cursor: pointer;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); background: #64748b; }
.download-btn svg { width: 24px; height: 24px; }
.download-btn-text small { display: block; font-size: 0.65rem; font-weight: 400; opacity: 0.7; }
.download-btn-text span { font-size: 0.95rem; font-weight: 600; }

/* ===== SCREENSHOTS ===== */
.app-screenshots { display: flex; gap: 1rem; overflow-x: auto; padding: 1rem 0; margin: 1rem 0; scroll-padding: 1rem; }
.app-screenshots::-webkit-scrollbar { height: 6px; }
.app-screenshots::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
.app-screenshots::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.screenshot-item {
  width: 180px; height: 320px; border-radius: 16px; flex-shrink: 0;
  overflow: hidden; background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex; align-items: center; justify-content: center; border: 0.1px solid #334155;
}
.screenshot-item svg { width: 40px; height: 40px; color: #94a3b8; }

/* ===== GALLERY MODAL & SLIDER ===== */
.gallery-modal {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95);
  z-index: 2000; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-modal.show { display: flex; opacity: 1; }

.gallery-slider {
  width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden;
  display: flex; align-items: center; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}
.gallery-slider::-webkit-scrollbar { display: none; } /* Hide scrollbar */

.gallery-slide {
  flex: 0 0 100%; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  scroll-snap-align: center; padding: 0 15px; box-sizing: border-box;
}
.gallery-slide img {
  max-height: 85vh; max-width: 95vw; object-fit: contain;
  border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.gallery-close {
  position: fixed; top: 20px; right: 20px; width: 44px; height: 44px;
  background: rgba(255,255,255,0.1); border: none; border-radius: 50%;
  color: #fff; font-size: 1.5rem; cursor: pointer; z-index: 2001;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.gallery-close:hover { background: rgba(255,255,255,0.2); }

/* ===== VERSION INFO ===== */
.version-info {
  display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem;
  padding-top: 1.5rem; border-top: 1px solid #f1f5f9;
}
.version-item { text-align: left; }
.version-label { font-size: 0.7rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.version-value { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }

/* ===== VIDEO BANNER ===== */
.video-ad-banner {
  background:var(--accent-gradient);
  border-radius: 16px; overflow: hidden; position: relative;
  height: 220px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: all 0.3s;
  margin: 2rem 0;
}
.video-ad-banner:hover { transform: scale(1.01); box-shadow: 0 12px 40px rgba(124,58,237,0.25); }
.video-ad-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.25);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px;
}
.play-btn {
  width: 64px; height: 64px; background: rgba(255,255,255,0.95);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all 0.3s;
}
.video-ad-banner:hover .play-btn { transform: scale(1.1); box-shadow: 0 6px 30px rgba(0,0,0,0.3); }
.play-btn svg { width: 28px; height: 28px; color: #7c3aed; margin-left: 3px; }
.video-ad-text { color: var(--bg-card); font-size: 1.1rem; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.video-ad-subtext { color: rgba(255,255,255,0.8); font-size: 0.85rem; }

/* ===== VIDEO ROW & WRAPPER ===== */
.video-row {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
}

.video-wrapper {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.video-wrapper .video-ad-banner {
  margin: 0;
  height: 200px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .video-row {
    flex-direction: column;
    gap: 1rem;
  }

  .video-wrapper {
    padding: 1rem;
  }

  .video-wrapper .video-ad-banner {
    height: 180px;
  }

  .video-ad-text {
    font-size: 1rem;
  }

  .video-ad-subtext {
    font-size: 0.8rem;
  }

  .play-btn {
    width: 56px;
    height: 56px;
  }

  .play-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .video-wrapper .video-ad-banner {
    height: 160px;
  }

  .video-wrapper {
    padding: 0.75rem;
  }
}

/* ===== ABOUT CONTENT ===== */
.about-content { background: var(--bg-card); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow-sm); }
.about-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin: 1.5rem 0 0.75rem; }
.about-content h3:first-child { margin-top: 0; }
.about-content p { color: #475569; line-height: 1.7; font-size: 0.95rem; margin-bottom: 0.75rem; }
.about-content ul { list-style: none; padding: 0; }
.about-content ul li {
  padding: 0.6rem 0; color: #475569; font-size: 0.95rem;
  display: flex; align-items: center; gap: 10px;
}
.about-content ul li svg { width: 20px; height: 20px; color: #7c3aed; flex-shrink: 0; }

/* ===== HOW-TO SECTION ===== */
.howto-section { background: var(--bg-card); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow-sm); }
.howto-steps { display: flex; flex-direction: column; gap: 1.5rem; }
.howto-step { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-number {
  width: 36px; height: 36px; background: linear-gradient(135deg, #7c3aed, var(--accent-hover));
  color: var(--bg-card); border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.step-content h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.3rem; }
.step-content p { color: #64748b; font-size: 0.9rem; line-height: 2; }
.howto-tip {
  margin-top: 2rem; background: var(--tab-active-bg); border-radius: 12px;
  padding: 1.25rem; border-left: 4px solid #7c3aed;
}
.howto-tip h4 { color: #7c3aed; margin-bottom: 0.5rem; font-size: 0.95rem; }
.howto-tip p { color: #475569; font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* ===== VIDEO MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 1000; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal-content {
  background: #000; border-radius: 16px; width: 90%;
  max-width: 800px; aspect-ratio: 16/9; position: relative;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  background: rgba(255,255,255,0.15); border: none; border-radius: 50%;
  color: var(--bg-card); font-size: 1.2rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; z-index: 10;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.3); }
.video-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e1b4b, #312e81, #1e3a5f);
  color: var(--bg-card);
}
.video-placeholder svg { width: 80px; height: 80px; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.video-placeholder p { font-size: 1rem; color: rgba(255,255,255,0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .search-box { width: 180px; display: none; }
  .container { padding: 1.5rem 1rem; }
  .download-buttons { flex-direction: column; align-items: center; }
  .navbar-links { gap: 0.5rem; }
  .video-ad-banner { height: 160px; }
  .tab-item { padding: 0.75rem 1rem; font-size: 0.85rem; }
  .version-info { gap: 1rem; }
  .app-card-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

.hr-with-label{
  display: flex;
  align-items: center;
  text-align: center;
  gap: 1rem;
  color: #555;
  margin: 1.25rem 0;
}
.hr-with-label::before,
.hr-with-label::after{
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
}
.hr-with-label span{
  padding: 0.25rem 0.75rem;
  background: white; /* match page bg */
  border-radius: 999px;
  font-size: 0.95rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
