/* ==========================================================================
   ALGEX SDX — Android App APK Showcase Stylesheet (Dark/Light Responsive)
   ========================================================================== */

.android-app-page {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

/* ==========================================================================
   1. Hero Header
   ========================================================================== */
.android-hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem 1.5rem;
}

.android-hero-title {
  font-size: 2.35rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gradient-android {
  background: linear-gradient(135deg, #34D399, #10B981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.android-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 780px;
}

/* ==========================================================================
   2. Section Header Spacing & Sub-Pills
   ========================================================================== */
.section-header-block {
  text-align: center;
  margin-bottom: 2.5rem;
}

.sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid var(--quantum-blue);
  color: var(--quantum-blue-light);
  margin-bottom: 0.85rem;
  box-shadow: 0 0 14px var(--quantum-glow);
}

[data-theme="light"] .sub-pill {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1D4ED8;
}

.section-h2 {
  font-size: 1.95rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.section-p {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ==========================================================================
   3. Showcase Grid (3D Phone Mockup + Release Card)
   ========================================================================== */
.android-showcase-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* 3D Smartphone Mockup */
.phone-mockup-wrap {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-case {
  width: 340px;
  height: 600px;
  background: #020617;
  border-radius: 44px;
  border: 4px solid #334155;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(52, 211, 153, 0.25);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
}

[data-theme="light"] .phone-case {
  background: #FFFFFF;
  border-color: #94A3B8;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 0 30px rgba(16, 185, 129, 0.2);
}

.phone-case:hover {
  transform: translateY(-8px) rotateY(-4deg);
}

.phone-notch {
  width: 110px;
  height: 20px;
  background: #020617;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

[data-theme="light"] .phone-notch {
  background: #E2E8F0;
}

.speaker {
  width: 32px;
  height: 3px;
  background: #475569;
  border-radius: 2px;
}

.camera {
  width: 6px;
  height: 6px;
  background: #1E293B;
  border-radius: 50%;
  border: 1px solid #64748B;
}

.phone-screen {
  flex: 1;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: 24px;
}

/* Mockup Top Navbar */
.phone-top-navbar {
  height: 48px;
  background: var(--bg-glass-strong);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
  z-index: 10;
}

.p-brand-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.p-brand-logo {
  height: 24px;
  width: auto;
}

.p-brand-title {
  font-size: 0.84rem;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.p-n2n-badge {
  font-size: 0.52rem;
  font-weight: 900;
  background: #F59E0B;
  color: #000000;
  padding: 1px 4px;
  border-radius: 3px;
}

.p-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.p-action-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
}

/* Inner Scrollable Area */
.phone-inner-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px 65px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

.phone-inner-scroll::-webkit-scrollbar {
  width: 3px;
}

.phone-inner-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.phone-inner-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 3px;
}

.p-sovereign-tag {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid var(--quantum-blue);
  border-radius: var(--radius-full);
  padding: 4px 8px;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--quantum-blue-light);
  display: flex;
  align-items: center;
  gap: 5px;
  text-align: center;
  justify-content: center;
}

[data-theme="light"] .p-sovereign-tag {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1D4ED8;
}

.p-app-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
}

.p-app-title span {
  color: var(--quantum-blue-light);
}

.p-app-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.p-stage-dropdown {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-primary);
}

.p-stage-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--quantum-blue);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  margin-left: 4px;
}

.p-section-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.p-stage-h {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.p-h-num {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #2563EB;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}

.p-m2m-badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--instant-green);
}

.p-node-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[data-theme="light"] .p-node-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.p-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p-country-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-primary);
}

.p-c-sub {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 600;
}

.p-exporter-tag {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #F59E0B;
}

.p-importer-tag {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #10B981 !important;
}

[data-theme="light"] .p-importer-tag {
  background: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
  color: #047857 !important;
}

.p-field-select {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xs);
  padding: 5px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
}

[data-theme="light"] .p-field-select {
  background: #F8FAFC;
}

.p-sensor-box {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xs);
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .p-sensor-box {
  background: #F1F5F9;
}

.p-sensor-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--quantum-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
}

.p-sensor-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-sensor-title {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.p-sensor-val {
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.p-sensor-val .unit {
  font-size: 0.55rem;
  color: var(--text-muted);
}

/* Floating AI Mockup Button */
.phone-mockup-ai-btn {
  position: absolute;
  left: 12px;
  bottom: 74px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E3A8A, #2563EB);
  border: 1.5px solid var(--quantum-blue);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.5);
  z-index: 15;
}

.p-ai-ring {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--quantum-blue-light);
  animation: pulseAiRing 2s infinite;
}

/* Mockup Bottom Dock (Floating Rounded Pill matching real app) */
.phone-bottom-dock {
  position: absolute;
  bottom: 18px;
  left: 12px;
  right: 12px;
  height: 48px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 10;
}

[data-theme="light"] .phone-bottom-dock {
  background: rgba(255, 255, 255, 0.95);
  border-color: #CBD5E1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1), 0 0 12px rgba(37, 99, 235, 0.1);
}

.p-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-muted);
}

.p-dock-item.active {
  color: var(--quantum-blue-light);
}

[data-theme="light"] .p-dock-item.active {
  color: #1D4ED8;
  font-weight: 900;
}

.p-dock-icon {
  font-size: 0.8rem;
}

.p-dock-item.active .p-dock-icon {
  width: 26px;
  height: 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-home-indicator {
  width: 80px;
  height: 4px;
  background: #64748B;
  border-radius: 2px;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

/* ==========================================================================
   4. Release Hub Card
   ========================================================================== */
.download-hub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

[data-theme="light"] .download-hub-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.release-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.release-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid #10B981;
  color: #34D399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  flex-shrink: 0;
}

.release-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.release-version {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--instant-green);
  font-family: var(--font-mono);
}

.release-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.apk-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

[data-theme="light"] .apk-specs-grid {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.spec-val {
  font-size: 0.88rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.checksum-box {
  background: #070B14;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

[data-theme="light"] .checksum-box {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.checksum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checksum-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--parity-gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

[data-theme="light"] .checksum-title {
  color: #D97706;
}

.btn-copy-hash {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.btn-copy-hash:hover {
  border-color: var(--quantum-blue);
  color: var(--quantum-blue-light);
  background: rgba(59, 130, 246, 0.1);
}

.checksum-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94A3B8;
  word-break: break-all;
  direction: ltr;
  text-align: left;
}

/* ==========================================================================
   Interactive Security Verification Tutorial & Guide Card
   ========================================================================== */
.checksum-tutorial-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  max-width: 100%;
  min-width: 0;
}

[data-theme="light"] .checksum-tutorial-card {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.tutorial-header-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(59, 130, 246, 0.08);
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
  gap: 0.5rem;
}

.tutorial-header-toggle:hover {
  background: rgba(59, 130, 246, 0.15);
}

.tutorial-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.tutorial-icon-pulse {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid var(--quantum-blue);
  color: var(--quantum-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.tutorial-titles-box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.tutorial-main-title {
  font-size: clamp(0.78rem, 2.2vw, 0.92rem);
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.35;
  word-break: break-word;
}

.guide-en-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--quantum-blue-light);
  direction: ltr;
  display: inline-block;
  unicode-bidi: isolate;
}

[data-theme="light"] .guide-en-tag {
  color: #2563EB;
}

.tutorial-sub-title {
  font-size: clamp(0.68rem, 1.8vw, 0.76rem);
  color: var(--text-secondary);
  line-height: 1.35;
  word-break: break-word;
}

.btn-tutorial-expand {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  padding: 0.25rem;
}

.checksum-tutorial-card.open .btn-tutorial-expand i {
  transform: rotate(180deg);
}

.tutorial-body-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(0.75rem, 2vw, 1.15rem);
  border-top: 1px solid var(--border-glass);
  max-width: 100%;
  min-width: 0;
}

.tutorial-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 768px) {
  .tutorial-info-grid {
    grid-template-columns: 1fr;
  }
}

.t-info-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: clamp(0.75rem, 1.8vw, 0.82rem);
  line-height: 1.55;
  color: var(--text-secondary);
  word-break: break-word;
  overflow-wrap: break-word;
}

[data-theme="light"] .t-info-item {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #334155;
}

.t-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(0.74rem, 1.8vw, 0.8rem);
  font-weight: 800;
  color: var(--quantum-blue-light);
  margin-bottom: 0.35rem;
}

[data-theme="light"] .t-info-badge {
  color: #1D4ED8;
}

.terminal-guide-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: clamp(0.75rem, 2vw, 1rem);
  direction: rtl;
  text-align: right;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

[data-theme="light"] .terminal-guide-wrap {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.terminal-guide-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.78rem, 2vw, 0.86rem);
  font-weight: 800;
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  line-height: 1.4;
}

.os-command-box {
  background: #060913;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-xs);
  padding: 0.6rem 0.75rem;
  max-width: 100%;
  min-width: 0;
}

[data-theme="light"] .os-command-box {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.os-command-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  direction: rtl;
  margin-bottom: 0.45rem;
}

.os-tag {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(0.7rem, 1.8vw, 0.76rem);
  font-weight: 800;
  color: var(--quantum-blue-light);
}

.os-shell-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.85;
  direction: ltr;
  display: inline-block;
  unicode-bidi: isolate;
}

[data-theme="light"] .os-tag {
  color: #1D4ED8;
}

.btn-copy-cmd {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--quantum-blue-light);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-copy-cmd:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: var(--quantum-blue);
  color: #FFFFFF;
}

.terminal-code-box {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.45rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) transparent;
}

.terminal-code-box::-webkit-scrollbar {
  height: 4px;
}

.terminal-code-box::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 4px;
}

[data-theme="light"] .terminal-code-box {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.cli-prompt {
  font-family: var(--font-mono);
  font-weight: 900;
  color: #10B981;
  font-size: 0.76rem;
  user-select: none;
  flex-shrink: 0;
}

.terminal-cmd-text {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 2.2vw, 0.8rem);
  color: #38BDF8;
  font-weight: 700;
  user-select: all;
  white-space: nowrap;
}

[data-theme="light"] .terminal-cmd-text {
  color: #0369A1;
}

.verification-verdict-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.74rem, 1.8vw, 0.82rem);
  line-height: 1.5;
  color: var(--text-secondary);
  direction: rtl;
  text-align: right;
  padding-top: 0.25rem;
  word-break: break-word;
}

.download-action-area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.btn-download-main {
  background: linear-gradient(135deg, #10B981 0%, #047857 100%);
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem 1.75rem;
  color: #FFFFFF;
  font-weight: 900;
  font-size: clamp(0.88rem, 2.2vw, 1.05rem);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  transition: var(--transition-bounce);
  text-align: center;
  word-break: break-word;
}

.btn-download-main i {
  font-size: 1.15rem;
  margin-left: 0.35rem;
  flex-shrink: 0;
}

.btn-download-main:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
}

.download-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  animation: fadeInMsg 0.2s ease-out;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38BDF8, #10B981);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-status {
  font-size: 0.75rem;
  color: var(--instant-green);
  font-weight: 700;
  text-align: center;
}

/* ==========================================================================
   5. Operational Capabilities Cards & Icon Boxes
   ========================================================================== */
.mobile-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.m-feat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.35rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-bounce);
}

[data-theme="light"] .m-feat-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.m-feat-card:hover {
  transform: translateY(-5px);
  border-color: var(--quantum-blue);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.m-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.15rem;
}

/* Beautiful Icon Box Color Schemes */
.m-feat-icon.icon-cyan {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.m-feat-icon.icon-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.m-feat-icon.icon-red {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1.5px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.m-feat-icon.icon-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.m-feat-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.m-feat-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   6. 4-Step Deployment Guide
   ========================================================================== */
.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.guide-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.35rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .guide-step-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  border: 1.5px solid var(--quantum-blue);
  color: var(--quantum-blue-light);
  font-weight: 900;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   7. Responsiveness
   ========================================================================== */
@media (max-width: 1080px) {
  .android-showcase-grid {
    grid-template-columns: 1fr;
  }

  .mobile-features-grid, .guide-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .android-hero-title {
    font-size: 1.65rem;
  }

  .download-hub-card {
    padding: 1.25rem 0.95rem;
    gap: 1.15rem;
    border-radius: var(--radius-md);
  }

  .release-header {
    gap: 0.75rem;
  }

  .release-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.45rem;
    border-radius: 10px;
  }

  .release-title {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .release-version {
    font-size: 0.76rem;
  }

  .release-desc {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .apk-specs-grid {
    grid-template-columns: 1fr;
    padding: 0.85rem;
    gap: 0.65rem;
  }

  .checksum-box {
    padding: 0.75rem 0.85rem;
  }

  .checksum-code {
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .tutorial-header-toggle {
    padding: 0.75rem 0.85rem;
  }

  .tutorial-icon-pulse {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .tutorial-body-content {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .terminal-guide-wrap {
    padding: 0.75rem;
  }

  .os-command-box {
    padding: 0.55rem 0.65rem;
  }

  .terminal-code-box {
    padding: 0.4rem 0.55rem;
  }

  .btn-download-main {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }

  .mobile-features-grid, .guide-steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .btn-copy-hash, .btn-copy-cmd {
    font-size: 0.65rem;
    padding: 0.18rem 0.45rem;
  }

  .terminal-cmd-text {
    font-size: 0.68rem;
  }

  .os-tag {
    font-size: 0.66rem;
  }

  .btn-download-main {
    font-size: 0.82rem;
    padding: 0.8rem 0.85rem;
  }
}
