:root {
  --bg: #0b0f19;
  --card-bg: rgba(17, 24, 39, 0.7);
  --border: rgba(255, 255, 255, 0.06);
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --green: #10b981;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Glow overlays */
.glow-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* Header Nav */
header {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 999999 !important;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo span {
  background: linear-gradient(135deg, var(--primary), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn-secondary {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Google Translate original top bar resets */
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0px !important;
}

.goog-logo-link {
  display: none !important;
}

.goog-te-gadget {
  color: transparent !important;
  font-size: 0px !important;
}

.goog-te-gadget img {
  display: none !important;
}

.skiptranslate {
  display: none !important;
}

/* Custom Dropdown styling */
#langDropdown {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  z-index: 9999999 !important;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

/* CSS Hack to hide duplicate nav links dynamically injected inside navActions when logged in */
#navActions a[href="features/"],
#navActions a[href="how-it-works/"],
#navActions a[href="faqs/"],
#navActions a[href="support/"] {
  display: none !important;
}

/* Common Layout Containers */
.container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.last-updated {
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 30px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-top: 30px;
  margin-bottom: 12px;
}

p {
  margin-bottom: 15px;
}

/* FAQs Accordion items */
details {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 15px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

details[open] {
  background: rgba(59, 130, 246, 0.05);
  border-color: var(--primary);
}

summary {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 20px;
  font-weight: bold;
  color: var(--primary);
}

details[open] summary::after {
  content: "−";
}

.faq-answer {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  cursor: default;
}

/* Forms & Authentication Layout */
.auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 40px 20px;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14.5px;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

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

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s;
  margin-top: 10px;
}

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

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* Alert Message Boxes */
.alert {
  padding: 12px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 20px;
  display: none;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* Support Page Layout */
.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
}

.info-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-item p {
  color: var(--text-muted);
  font-size: 14.5px;
}

.info-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* Setup Steps Grid (how-it-works.php) */
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.step-item {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
}

.step-number {
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.step-content code {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13.5px;
}

/* Features Page specific styles */
.page-header {
  text-align: center;
  margin-bottom: 70px;
}

.page-header h1 {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 50px;
  backdrop-filter: blur(10px);
}

.feature-row.reverse {
  grid-template-columns: 1fr 1fr;
}

.feature-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 25px;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}

.feature-bullets svg {
  color: var(--primary);
  flex-shrink: 0;
}

.feature-visual {
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  height: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset 0 2px 20px rgba(255,255,255,0.02);
}

.visual-tag {
  font-family: monospace;
  font-size: 12px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 20px;
}

.visual-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 13.5px;
}

.visual-row span:first-child {
  color: var(--text-muted);
}

.visual-row span:last-child {
  color: #fff;
  font-weight: 600;
}

.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.05));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 60px 40px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto 30px auto;
}

/* Footer layout rules */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
  z-index: 10;
  margin-top: auto !important;
}

.footer-links {
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links span {
  color: var(--border);
}

/* Responsive Rules overrides */
@media (max-width: 868px) {
  header {
    padding: 20px;
  }
  .feature-row {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 30px;
  }
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }
  .feature-row.reverse .feature-visual {
    order: 2;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .content-card {
    padding: 25px;
  }
}

/* Migrated styles from header.php style tag */
body {
  padding-top: 80px !important;
}

header {
  position: fixed !important;
  top: 0;
  left: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100vw !important;
  padding: 15px 40px !important;
  background: transparent !important;
  border-bottom: 1px solid transparent;
  z-index: 999999 !important;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(11, 15, 25, 0.85) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  outline: none;
  z-index: 9999999 !important;
}

#langDropdown {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  z-index: 9999999 !important;
}

iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0px !important;
}

.goog-logo-link {
  display: none !important;
}

.goog-te-gadget {
  color: transparent !important;
  font-size: 0px !important;
}

.goog-te-gadget img {
  display: none !important;
}

.skiptranslate {
  display: none !important;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

#navActions a[href="features/"],
#navActions a[href="how-it-works/"],
#navActions a[href="faqs/"],
#navActions a[href="support/"] {
  display: none !important;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-wrapper > a {
  margin-right: 10px;
}

.lang-selector-container {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}

.lang-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: background-color 0.2s;
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: 115%;
  right: 0;
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  z-index: 1000;
  min-width: 155px;
  overflow: hidden;
  padding: 4px 0;
  backdrop-filter: blur(10px);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-drawer-header {
  display: none;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999997 !important;
  animation: fadeInOverlay 0.2s ease-out;
}

.mobile-menu-overlay.active {
  display: block;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: block !important;
  }

  .mobile-drawer-header {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .mobile-drawer-header img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
  }

  .nav-wrapper {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(11, 15, 25, 0.98) !important;
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 24px;
    align-items: flex-start;
    gap: 0px !important;
    z-index: 999998 !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
  }

  .nav-wrapper.active {
    display: flex;
    transform: translateX(0);
  }

  .nav-wrapper > a.btn-secondary {
    width: 100%;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 0 !important;
    border-radius: 0;
  }

  .nav-wrapper > a.btn-secondary:last-of-type {
    border-bottom: none !important;
  }

  .lang-selector-container {
    margin-right: 0 !important;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .lang-selector-container button {
    width: 100%;
    justify-content: space-between;
  }

  #navActions {
    width: 100%;
    flex-direction: row !important;
    gap: 10px;
    margin-top: 15px;
  }

  #navActions a {
    flex: 1;
    width: auto;
    text-align: center;
    padding: 10px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px !important;
  }
  header {
    padding: 10px 20px !important;
  }
}

.btn-download {
  color: #10b981 !important;
  font-weight: 700 !important;
}

/* Download Page Styles */
.download-wrapper {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 40px;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.download-card { 
  width: 100%;
  max-width: 900px;
  text-align: center;
  backdrop-filter: blur(12px); 
}

.download-card h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.download-card p.subtitle {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}

.download-option-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 20px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.download-option-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.download-option-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.download-option-card:hover .download-option-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.download-option-card.coming-soon:hover .download-option-icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transform: none;
}

.download-option-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.download-option-card p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
  line-height: 1.5;
  text-align: center;
}

.download-btn {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.2);
  transition: all 0.2s;
  display: inline-block;
}

.download-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.download-btn.secondary-btn {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.download-btn.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

.download-option-card.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.download-option-card.coming-soon:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.02);
}

.badge-coming-soon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .download-wrapper {
    padding: 0 20px;
    margin: 40px auto;
  }
  .download-card {
    padding: 35px 20px;
  }
  .download-card h1 {
    font-size: 28px;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
}

/* Global Font Weight Override */
h1, h2, h3, h4, h5, h6,
.btn-primary, .btn-secondary, .download-btn, .logo, .logo span, header a, footer a {
  font-weight: 400 !important;
}

/* App-Specific Style Overrides to hide public website layout when running inside native app */
body.android-app header,
body.android-app footer,
body.android-app .glow-1,
body.android-app .glow-2 {
  display: none !important;
}

body.android-app .auth-wrapper {
  margin-top: 40px !important;
}

body.android-app {
  padding-top: 0 !important;
  min-height: 100vh !important;
}

/* Authentication Page Logo */
.auth-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
}

.auth-logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}





