/* Appyn Theme - 100% Crisp Light Theme & Mobile Optimized */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --primary: #059669;
  --primary-light: #10b981;
  --primary-dark: #047857;
  --primary-bg: #ecfdf5;
  --primary-border: #a7f3d0;
  --gold: #d97706;
  --gold-light: #f59e0b;
  --gold-bg: #fef3c7;
  --gold-border: #fde68a;
  --body-bg: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-hover-border: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --danger: #d50000;
  --danger-light: #ef4444;
  --telegram: #0088cc;
  --telegram-hover: #0077b5;
  --radius: 12px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER & NAVBAR (LIGHT THEME) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  border: 1.5px solid var(--primary-light);
}

.brand-text .logo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #0f172a;
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-text .brand-tagline {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  padding: 7px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-telegram {
  background: linear-gradient(135deg, var(--telegram), #0077b5);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.25);
  white-space: nowrap;
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #0077b5, #006699);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #0f172a;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

/* SEARCH BAR */
.search-container {
  position: relative;
  width: 240px;
}

.search-input {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 7px 14px 7px 34px;
  border-radius: 50px;
  font-size: 12.5px;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary-light);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 1050;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.search-item:hover {
  background: #f8fafc;
}

.search-item img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.search-item-info h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.search-item-info span {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
}

/* HERO SECTION (LIGHT THEME) */
.hero-section {
  padding: 16px 0 12px;
}

.hero-banner-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.hero-overlay-bar {
  background: #ffffff;
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-badge.gold {
  background: var(--gold-bg);
  border-color: var(--gold-border);
  color: var(--gold);
}

.hero-badge.green {
  background: var(--primary-bg);
  border-color: var(--primary-border);
  color: var(--primary);
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-hero-download {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 22px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35);
  border: none;
}

.btn-hero-download:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

/* FILTER PILLS (LIGHT THEME) */
.filter-pills-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 0 16px;
  scrollbar-width: none;
}

.filter-pills-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  background: #ffffff;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover, .filter-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

/* SECTION TITLES */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-count {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

/* APPYN APP GRID (LIGHT THEME & PROPORTIONAL BUTTONS) */
.appyn-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 35px;
}

@media (max-width: 1200px) {
  .appyn-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 992px) {
  .appyn-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .appyn-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .appyn-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.appyn-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.appyn-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-hover-border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.card-thumb-wrap {
  position: relative;
  padding: 12px 10px 4px;
  text-align: center;
}

.card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffffff;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-flagship { background: linear-gradient(135deg, #10b981, #059669); }
.badge-top { background: linear-gradient(135deg, #f59e0b, #d97706); }
.badge-hot { background: linear-gradient(135deg, #e11d48, #be123c); }
.badge-new { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.card-img {
  width: 82px;
  height: 82px;
  border-radius: 16px;
  margin: 0 auto;
  object-fit: cover;
  background: #f1f5f9;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
}

.appyn-card:hover .card-img {
  transform: scale(1.04);
}

.card-info {
  padding: 6px 8px 8px;
  text-align: center;
  flex-grow: 1;
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-bonus-tag {
  display: inline-block;
  background: var(--gold-bg);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.card-meta-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}

.card-rating {
  color: #d97706;
  font-weight: 800;
}

/* BUTTONS IN CARD - COMPACT & PROPORTIONAL */
.card-actions {
  display: flex;
  gap: 4px;
  padding: 6px 8px 8px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.btn-card-details {
  flex: 1;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 0;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-card-details:hover {
  background: #e2e8f0;
}

.btn-card-download {
  flex: 1.3;
  background: #d50000;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 0;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #d50000;
  box-shadow: 0 2px 6px rgba(213, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-card-download:hover {
  background: #b70000;
}

/* PHONE / MOBILE SPECIFIC TUNING */
@media (max-width: 600px) {
  .site-header {
    height: 56px;
  }
  .header-inner {
    height: 56px;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
  }
  .brand-text .logo-title {
    font-size: 17px;
  }
  .search-container {
    display: none;
  }
  .btn-telegram {
    padding: 5px 10px;
    font-size: 11px;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
  }
  
  .hero-banner-card {
    border-radius: 12px;
  }
  .hero-overlay-bar {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hero-badges-row {
    gap: 6px;
  }
  .hero-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
  .hero-actions-row {
    width: 100%;
    justify-content: space-between;
  }
  .btn-hero-download {
    font-size: 12.5px;
    padding: 7px 16px;
    border-radius: 30px;
  }
  
  .card-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }
  .card-thumb-wrap {
    padding: 8px 6px 2px;
  }
  .card-info {
    padding: 4px 6px 6px;
  }
  .card-title {
    font-size: 12.5px;
  }
  .card-bonus-tag {
    font-size: 9.5px;
    padding: 1px 5px;
  }
  .card-meta-line {
    font-size: 9.5px;
  }
  
  .card-actions {
    padding: 4px 6px 6px;
    gap: 3px;
  }
  .btn-card-details {
    font-size: 10px;
    padding: 5px 0;
    border-radius: 4px;
  }
  .btn-card-download {
    font-size: 10px;
    padding: 5px 0;
    border-radius: 4px;
    gap: 2px;
  }
  .btn-card-download i {
    font-size: 9px;
  }
}

/* SPECIFICATIONS TABLE (LIGHT THEME) */
.specs-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.specs-table th, .specs-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.specs-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.5px;
}

.specs-table tr:hover td {
  background: #f8fafc;
}

.specs-table td strong {
  color: #0f172a;
}

/* PROMO BANNER (LIGHT THEME) */
.promo-section {
  margin-bottom: 30px;
}

.promo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.promo-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.promo-footer-bar {
  background: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #e2e8f0;
}

/* BLOGS CARDS (LIGHT THEME) */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}

@media (max-width: 992px) {
  .blogs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blogs-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.blog-thumb-wrap {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: #f1f5f9;
}

.blog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-thumb {
  transform: scale(1.04);
}

.blog-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.blog-content {
  padding: 14px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 8px;
}

.blog-excerpt {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 12px;
  flex-grow: 1;
}

.blog-read-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* FAQ ACCORDION (LIGHT THEME) */
.faq-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 35px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.faq-item {
  border-bottom: 1px solid #f1f5f9;
  padding: 12px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.faq-answer {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin-top: 8px;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-icon {
  transition: transform 0.25s ease;
  color: #94a3b8;
  font-size: 12px;
}

/* FOOTER (CLEAN LIGHT THEME) */
.site-footer {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 40px 0 24px;
  color: #475569;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 24px;
  margin-bottom: 30px;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  color: #475569;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 3px;
}

.disclaimer-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 11.5px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #64748b;
}

.copyright-bar {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
}

/* BREADCRUMBS */
.breadcrumbs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0 12px;
  font-size: 12px;
  color: #64748b;
  list-style: none;
}
.breadcrumbs-bar a {
  color: #64748b;
}
.breadcrumbs-bar a:hover {
  color: var(--primary);
}
.breadcrumbs-bar li.active {
  color: #0f172a;
  font-weight: 700;
}

/* APP DETAIL SINGLE PAGE (LIGHT THEME) */
.app-detail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.app-detail-thumb {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  border: 2px solid var(--primary-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  object-fit: cover;
}

.app-detail-info {
  flex-grow: 1;
}

.app-detail-info h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.app-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}

@media (max-width: 600px) {
  .app-detail-card {
    padding: 16px;
    gap: 14px;
  }
  .app-detail-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }
  .app-detail-info h1 {
    font-size: 19px;
  }
  .app-detail-actions {
    width: 100%;
    flex-direction: row;
  }
  .app-detail-actions a {
    flex: 1;
    font-size: 12px !important;
    padding: 8px 12px !important;
  }
}