/* ==========================================================================
   Reflections Social — Modern Legal & Compliance Documentation Stylesheet
   Version: 1.0.0
   Brand Palette: Amber (#FF6F00), Slate (#1E1E24), Deep Dark (#121214)
   ========================================================================== */

:root {
  --primary: #FF6F00;
  --primary-hover: #E65100;
  --primary-light: rgba(255, 111, 0, 0.12);
  --primary-glow: rgba(255, 111, 0, 0.25);
  
  --bg-color: #FAFAFB;
  --card-bg: #FFFFFF;
  --border-color: #E2E4E8;
  --text-main: #1D1E22;
  --text-muted: #5F6368;
  --text-accent: #FF6F00;
  
  --header-bg: rgba(255, 255, 255, 0.92);
  --table-stripe: #F8F9FA;
  --code-bg: #F1F3F5;
  --callout-info-bg: #E3F2FD;
  --callout-info-border: #2196F3;
  --callout-info-text: #0D47A1;
  --callout-warn-bg: #FFF3E0;
  --callout-warn-border: #FF9800;
  --callout-warn-text: #E65100;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* Dark Theme — Activated when toggled (Default is Light Mode) */
[data-theme="dark"],
html.dark-theme {
  --bg-color: #121214;
  --card-bg: #1E1E24;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #F1F3F5;
  --text-muted: #9AA0A6;
  
  --header-bg: rgba(18, 18, 20, 0.92);
  --table-stripe: #26262D;
  --code-bg: #2B2B33;
  --callout-info-bg: rgba(33, 150, 243, 0.12);
  --callout-info-border: #42A5F5;
  --callout-info-text: #90CAF9;
  --callout-warn-bg: rgba(255, 152, 0, 0.12);
  --callout-warn-border: #FFA726;
  --callout-warn-text: #FFB74D;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-color);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

p, h1, h2, h3, h4, h5, h6, li, td, th {
  overflow-wrap: break-word;
  word-break: break-word;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
  word-break: break-all;
}

a {
  overflow-wrap: break-word;
}

/* Header & Navigation Bar */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
  transition: all 0.2s ease;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-wrapper img,
.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 2px 8px var(--primary-glow);
  display: inline-block;
  vertical-align: middle;
}

.hero-app-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 14px var(--primary-glow);
  display: block;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FF6F00, #FFA000);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 900;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

/* Header Actions & Theme Toggle Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1;
  outline: none;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Light mode (default): show moon to switch to dark */
.sun-icon {
  display: none;
}

.moon-icon {
  display: inline-block;
}

/* Dark mode active: show sun to switch to light */
[data-theme="dark"] .sun-icon,
html.dark-theme .sun-icon {
  display: inline-block;
}

[data-theme="dark"] .moon-icon,
html.dark-theme .moon-icon {
  display: none;
}

/* Hamburger Menu Button */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
}

.hamburger-btn:hover,
.hamburger-btn:focus-visible {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
}

.hamburger-icon {
  display: block;
  width: 22px;
  height: 22px;
  stroke: var(--text-main);
  transition: stroke 0.2s ease;
}

.hamburger-btn:hover .hamburger-icon {
  stroke: var(--primary);
}

.hamburger-btn .icon-close {
  display: none;
}

.hamburger-btn[aria-expanded="true"] .icon-menu {
  display: none;
}

.hamburger-btn[aria-expanded="true"] .icon-close {
  display: block;
}

/* Fallback span-based bars */
.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.2s ease;
}

.hamburger-btn[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
  body.mobile-nav-open {
    overflow: hidden;
  }

  .site-header {
    padding: 0.75rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .nav-container {
    position: relative;
    width: 100%;
    justify-content: space-between;
  }

  .hamburger-btn {
    display: inline-flex;
  }

  .theme-toggle-btn {
    padding: 0.45rem 0.65rem;
    min-width: 38px;
    min-height: 38px;
    justify-content: center;
  }

  .theme-toggle-btn .theme-text {
    display: none; /* Hide label on mobile to save space */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--card-bg);
    border-bottom: 3px solid var(--primary);
    border-top: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem 1.5rem;
    gap: 0.35rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    z-index: 9999;
    list-style: none;
  }

  .nav-links.open {
    display: flex;
    animation: menuSlideDown 0.22s ease-out forwards;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    min-height: 44px;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background-color: var(--primary-light);
    color: var(--primary);
    transform: translateX(4px);
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.65rem 0.85rem;
  }

  .brand-wrapper {
    font-size: 1.1rem;
    gap: 0.5rem;
    max-width: calc(100% - 92px);
  }

  .brand-wrapper span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    flex-shrink: 0;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .theme-toggle-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
  }

  .hamburger-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding: 0.5rem 0.65rem;
  }

  .brand-wrapper {
    font-size: 1rem;
    gap: 0.35rem;
  }

  .brand-icon {
    width: 24px;
    height: 24px;
  }
}

@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Container & Layout */
.container {
  max-width: 1060px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
  flex: 1;
  width: 100%;
}

.doc-wrapper {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

/* Header inside Document */
.doc-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
}

.doc-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-amber {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(255, 111, 0, 0.3);
}

.badge-blue {
  background-color: var(--callout-info-bg);
  color: var(--callout-info-border);
}

/* Table of Contents */
.toc-box {
  background-color: var(--table-stripe);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.toc-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.toc-box ol {
  padding-left: 1.25rem;
}

.toc-box li {
  margin-bottom: 0.4rem;
}

.toc-box a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.toc-box a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Headings & Content Typography */
.content-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.content-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-main);
}

.content-body p {
  margin-bottom: 1rem;
  color: var(--text-main);
}

.content-body ul,
.content-body ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}

.content-body li {
  margin-bottom: 0.45rem;
}

.content-body strong {
  font-weight: 600;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

th {
  background-color: var(--table-stripe);
  padding: 0.85rem 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

tr:nth-child(even) {
  background-color: var(--table-stripe);
}

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

/* Callouts / Alerts */
.callout {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border-left: 4px solid transparent;
}

.callout-info {
  background-color: var(--callout-info-bg);
  border-left-color: var(--callout-info-border);
  color: var(--callout-info-text);
}

.callout-warning {
  background-color: var(--callout-warn-bg);
  border-left-color: var(--callout-warn-border);
  color: var(--callout-warn-text);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Hub Portal Cards Grid (for index.html) */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.portal-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.portal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.portal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.portal-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.portal-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

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

/* Footer */
footer.site-footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Print Styles */
@media print {
  header.site-header,
  footer.site-footer,
  .toc-box {
    display: none !important;
  }
  
  .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .doc-wrapper {
    border: none;
    box-shadow: none;
    padding: 0;
  }
  
  body {
    background-color: #FFFFFF;
    color: #000000;
  }
}

/* ==========================================================================
   Responsive Mobile & Tablet Layout Adaptations
   Breakpoints: 768px (Tablets), 600px (Smartphones), 380px (Compact Devices)
   ========================================================================== */

@media (max-width: 768px) {
  .container {
    margin: 1.5rem auto 3rem;
    padding: 0 1.25rem;
  }

  .doc-wrapper {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .doc-header h1 {
    font-size: clamp(1.4rem, 4.5vw, 1.85rem);
    line-height: 1.3;
  }

  .doc-header {
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .doc-meta {
    gap: 0.65rem;
    font-size: 0.84rem;
  }

  /* App Hero Showcase Card */
  .app-hero-card {
    padding: 1.75rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
  }

  .hero-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .hero-app-big-icon {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    margin: 0 auto;
  }

  .hero-title-row {
    justify-content: center;
  }

  .hero-app-name {
    font-size: clamp(1.5rem, 5vw, 1.9rem);
    line-height: 1.25;
  }

  .hero-developer {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .hero-tagline {
    font-size: 0.94rem;
    margin-bottom: 1.25rem;
  }

  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    width: 100%;
    padding: 0.85rem 0.5rem;
    background: var(--table-stripe);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    justify-items: center;
    margin-bottom: 1.25rem;
  }

  .stat-divider {
    display: none !important;
  }

  .stat-item {
    align-items: center;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .play-store-btn,
  .secondary-pill-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    box-sizing: border-box;
    text-align: center;
  }

  /* Screenshots Gallery */
  .screenshots-section {
    margin: 2rem 0;
  }

  .screenshot-scroll-container {
    padding: 0.5rem 0.1rem 1rem;
    gap: 0.85rem;
  }

  .screenshot-item img {
    height: 280px;
    max-height: 44vh;
  }

  /* Forms & Buttons */
  .form-control {
    font-size: 16px; /* Prevents auto-zoom in iOS Safari */
  }

  .btn,
  .btn-danger,
  .btn-primary,
  .btn-block {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .container {
    margin: 1rem auto 2.25rem;
    padding: 0 0.85rem;
  }

  .doc-wrapper {
    padding: 1.25rem 0.9rem;
    border-radius: 12px;
  }

  .app-hero-card {
    padding: 1.25rem 1rem;
    border-radius: 14px;
  }

  .hero-app-big-icon {
    width: 78px;
    height: 78px;
    border-radius: 16px;
  }

  .portal-grid,
  .app-features-grid,
  .data-safety-grid,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portal-card,
  .feature-box {
    padding: 1.25rem 1rem;
  }

  .toc-box {
    padding: 1.15rem 0.9rem;
    margin-bottom: 1.75rem;
  }

  .callout {
    padding: 1rem 0.85rem;
    margin: 1.15rem 0;
  }

  th, td {
    padding: 0.65rem 0.75rem;
    font-size: 0.84rem;
  }

  .screenshot-item img {
    height: 240px;
    max-height: 40vh;
  }
}

@media (max-width: 380px) {
  .container {
    margin: 0.75rem auto 1.75rem;
    padding: 0 0.65rem;
  }

  .doc-wrapper {
    padding: 1rem 0.75rem;
    border-radius: 10px;
  }

  .app-hero-card {
    padding: 1.1rem 0.75rem;
  }

  .hero-app-big-icon {
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }

  .hero-stats-row {
    padding: 0.65rem 0.25rem;
    gap: 0.5rem;
  }

  .stat-value {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .hero-app-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
  }

  .doc-header h1 {
    font-size: 1.35rem;
  }
}

/* ==========================================================================
   Form Controls & Input Elements (Account Deletion & Data Requests)
   ========================================================================== */
.form-container {
  margin: 1.75rem 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

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

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

.form-label .required {
  color: #E53935;
  margin-left: 0.2rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-helper {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--table-stripe);
  border: 1px solid var(--border-color);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: #E53935;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.45;
  cursor: pointer;
}

.btn-danger {
  background-color: #E53935;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.25);
}

.btn-danger:hover {
  background-color: #C62828;
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

.alert {
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert-success {
  background-color: rgba(46, 125, 50, 0.12);
  border: 1px solid #4CAF50;
  color: #2E7D32;
}

[data-theme="dark"] .alert-success,
html.dark-theme .alert-success {
  background-color: rgba(76, 175, 80, 0.15);
  border-color: #81C784;
  color: #A5D6A7;
}

.alert-danger {
  background-color: rgba(229, 57, 53, 0.12);
  border: 1px solid #E53935;
  color: #C62828;
}

[data-theme="dark"] .alert-danger,
html.dark-theme .alert-danger {
  background-color: rgba(229, 57, 53, 0.15);
  border-color: #EF5350;
  color: #EF9A9A;
}

.badge-red {
  background-color: rgba(229, 57, 53, 0.12);
  color: #E53935;
  border: 1px solid rgba(229, 57, 53, 0.3);
}

.card-notice {
  background-color: var(--table-stripe);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2rem;
}

/* ==========================================================================
   Play Store App Showcase & Landing Section Styles
   ========================================================================== */

.app-hero-card {
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.08) 0%, var(--card-bg) 60%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-app-big-icon {
  width: 104px;
  height: 104px;
  border-radius: 22px;
  object-fit: contain;
  box-shadow: 0 8px 24px var(--primary-glow);
  flex-shrink: 0;
  border: 2px solid rgba(255, 111, 0, 0.2);
}

.hero-info {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.hero-app-name {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-developer {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.hero-developer a {
  color: inherit;
  text-decoration: none;
}

.hero-developer a:hover {
  text-decoration: underline;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

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

.stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.play-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #01875f;
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(1, 135, 95, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.play-store-btn:hover {
  background-color: #016f4e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(1, 135, 95, 0.35);
}

.play-store-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.secondary-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-light);
  color: var(--primary) !important;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 111, 0, 0.25);
  transition: all 0.15s ease;
}

.secondary-pill-btn:hover {
  background-color: var(--primary);
  color: #FFFFFF !important;
}

/* Screenshots Gallery */
.screenshots-section {
  margin: 2.5rem 0;
}

.screenshot-scroll-container {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.75rem 0.25rem 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

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

.screenshot-scroll-container::-webkit-scrollbar-track {
  background: var(--table-stripe);
  border-radius: 4px;
}

.screenshot-scroll-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

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

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.screenshot-item img {
  display: block;
  height: 380px;
  width: auto;
  object-fit: cover;
}

/* Feature Cards Grid */
.features-section {
  margin: 3rem 0;
}

.section-title-wrap {
  margin-bottom: 1.75rem;
}

.section-main-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.app-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.feature-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.feature-box:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.feature-icon-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Data Safety Highlight Box */
.data-safety-banner {
  background: var(--table-stripe);
  border: 1px solid var(--border-color);
  border-left: 4px solid #01875f;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.data-safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.safety-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.safety-item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.safety-item-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.safety-item-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

