*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #01875f;
  --green-dark: #016b4d;
  --green-light: #e6f4f0;
  --blue: #4285f4;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-muted: #9aa0a6;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 1px 6px rgba(0,0,0,.08);
  --shadow-hover: 0 4px 18px rgba(0,0,0,.14);
  --radius: 12px;
  --radius-sm: 8px;
  --star-color: #fbbc04;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', 'Hind Siliguri', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- TOPBAR ---- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.topbar-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.topbar-logo i { font-size: 18px; }
.topbar-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 7px 14px;
}
.topbar-search i { color: var(--text-muted); font-size: 14px; }
.topbar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text-secondary);
  width: 100%;
  cursor: default;
}
.topbar-avatar i { font-size: 28px; color: var(--blue); cursor: pointer; }

/* ---- CONTAINER ---- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 48px;
}

/* ---- APP HEADER CARD ---- */
.app-header-card {
  background: var(--card-bg);
  padding: 24px 20px 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
}

.app-icon-wrap {
  flex-shrink: 0;
  position: relative;
}
.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  border: 1px solid var(--border);
  object-fit: cover;
  display: block;
}
.app-icon-fallback {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, #01875f 0%, #016b4d 100%);
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
}

.app-header-info { flex: 1; }
.app-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 3px;
}
.app-publisher {
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 2px;
}
.app-category {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.app-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---- STATS ROW ---- */
.stats-row {
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  margin-top: 1px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}
.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.star-value { color: var(--text-primary); }
.star-icon { color: var(--star-color); font-size: 14px; }
.dl-icon { color: var(--green); font-size: 13px; }
.count-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.3s ease;
}
.count-num.bump {
  color: var(--green);
  transform: scale(1.2);
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ---- ACTION BUTTONS ---- */

.action-row {
  background: var(--card-bg);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap; 
}

.btn-contact,
.btn-install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-width: 0;
  width: 100%;
  padding: 13px 16px;

  font-size: 15px;
  font-weight: 600;

  white-space: normal;  
  overflow: visible;     
}

.btn-contact i,
.btn-install i {
  flex-shrink: 0;
  font-size: 16px;
}

.btn-contact span,
.btn-install span {
  display: inline-block;
  opacity: 1;
  visibility: visible;
}

@media (max-width: 600px) {
  .action-row {
    flex-direction: column;
  }

  .btn-contact,
  .btn-install {
    width: 100%;
    font-size: 14px;
  }

  .btn-contact span,
  .btn-install span {
    display: inline-block !important;
  }
}

@media (max-width: 600px) {
  .action-row {
    flex-direction: column;
  }

  .btn-install,
  .btn-contact {
    width: 100%;
  }
}

.btn-contact span,
.btn-install span {
  display: inline-block;
  white-space: nowrap;
}

.btn-install {
  flex: 1;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  font-family: 'Hind Siliguri', 'Roboto', sans-serif;
  box-shadow: 0 2px 8px rgba(1,135,95,.35);
}

.btn-install:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 16px rgba(1,135,95,.45);
  transform: translateY(-1px);
}

.btn-install:active {
  transform: scale(0.97);
}

.btn-install.large {
  width: 100%;
  padding: 15px 24px;
  font-size: 16px;
  border-radius: 32px;
}

.btn-install.loading {
  background: #aaa;
  pointer-events: none;
}

.btn-contact {
  background: var(--card-bg);
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 28px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn-contact:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

.btn-contact:active {
  transform: scale(0.97);
}

.btn-contact span,
.btn-install span {
  display: inline-block;
  white-space: nowrap;
}

/* ---- INSTALL PROGRESS ---- */
.install-progress {
  background: var(--card-bg);
  padding: 14px 20px;
  display: none;
  border-bottom: 1px solid var(--border);
}
.install-progress.visible { display: block; }
.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), #00c48c);
  border-radius: 4px;
  transition: width 0.15s ease;
}
.progress-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: 'Hind Siliguri', sans-serif;
}

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #323232;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  font-family: 'Hind Siliguri', sans-serif;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

  .carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 600px; 
    margin: auto;
  }

  .track-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}
  .track {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }

 
  .slide {
    display: flex;
    justify-content: center;
    min-width: 100%;
    padding: 20px 0; 
  }

  .slide img {
    width: 280px;   
    height: auto;   
    
    display: block;
    margin: 0 auto;
    border: 6px solid #1a1a1a;
    border-radius: 24px;
    object-fit: contain;
}


  /* সাইড বাটন ডিজাইন */
  .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    font-size: 18px;
    transition: 0.3s;
  }

  .nav-btn:hover { background: rgba(0, 0, 0, 0.5); }
  .prev { left: 10px; }
  .next { right: 10px; }

  /* ডটস ডিজাইন */
  .dots {
    text-align: center;
    margin-top: 15px;
  }
  .dot {
    height: 8px;
    width: 8px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
  }
  .dot.active { background-color: #00875f; width: 20px; border-radius: 10px; }


/* FEATURES */
.features{
  margin-top:15px;
  background:#fff;
  padding:15px;
  border-radius:10px;
}

.card{
  background:#f0f0f0;
  padding:10px;
  margin-top:8px;
  border-radius:8px;
}

/* ---- FEATURES SECTION ---- */
.features-section {
  background: var(--card-bg);
  padding: 24px 20px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.feature-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 18px;
}
.feature-text h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.feature-text p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-family: 'Hind Siliguri', sans-serif;
}

/* ---- HOW IT WORKS ---- */
.how-section {
  background: var(--card-bg);
  padding: 24px 20px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.steps-wrap::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), #a5d6a7);
  border-radius: 2px;
}
.step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0;
  position: relative;
  z-index: 1;
}
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Hind Siliguri', sans-serif;
  box-shadow: 0 2px 8px rgba(1,135,95,.4);
}
.step-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-family: 'Hind Siliguri', sans-serif;
}
.step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-family: 'Hind Siliguri', sans-serif;
}

.get-started-badge {
  margin-top: 20px;
  display: inline-block;
  background: linear-gradient(135deg, var(--green-light), #b2dfdb);
  color: var(--green-dark);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #a5d6a7;
}

/* ---- WHY OFFLINE ---- */
.why-section {
  background: linear-gradient(135deg, #f0faf6 0%, #e8f5e9 100%);
  padding: 24px 20px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.why-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  border: 1px solid rgba(1,135,95,.15);
  transition: box-shadow 0.2s, transform 0.2s;
}
.why-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.why-icon {
  font-size: 28px;
  color: var(--green);
  margin-bottom: 10px;
  position: relative;
}
.slash-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 20px;
  color: #e53935;
  font-weight: 900;
  line-height: 1;
}
.why-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.why-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---- APP INFO ---- */
.appinfo-section {
  background: var(--card-bg);
  padding: 24px 20px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.appinfo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.appinfo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.appinfo-item:nth-child(odd) { padding-right: 20px; }
.appinfo-item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--border); }
.appinfo-label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.appinfo-label i { color: var(--green); width: 14px; }
.appinfo-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- INCLUDED ---- */
.included-section {
  background: var(--card-bg);
  padding: 24px 20px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.included-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.included-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  font-family: 'Hind Siliguri', 'Roboto', sans-serif;
}
.included-list li i {
  color: var(--green);
  font-size: 16px;
  flex-shrink: 0;
}

/* ---- BOTTOM CTA ---- */
.bottom-cta {
  padding: 20px 20px 8px;
  background: var(--card-bg);
  margin-top: 8px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--text-primary);
  color: #bbb;
  text-align: center;
  padding: 20px 16px;
  font-size: 12px;
  line-height: 1.6;
}

/* ====================================================
              RESPONSIVE  Design
   ==================================================== */
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .appinfo-grid { grid-template-columns: 1fr; }
  .appinfo-item:nth-child(even) { padding-left: 0; border-left: none; }
  .appinfo-item { border-bottom: 1px solid var(--border); }

  .app-name { font-size: 18px; }
  .btn-contact span { display: none; }
  .btn-contact { padding: 13px 16px; }
  .screenshot-placeholder { height: 180px; }
}

@media (max-width: 400px) {
  .app-header-card { flex-direction: column; }
  .app-icon, .app-icon-fallback { width: 64px; height: 64px; }
  .app-icon-fallback { font-size: 28px; border-radius: 16px; }
}

/* Smooth animation for count */
@keyframes popCount {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3); color: var(--green); }
  100% { transform: scale(1); }
}
.count-pop { animation: popCount 0.5s ease; }

/* Admin contact And Footer */

.contact-section {
  background: var(--card-bg);
  text-align: center;
  padding: 40px 20px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
}

.contact-section h2 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.contact-section p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.admin-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  color: var(--green);
  transition: transform 0.2s;
}

.admin-box i {
  font-size: 50px;
  color: var(--green);
}

.admin-box span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-box:hover {
  transform: scale(1.08);
}

.footer {
  background: var(--text-primary);
  color: #bbb;
  text-align: center;
  padding: 18px 12px;
  font-size: 12px;
  margin-top: 0;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.carousel-track-outer {
  overflow: hidden;
}

/* ==============================
   FEATURE CARD PC VIEW 
============================== */

.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.feature-card p {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 2px;
}

/* PC View Fix */
@media (min-width: 768px) {

  .features-section .feature-card,
  .why-section .feature-card {
    min-height: 120px;
    justify-content: center;
  }

  .features-section .feature-card h3,
  .why-section .feature-card h3 {
    font-size: 16px;
  }

  .features-section .feature-card p,
  .why-section .feature-card p {
    font-size: 14px;
    line-height: 1.9;
  }

}

.how-section .step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;

  display: flex;
  align-items: flex-start;
  gap: 14px;

  transition: 0.25s ease;
}

.how-section .step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.steps-wrap::before {
  display: none;
}

.how-section .step-number {
  min-width: 42px;
  min-height: 42px;

  font-size: 16px;
  font-weight: 700;

  border-radius: 12px;
}

.how-section .step-content h3 {
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.how-section .step-content p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* PC View */
@media (min-width: 768px) {

  .how-section .step-card {
    min-height: 105px;
    align-items: center;
  }

  .how-section .step-content h3 {
    font-size: 16px;
  }

  .how-section .step-content p {
    font-size: 14px;
  }

}
