/* =====================================================================
   SkyNet Computer – Hi-Tech Solutions
   Main Stylesheet (Vanilla CSS, Modern, Responsive)
   Theme: Dairy/Tech Green (#1a5c3a) + Clean White
   ===================================================================== */

:root {
  /* Brand Green Palette */
  --primary: #1a5c3a;
  --primary-hover: #154b2f;
  --primary-light: #eaf5ee;
  --primary-subtle: #d3ebd9;
  --primary-dark: #103823;
  --accent: #10b981;
  --accent-light: #d1fae5;

  /* Neutrals & Surfaces */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  /* Status Colors */
  --live-green: #15803d;
  --live-bg: #dcfce7;
  --coming-soon-amber: #b45309;
  --coming-soon-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;

  /* Layout & Elevations */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 14px -2px rgba(16, 24, 40, 0.08), 0 2px 6px -2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(16, 24, 40, 0.12), 0 4px 12px -4px rgba(16, 24, 40, 0.06);
  --shadow-hover: 0 18px 36px -6px rgba(26, 92, 58, 0.16), 0 8px 16px -4px rgba(26, 92, 58, 0.08);

  --container-max: 1140px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------------------
   Base & Reset
   --------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  display: block;
}

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

a:hover {
  color: var(--primary-hover);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.main-content {
  flex: 1 0 auto;
}

/* ---------------------------------------------------------------------
   Header & Navigation
   --------------------------------------------------------------------- */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.nav-menu a {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-btn-admin {
  background: var(--primary-light);
  color: var(--primary) !important;
  font-weight: 600 !important;
  border: 1px solid var(--primary-subtle);
}

.nav-btn-admin:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-main);
}

/* ---------------------------------------------------------------------
   Hero Section
   --------------------------------------------------------------------- */
.hero-section {
  background: linear-gradient(135deg, #103823 0%, #1a5c3a 60%, #237a4d 100%);
  color: #ffffff;
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #d1fae5;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-desc {
  font-size: 1.18rem;
  line-height: 1.6;
  max-width: 660px;
  color: #dcfce7;
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
}

.hero-stat-lbl {
  font-size: 0.85rem;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------------------------
   Homepage: Apps Grid Section
   --------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin: 56px 0 36px;
}

.section-pretitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 72px;
}

/* App Card Component */
.app-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-subtle);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.app-card-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  object-fit: cover;
  background: var(--primary-light);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.app-card-title-wrap {
  flex: 1;
  min-width: 0;
}

.app-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

.app-card-title a {
  color: inherit;
}

.app-card-title a:hover {
  color: var(--primary);
}

.app-card-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  align-self: flex-start;
}

.status-badge.live {
  background: var(--live-bg);
  color: var(--live-green);
  border: 1px solid rgba(21, 128, 61, 0.2);
}

.status-badge.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-green);
}

.status-badge.coming_soon {
  background: var(--coming-soon-bg);
  color: var(--coming-soon-amber);
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.status-badge.coming_soon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coming-soon-amber);
}

.app-card-features-preview {
  margin-bottom: 22px;
  flex: 1;
}

.feature-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.feature-mini-tag {
  background: var(--bg-subtle);
  color: var(--text-body);
  font-size: 0.78rem;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  border: 1px solid var(--border-light);
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: auto;
}

.app-card-version {
  font-size: 0.82rem;
  color: var(--text-light);
  font-family: monospace;
}

.btn-view-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.btn-view-app:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateX(3px);
}

/* ---------------------------------------------------------------------
   Single App Detail Page (app.php)
   --------------------------------------------------------------------- */
.app-detail-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0 54px;
}

.app-hero-layout {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.app-hero-icon {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--primary-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.app-hero-info {
  flex: 1;
}

.app-hero-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.app-hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app-hero-tagline {
  font-size: 1.18rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
}

.app-hero-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 24px;
}

.app-hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.app-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* Play Store Download Button */
.btn-playstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-playstore:hover {
  background: #1e293b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-playstore svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.btn-playstore-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-playstore-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  line-height: 1;
}

.btn-playstore-main {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--coming-soon-bg);
  color: var(--coming-soon-amber);
  border: 1px solid rgba(180, 83, 9, 0.25);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: default;
}

.btn-privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-privacy-link:hover {
  background: var(--bg-subtle);
  color: var(--primary);
  border-color: var(--primary-subtle);
}

/* Features Grid */
.detail-content-wrap {
  padding: 48px 0 64px;
}

.detail-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section-title svg {
  color: var(--primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

/* Languages Section */
.languages-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}

.languages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lang-chip {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--primary-subtle);
}

/* ---------------------------------------------------------------------
   Privacy Policy Page (privacy.php)
   --------------------------------------------------------------------- */
.policy-page-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 36px 0;
}

.policy-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 44px;
  margin: 36px 0 64px;
}

.policy-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--primary-light);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
  border: 1px solid var(--primary-subtle);
  font-size: 0.9rem;
}

.policy-meta-bar strong {
  color: var(--primary-dark);
}

.policy-body {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-body);
}

.policy-body .highlight-box,
.policy-body .privacy-highlight {
  background-color: #e8f5e9;
  border-left: 4px solid #2e7d32;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 20px 0 28px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1b5e20;
}

.policy-body .disclaimer-box {
  background: #fff8e1;
  border-left: 4px solid #ffb300;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin: 28px 0;
  color: #5d4037;
}

.policy-body .disclaimer-box h2,
.policy-body .disclaimer-box h3 {
  color: #b78103;
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.policy-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 0.92rem;
}

.policy-body th,
.policy-body td {
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  text-align: left;
}

.policy-body th {
  background-color: #f8fafc;
  font-weight: 700;
  color: var(--text-main);
}

.policy-body h2 {
  font-size: 1.7rem;
  color: var(--text-main);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.policy-body h2:first-child {
  margin-top: 0;
}

.policy-body h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin: 24px 0 12px;
}

.policy-body p {
  margin-bottom: 16px;
}

.policy-body ul, .policy-body ol {
  margin: 12px 0 20px 24px;
}

.policy-body li {
  margin-bottom: 8px;
}

.policy-body code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #0f172a;
}

.policy-api-banner {
  background: #f8fafc;
  border: 1px dashed var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-top: 36px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------
   Admin Layout & Dashboard
   --------------------------------------------------------------------- */
.admin-header {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 0;
  box-shadow: var(--shadow-md);
}

.admin-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
}

.admin-brand-badge {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-menu a {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.admin-menu a:hover,
.admin-menu a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-logout {
  background: rgba(220, 38, 38, 0.2) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.btn-logout:hover {
  background: var(--danger) !important;
  color: #ffffff !important;
}

.admin-page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Admin Metric Cards */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.admin-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.admin-metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Data Table */
.table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  margin-bottom: 48px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.data-table th {
  background: #f8fafc;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #fafcfb;
}

.table-icon-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.table-app-meta {
  display: flex;
  flex-direction: column;
}

.table-app-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.98rem;
}

.table-app-slug {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-sm {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border-color);
  color: var(--text-body) !important;
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.btn-outline-primary {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary) !important;
}

.btn-outline-primary:hover {
  background: var(--primary-light);
}

.btn-danger {
  background: #ffffff;
  border-color: #fca5a5;
  color: var(--danger) !important;
}

.btn-danger:hover {
  background: var(--danger);
  color: #ffffff !important;
}

/* Forms */
.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  margin-bottom: 48px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.form-label .required {
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 92, 58, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Upload preview box */
.upload-preview-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.upload-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

/* Flash alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success {
  background: var(--live-bg);
  color: var(--live-green);
  border: 1px solid rgba(21, 128, 61, 0.25);
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.alert-info {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* Login Card */
.login-page-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-brand img {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border-radius: 14px;
}

.login-brand h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.login-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 24px;
  border-top: 1px solid #1e293b;
  margin-top: auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  max-width: 380px;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-brand-tagline {
  color: #a7f3d0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-links-col h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

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

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

.footer-links-col a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links-col a:hover {
  color: #34d399;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #cbd5e1;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ---------------------------------------------------------------------
   Responsive Queries
   --------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .app-hero-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .app-hero-header-row {
    justify-content: center;
  }
  .app-hero-meta-row {
    justify-content: center;
  }
  .app-cta-group {
    justify-content: center;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .policy-card {
    padding: 24px 18px;
  }
  .nav-menu {
    display: none;
  }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }
  .mobile-nav-toggle {
    display: block;
  }
}

/* ---------------------------------------------------------------------
   App Screenshots Gallery & Lightbox
   --------------------------------------------------------------------- */
.screenshots-scroll-container {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshots-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.screenshots-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
}

.screenshots-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.screenshots-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.screenshot-card {
  flex: 0 0 auto;
  width: 220px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  scroll-snap-align: start;
  background: #ffffff;
}

.screenshot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.14);
  border-color: var(--primary);
}

.screenshot-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.screenshot-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 24px;
}

.screenshot-modal-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  object-fit: contain;
  animation: zoomInModal 0.2s ease-out;
}

.screenshot-modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #ffffff;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.screenshot-modal-close:hover {
  transform: scale(1.15);
  color: #ef4444;
}

@keyframes zoomInModal {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
