/* ============================================
   AppStore CMS - Global Styles v2
   Mobile-First, Modern, Professional
   ============================================ */

/* --- Variables --- */
:root {
  --primary: #1a6fb5;
  --primary-dark: #125494;
  --primary-light: #e8f2fb;
  --accent: #18b874;
  --accent-light: #e4f8ef;
  --success: #18b874;
  --danger: #e53e3e;
  --warning: #d97706;
  --dark: #0d1f30;
  --dark-2: #132840;
  --dark-3: #1a3352;
  --gray: #4a6275;
  --gray-light: #85a0b5;
  --gray-lighter: #dce8f0;
  --white: #ffffff;
  --bg: #f2f7fb;
  --card-bg: #ffffff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(108,62,244,.10);
  --shadow-lg: 0 12px 40px rgba(108,62,244,.16);
  --transition: .22s cubic-bezier(.4,0,.2,1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font); background: var(--bg); color: var(--dark); line-height: 1.6; overflow-x: hidden; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1 { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { font-size: clamp(.9rem, 2vw, 1rem); color: var(--gray); }

/* --- Container --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media(min-width: 640px) { .container { padding: 0 24px; } }
@media(min-width: 1024px) { .container { padding: 0 40px; } }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(108,62,244,.08);
  height: var(--header-h);
  display: flex; align-items: center;
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--primary); flex-shrink: 0; }
.logo span { color: var(--dark); }
.logo span span { color: var(--accent); }
.logo-icon { width: 34px; height: 34px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; flex-shrink: 0; }

/* Desktop Nav */
.nav-desktop { display: none; gap: 2px; align-items: center; }
.nav-desktop a { padding: 8px 12px; border-radius: 8px; font-size: .88rem; font-weight: 500; color: var(--gray); transition: var(--transition); white-space: nowrap; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--primary); background: var(--primary-light); }
@media(min-width: 1024px) { .nav-desktop { display: flex; } }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

/* Icon buttons */
.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.icon-btn:hover { background: var(--primary-light); color: var(--primary); }
.icon-btn--user {
  width: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1.5px solid var(--gray-lighter);
  background: var(--white);
  color: var(--dark);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
@media(min-width: 520px) {
  .icon-btn--user { width: auto; padding: 0 12px 0 10px; border-radius: 20px; gap: 6px; }
}
.icon-btn--user:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.icon-btn--user.logged-in { background: var(--primary); color: white; border-color: var(--primary); }
.icon-btn--user.logged-in:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.user-btn-label { font-size: .82rem; font-weight: 600; max-width: 90px; overflow: hidden; text-overflow: ellipsis; display: none; }
@media(min-width: 520px) { .user-btn-label { display: inline; } }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  background: var(--accent); color: white;
  font-size: .6rem; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}

/* Burger */
.btn-menu {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px;
  transition: var(--transition);
}
.btn-menu span { display: block; width: 20px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.btn-menu:hover { background: var(--primary-light); }
.btn-menu.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-menu.open span:nth-child(2) { opacity: 0; }
.btn-menu.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media(min-width: 1024px) { .btn-menu { display: none; } }

/* Search overlay */
.search-overlay {
  position: absolute; top: 100%; left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-lighter);
  padding: 12px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  display: none;
  z-index: 500;
}
.search-overlay.open { display: block; }
.search-bar { position: relative; width: 100%; }
.search-bar input {
  width: 100%; padding: 12px 40px 12px 44px;
  border: 1.5px solid var(--gray-lighter);
  border-radius: 50px; font-size: .95rem;
  background: var(--bg);
  transition: var(--transition); min-height: 48px;
}
.search-bar input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,62,244,.1); background: white; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray-light); pointer-events: none; }
.search-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: var(--gray-lighter); border: none; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gray); transition: var(--transition); }
.search-close:hover { background: var(--danger); color: white; }
.search-results { margin-top: 8px; background: white; border: 1px solid var(--gray-lighter); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: none; }
.search-results.visible { display: block; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; transition: var(--transition); border-bottom: 1px solid var(--gray-lighter); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--primary-light); }
.search-result-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.search-result-name { font-weight: 600; font-size: .88rem; }
.search-result-price { font-size: .8rem; color: var(--primary); font-weight: 700; }

/* Search bar inline */
.search-bar-inline { position: relative; }
.search-bar-inline input { padding: 10px 16px 10px 38px; border: 1.5px solid var(--gray-lighter); border-radius: 50px; font-size: .88rem; background: white; min-height: 42px; transition: var(--transition); outline: none; }
.search-bar-inline input:focus { border-color: var(--primary); }
.search-bar-inline .search-icon { left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-light); }

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: white; z-index: 999;
  padding: 16px; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius);
  font-weight: 500; font-size: .95rem; color: var(--dark);
  transition: var(--transition);
}
.mobile-menu a:hover, .mobile-menu a.active { background: var(--primary-light); color: var(--primary); }
.mobile-menu .divider { height: 1px; background: var(--gray-lighter); margin: 8px 0; }
@media(min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #071e33 0%, #0d2e50 55%, #0a3d2e 100%);
  padding: 64px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -40%; left: -10%; width: 55%; height: 200%;
  background: radial-gradient(ellipse, rgba(26,111,181,.25) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; right: -5%; width: 50%; height: 150%;
  background: radial-gradient(ellipse, rgba(24,184,116,.15) 0%, transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media(min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(24,184,116,.15); border: 1px solid rgba(24,184,116,.35); color: #6ee7b7; padding: 6px 14px; border-radius: 50px; font-size: .82rem; font-weight: 600; margin-bottom: 16px; }
.hero h1 { color: white; margin-bottom: 16px; }
.hero h1 span { color: #6ee7b7; }
.hero p { color: #a0bcd0; font-size: 1rem; margin-bottom: 28px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.hero-stat { color: white; }
.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 800; }
.hero-stat span { font-size: .82rem; color: #a0bcd0; }
.hero-visual { display: none; }
@media(min-width: 900px) { .hero-visual { display: block; } }
.hero-mockup { background: rgba(13,46,80,.8); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.mockup-bar { background: rgba(255,255,255,.05); padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #ff5f56; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #27c93f; }
.mockup-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.mockup-app-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 14px; transition: var(--transition); }
.mockup-app-card:hover { background: rgba(26,111,181,.18); border-color: rgba(26,111,181,.35); }
.mockup-app-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.mockup-app-name { font-size: .8rem; font-weight: 600; color: white; }
.mockup-app-price { font-size: .72rem; color: #6ee7b7; font-weight: 700; margin-top: 2px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); font-weight: 600; font-size: .92rem; cursor: pointer; border: none; transition: var(--transition); min-height: 46px; white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 14px rgba(26,111,181,.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,111,181,.4); }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,.3); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-ghost { background: var(--gray-lighter); color: var(--dark); }
.btn-ghost:hover { background: #d1d5db; }
.btn-sm { padding: 8px 16px; font-size: .82rem; min-height: 36px; }
.btn-lg { padding: 15px 28px; font-size: 1rem; min-height: 52px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-banner { background: white; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.btn-banner:hover { background: var(--primary-light); }
.btn-download { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; padding: 8px 16px; border-radius: var(--radius); font-weight: 600; font-size: .82rem; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); border: none; cursor: pointer; min-height: 38px; text-decoration: none; }
.btn-download:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-download.expired { background: var(--gray-lighter); color: var(--gray); transform: none !important; box-shadow: none !important; cursor: default; }

/* ===== SECTION & PAGE HERO ===== */
.section { padding: 56px 0; }
.section-header { margin-bottom: 32px; }
.section-label { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.page-hero-sm { background: linear-gradient(135deg, #071e33, var(--dark-2)); padding: 40px 0 56px; color: white; }
.page-hero-sm .section-label { color: #6ee7b7; }
.page-hero-sm h2 { color: white; }
.page-hero-sm p { color: #a0bcd0; }
.promo-hero { background: linear-gradient(135deg, #071e33, #0a3d2e); }

/* ===== FEATURED BANNER ===== */
.featured-banner { background: linear-gradient(135deg, var(--primary), #1a6fb5 40%, var(--accent)); border-radius: var(--radius-xl); padding: 32px 24px; color: white; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 48px; margin-top: -28px; position: relative; overflow: hidden; }
.featured-banner::before { content: ''; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.1); pointer-events: none; }
.featured-banner h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); margin-bottom: 6px; }
.featured-banner p { color: rgba(255,255,255,.8); font-size: .88rem; margin-bottom: 0; }

/* ===== CATEGORY TABS ===== */
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 28px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { flex-shrink: 0; padding: 8px 18px; border-radius: 50px; font-size: .83rem; font-weight: 600; cursor: pointer; border: 1.5px solid var(--gray-lighter); background: white; color: var(--gray); transition: var(--transition); min-height: 38px; }
.cat-tab.active, .cat-tab:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== APP CARDS ===== */
.apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(min-width: 600px) { .apps-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media(min-width: 1024px) { .apps-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.app-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--gray-lighter); overflow: hidden; transition: var(--transition); cursor: pointer; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.app-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: rgba(26,111,181,.2); }
.app-card-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--primary-light), #fce7f3); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; position: relative; overflow: hidden; }
.app-badge { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 50px; font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.badge-new { background: var(--success); color: white; }
.badge-hot { background: var(--accent); color: white; }
.badge-sale { background: var(--danger); color: white; }
.app-card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.app-card-cat { font-size: .7rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.app-card-name { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; line-height: 1.3; }
.app-card-desc { font-size: .78rem; color: var(--gray-light); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.app-card-footer { display: flex; align-items: center; justify-content: space-between; }
.app-price { font-weight: 800; font-size: .95rem; color: var(--dark); }
.app-price.free { color: var(--success); }
.old-price { font-size: .72rem; color: var(--gray-light); text-decoration: line-through; font-weight: 400; display: block; }
.app-rating { font-size: .75rem; font-weight: 600; color: var(--warning); }

/* ===== CATEGORIES PAGE ===== */
.categories-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(min-width: 640px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width: 1024px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }
.category-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--gray-lighter); padding: 28px 20px; text-align: center; cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.category-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: rgba(26,111,181,.3); }
.category-card-icon { font-size: 2.2rem; width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); }
.category-card h4 { font-size: .95rem; font-weight: 700; color: var(--dark); }
.category-card p { font-size: .8rem; color: var(--gray-light); margin: 0; }

/* ===== TRUST SECTION ===== */
.trust-section { background: var(--primary-light); padding: 48px 0; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { text-align: center; }
.trust-icon { width: 56px; height: 56px; border-radius: var(--radius-lg); background: white; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: var(--primary); box-shadow: var(--shadow-sm); }
.trust-item h4 { font-size: .92rem; margin-bottom: 4px; }
.trust-item p { font-size: .8rem; margin: 0; }

/* ===== ABOUT PAGE ===== */
.about-hero { background: linear-gradient(135deg, #071e33, var(--dark-2), #0a3d2e); padding: 80px 0; color: white; }
.about-hero .section-label { color: #6ee7b7; }
.about-hero h1 { color: white; margin-bottom: 12px; }
.about-hero p { color: #a0bcd0; font-size: 1.1rem; }
.about-mission-block { display: grid; gap: 48px; }
@media(min-width: 900px) { .about-mission-block { grid-template-columns: 1fr 1fr; align-items: center; } }
.about-mission-text { max-width: 520px; }
.about-mission-text h2 { margin-bottom: 16px; }
.about-mission-text p { line-height: 1.8; }
.about-mission-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-stat { background: var(--primary-light); border-radius: var(--radius-lg); padding: 24px 20px; text-align: center; }
.about-stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); }
.about-stat span { font-size: .85rem; color: var(--gray); margin-top: 4px; display: block; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(min-width: 768px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card { background: white; border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; }
.value-icon { font-size: 2rem; margin-bottom: 12px; }
.value-card h4 { margin-bottom: 8px; }
.value-card p { font-size: .85rem; margin: 0; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 56px; }
@media(min-width: 640px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--gray-lighter); padding: 28px 20px; text-align: center; }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; font-weight: 700; margin: 0 auto 16px; }
.team-card h4 { font-size: 1rem; margin-bottom: 4px; }
.team-card p { font-size: .82rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.team-card span { font-size: .82rem; color: var(--gray-light); }
.about-contact-block { background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: var(--radius-xl); padding: 48px 36px; text-align: center; color: white; }
.about-contact-block h3 { color: white; font-size: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 12px; }
.about-contact-block p { color: rgba(255,255,255,.8); margin-bottom: 24px; }

/* ===== PRODUCT PAGE ===== */
.app-page-header { background: linear-gradient(135deg, #071e33, var(--dark-2)); padding: 40px 0 60px; color: white; }
.app-page-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.app-icon-lg { width: 80px; height: 80px; border-radius: var(--radius-lg); font-size: 2.5rem; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-page-info h1 { font-size: clamp(1.4rem, 4vw, 2rem); color: white; }
.meta-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.meta-tag { padding: 3px 10px; border-radius: 50px; font-size: .75rem; font-weight: 600; background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.buy-box { background: white; border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-lighter); position: sticky; top: calc(var(--header-h) + 16px); }
.buy-box-price { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.buy-box-price .strike { font-size: 1rem; color: var(--gray-light); text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.buy-box-includes { margin: 16px 0; }
.buy-box-includes li { padding: 6px 0; font-size: .88rem; color: var(--gray); display: flex; align-items: center; gap: 8px; }
.buy-box-includes li::before { content: '✓'; color: var(--success); font-weight: 700; }
.guarantee { background: var(--gray-lighter); border-radius: var(--radius); padding: 10px 14px; font-size: .78rem; color: var(--gray); text-align: center; margin-top: 12px; }
.screenshots-wrap { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.screenshots { flex: 1; min-width: 0; display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; width: 100%; box-sizing: border-box; }
.screenshots::-webkit-scrollbar { display: none; }
.sc-scroll-btn { flex-shrink: 0; background: white; border: 1px solid var(--gray-lighter); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.1); transition: var(--transition); font-size: .9rem; color: var(--gray); }
.sc-scroll-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.screenshot-thumb { flex-shrink: 0; width: 180px; height: 120px; border-radius: var(--radius); background: var(--gray-lighter); overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.screenshot-thumb:hover, .screenshot-thumb.active { border-color: var(--primary); }
/* Lightbox */
.screenshot-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; flex-direction: column; align-items: center; justify-content: center; }
.screenshot-lightbox.open { display: flex; }
.lightbox-main-wrap { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; padding: 48px 64px 16px; box-sizing: border-box; min-height: 0; }
.lightbox-main-img { max-width: 100%; max-height: 70vh; border-radius: var(--radius-lg); object-fit: contain; box-shadow: 0 8px 40px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 16px; right: 20px; background: rgba(255,255,255,.15); border: none; color: white; font-size: 1.3rem; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); z-index: 1; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: none; color: white; font-size: 1.3rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.lightbox-nav-btn:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-counter { color: rgba(255,255,255,.6); font-size: .85rem; padding: 4px 0 8px; flex-shrink: 0; }
.lightbox-thumbs { display: flex; gap: 10px; padding: 10px 20px 16px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; max-width: 100%; flex-shrink: 0; }
.lightbox-thumb { flex-shrink: 0; width: 100px; height: 68px; border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(255,255,255,.2); cursor: pointer; transition: var(--transition); opacity: .55; }
.lightbox-thumb:hover { opacity: .85; border-color: rgba(255,255,255,.5); }
.lightbox-thumb.active { border-color: white; opacity: 1; }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.6); transition: var(--transition); }
.breadcrumb a:hover { color: white; }
.breadcrumb .sep { color: rgba(255,255,255,.3); }

/* Reviews */
.review-card { background: white; border: 1px solid var(--gray-lighter); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 14px; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.review-meta strong { display: block; font-size: .88rem; }
.review-meta span { font-size: .78rem; color: var(--gray-light); }
.review-stars { color: var(--warning); font-size: .85rem; margin-left: auto; }
.review-body { font-size: .88rem; color: var(--gray); line-height: 1.7; }
.rating-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rating-bar-track { flex: 1; height: 6px; background: var(--gray-lighter); border-radius: 3px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--warning); border-radius: 3px; }
.rating-bar-label { font-size: .78rem; color: var(--gray-light); width: 20px; text-align: right; }
.rating-bar-count { font-size: .78rem; color: var(--gray-light); width: 28px; }
.rating-overview { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; padding: 20px; background: var(--bg); border-radius: var(--radius-lg); }
.rating-big { text-align: center; }
.rating-big strong { display: block; font-size: 3rem; font-weight: 800; color: var(--dark); line-height: 1; }
.rating-big span { font-size: .8rem; color: var(--gray-light); display: block; margin-top: 4px; }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; gap: 24px; padding: 24px 0; }
@media(min-width: 900px) { .checkout-layout { grid-template-columns: 1fr 380px; align-items: start; } }
.checkout-card { background: white; border: 1px solid var(--gray-lighter); border-radius: var(--radius-xl); overflow: hidden; }
.checkout-card-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-lighter); font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; flex-shrink: 0; }
.checkout-card-body { padding: 20px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .83rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-lighter); border-radius: var(--radius); font-size: .9rem; color: var(--dark); background: white; transition: var(--transition); min-height: 46px; -webkit-appearance: none; outline: none; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,111,181,.1); }
.form-control::placeholder { color: var(--gray-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: .75rem; color: var(--gray-light); margin-top: 4px; }
.form-error { font-size: .75rem; color: var(--danger); margin-top: 4px; display: none; }
.form-control.is-error { border-color: var(--danger); }
.form-control.is-error + .form-error { display: block; }
.payment-methods { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pay-method { flex: 1; min-width: 90px; padding: 11px 8px; border: 2px solid var(--gray-lighter); border-radius: var(--radius); cursor: pointer; text-align: center; transition: var(--transition); font-size: .82rem; font-weight: 600; color: var(--gray); display: flex; align-items: center; justify-content: center; gap: 6px; }
.pay-method:hover, .pay-method.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.order-summary-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-lighter); }
.order-summary-item:last-of-type { border-bottom: none; }
.order-item-icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.order-item-name { font-weight: 600; font-size: .88rem; }
.order-item-version { font-size: .75rem; color: var(--gray-light); }
.order-item-price { font-weight: 700; margin-left: auto; white-space: nowrap; font-size: .9rem; }
.order-total-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .88rem; }
.order-total-row.total { font-weight: 800; font-size: 1.05rem; border-top: 2px solid var(--gray-lighter); margin-top: 8px; padding-top: 12px; }
.secure-badge { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--gray-light); justify-content: center; margin-top: 12px; }
.instant-badge { background: var(--accent-light); border-radius: var(--radius); padding: 10px 12px; margin-top: 12px; font-size: .82rem; color: var(--accent); font-weight: 600; display: flex; gap: 6px; align-items: center; }

/* ===== ACCOUNT ===== */
.account-layout { display: grid; gap: 24px; padding: 24px 0; }
@media(min-width: 900px) { .account-layout { grid-template-columns: 240px 1fr; align-items: start; } }
.account-sidebar { background: white; border: 1px solid var(--gray-lighter); border-radius: var(--radius-xl); overflow: hidden; }
.account-sidebar-user { padding: 20px; border-bottom: 1px solid var(--gray-lighter); text-align: center; }
.user-avatar-lg { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; font-weight: 700; margin: 0 auto 10px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: .88rem; font-weight: 500; color: var(--gray); transition: var(--transition); border-left: 3px solid transparent; }
.account-nav a:hover, .account-nav a.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); }
.purchase-card { background: white; border: 1px solid var(--gray-lighter); border-radius: var(--radius-lg); padding: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; transition: var(--transition); }
.purchase-card:hover { box-shadow: var(--shadow); }
.purchase-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.purchase-info { flex: 1; min-width: 0; }
.purchase-name { font-weight: 700; margin-bottom: 2px; font-size: .92rem; }
.purchase-date { font-size: .78rem; color: var(--gray-light); }
.purchase-status { padding: 4px 10px; border-radius: 50px; font-size: .72rem; font-weight: 700; }
.status-completed { background: #dcfce7; color: #16a34a; }
.status-pending { background: #fef9c3; color: #a16207; }
.status-failed { background: #fee2e2; color: #dc2626; }
.badge-info { background: var(--primary-light); color: var(--primary); padding: 5px 12px; border-radius: 50px; font-size: .78rem; font-weight: 700; }
.table-wrap { background: white; border: 1px solid var(--gray-lighter); border-radius: var(--radius-lg); overflow: hidden; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table thead { background: var(--bg); }
.data-table th { padding: 12px 16px; text-align: left; font-size: .75rem; color: var(--gray-light); text-transform: uppercase; font-weight: 600; }
.data-table td { padding: 14px 16px; border-top: 1px solid var(--gray-lighter); }

/* ===== AUTH PAGES ===== */
.auth-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--gray-lighter); padding: 32px 28px; }
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-icon { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.auth-header h2 { margin-bottom: 6px; }
.auth-header p { font-size: .88rem; }
.auth-footer { text-align: center; margin-top: 20px; font-size: .85rem; color: var(--gray-light); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ===== SUCCESS PAGE ===== */
.success-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 16px; }
.success-icon { width: 80px; height: 80px; border-radius: 50%; background: #dcfce7; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 20px; }

/* ===== TABS ===== */
.tabs-header { display: flex; border-bottom: 2px solid var(--gray-lighter); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs-header::-webkit-scrollbar { display: none; }
.tab-btn { flex-shrink: 0; padding: 10px 16px; font-weight: 600; font-size: .88rem; color: var(--gray); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: var(--transition); margin-bottom: -2px; white-space: nowrap; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover { color: var(--dark); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 20px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--dark); color: white; padding: 12px 16px; border-radius: var(--radius); font-size: .85rem; font-weight: 500; max-width: 300px; box-shadow: var(--shadow-lg); animation: slideInToast .3s ease; display: flex; align-items: center; gap: 8px; pointer-events: all; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--primary); }
@keyframes slideInToast { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: #9ca3af; padding: 48px 0 24px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
@media(min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; max-width: 260px; line-height: 1.7; }
.footer-heading { color: white; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-links li a { font-size: .85rem; display: block; padding: 4px 0; transition: var(--transition); }
.footer-links li a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .8rem; }
.social-links { display: flex; gap: 8px; }
.social-link { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; color: #9ca3af; transition: var(--transition); }
.social-link:hover { background: var(--primary); color: white; }

/* ===== DEMO TAB ===== */
#demo { display: flex; flex-direction: column; gap: 24px; }
.demo-section-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: var(--dark); margin: 0 0 16px; }
.demo-section-title svg { flex-shrink: 0; color: var(--primary); }
.demo-videos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.demo-videos-grid--single { grid-template-columns: 1fr; }
@media (max-width: 600px) { .demo-videos-grid { grid-template-columns: 1fr; } }
.demo-video-item { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.demo-video-wrap { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background: #000; }
.demo-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.demo-empty { text-align: center; color: var(--gray); font-size: .9rem; padding: 32px 16px; background: var(--gray-lighter, #f1f5f9); border-radius: var(--radius-lg); }
.demo-box { background: linear-gradient(135deg, var(--primary-light), var(--accent-light)); border: 1.5px solid rgba(26,111,181,.2); border-radius: var(--radius-xl); padding: 28px 24px; text-align: center; }
.demo-box h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--dark); }
.demo-box p { font-size: .88rem; color: var(--gray); margin-bottom: 20px; }
.demo-link-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: white; font-weight: 700; font-size: .95rem; padding: 13px 28px; border-radius: var(--radius-lg); text-decoration: none; transition: var(--transition); box-shadow: 0 4px 14px rgba(24,184,116,.3); }
.demo-link-btn:hover { background: #159c60; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(24,184,116,.4); }
.demo-info-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.demo-info-badge { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--gray); background: white; border-radius: 50px; padding: 5px 12px; border: 1px solid var(--gray-lighter); }

/* ===== APP CARD - DEMO BADGE ===== */
.badge-demo { background: var(--accent); color: white; }

/* ===== SHADOW VARS ===== */
:root { --shadow: 0 4px 16px rgba(26,111,181,.10); --shadow-lg: 0 12px 40px rgba(26,111,181,.14); }
#scroll-top { position: fixed; bottom: 20px; left: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: var(--transition); z-index: 900; }
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== UTILS ===== */
.page { display: none; }
.page.active { display: block; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
