:root {
  --bg: #050b11;
  --surface: rgba(9, 17, 24, 0.92);
  --surface-soft: rgba(10, 19, 27, 0.8);
  --line: rgba(154, 182, 199, 0.22);
  --text: #ecf6ff;
  --muted: #9eb7c7;
  --lime: #efff1a;
  --lime-soft: #f7ff6a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(228, 255, 42, 0.06), transparent 45%),
    radial-gradient(circle at 84% 12%, rgba(240, 255, 26, 0.05), transparent 48%),
    linear-gradient(180deg, #040911, #050c13 55%, #070e15);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: var(--app-height, 100dvh);
}

.manual-shell {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
}

.manual-topbar {
  position: sticky;
  top: 0.8rem;
  z-index: 30;
  margin-top: 0.9rem;
}

.manual-topbar .manual-shell {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.72rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background:
    radial-gradient(120% 140% at 50% -50%, rgba(240, 255, 26, 0.09), transparent 56%),
    linear-gradient(118deg, rgba(7, 13, 20, 0.96), rgba(9, 15, 23, 0.9));
  backdrop-filter: blur(10px);
}

.manual-brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(0.82rem, 1.25vw, 1.02rem);
}

.manual-brand span {
  color: var(--lime);
}

.manual-back {
  text-decoration: none;
  color: #122300;
  font-size: 0.84rem;
  font-weight: 800;
  border: 1px solid rgba(240, 255, 26, 0.88);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: linear-gradient(110deg, var(--lime), var(--lime-soft));
}

.manual-layout {
  margin-top: 1.1rem;
  padding-bottom: 2rem;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.manual-sidebar {
  position: sticky;
  top: 5.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 0.9rem;
  background: var(--surface-soft);
}

.manual-sidebar-head {
  margin: 0 0 0.7rem;
  color: var(--lime);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.72rem;
}

.manual-nav {
  display: grid;
  gap: 0.34rem;
}

.manual-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.46rem 0.58rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.manual-nav a:hover {
  color: var(--lime);
  border-color: rgba(240, 255, 26, 0.3);
  background: rgba(240, 255, 26, 0.05);
}

.manual-nav a.active {
  color: var(--lime);
  border-color: rgba(240, 255, 26, 0.5);
  background: rgba(240, 255, 26, 0.1);
  font-weight: 700;
}

.manual-content {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(240, 255, 26, 0.1), transparent 62%),
    linear-gradient(160deg, rgba(228, 255, 42, 0.05), transparent 48%),
    var(--surface);
  padding: clamp(1.05rem, 2.1vw, 1.7rem);
}

.manual-section {
  padding: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  scroll-margin-top: 100px;
}

.manual-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(154, 182, 199, 0.3) 50%, transparent);
  margin: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.manual-text-left {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.manual-command-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(5, 11, 17, 0.8);
  border: 1px solid rgba(154, 182, 199, 0.25);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  position: relative;
}

.manual-code-block {
  flex: 1;
  font-family: "SF Mono", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  color: #a8d5e2;
  background: transparent;
  border: none;
  display: block;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.5;
}

.manual-copy-btn {
  background: rgba(240, 255, 26, 0.1);
  border: 1px solid rgba(240, 255, 26, 0.3);
  border-radius: 6px;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.manual-copy-btn:hover {
  background: rgba(240, 255, 26, 0.2);
  border-color: rgba(240, 255, 26, 0.5);
  transform: scale(1.05);
}

.manual-copy-btn:active {
  transform: scale(0.95);
}

.manual-block h1,
.manual-block h2,
.manual-section h1,
.manual-section h2 {
  margin: 0 0 1rem 0;
  font-family: "Unbounded", sans-serif;
  line-height: 1.2;
  width: 100%;
  text-align: left;
}

.manual-section h1 {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

.manual-block h2,
.manual-section h2 {
  font-size: clamp(1.1rem, 2.05vw, 1.45rem);
}

.manual-block p,
.manual-section p {
  margin: 0.5rem 0;
  max-width: 100%;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* Info Cards */
.info-card {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(154, 182, 199, 0.25);
  background: rgba(8, 15, 22, 0.6);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: rgba(154, 182, 199, 0.4);
  background: rgba(8, 15, 22, 0.75);
  transform: translateY(-2px);
}

.info-card-primary {
  border-color: rgba(240, 255, 26, 0.4);
  background: linear-gradient(135deg, rgba(240, 255, 26, 0.08), rgba(8, 15, 22, 0.6));
}

.info-card-primary:hover {
  border-color: rgba(240, 255, 26, 0.6);
}

.info-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(240, 255, 26, 0.1);
  border: 1px solid rgba(240, 255, 26, 0.3);
  color: var(--lime);
}

.info-card-content {
  flex: 1;
}

.info-card-content h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
}

.info-card-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Link Card */
.link-card {
  padding: 1.4rem 1.6rem;
  border-radius: 16px;
  border: 1px solid rgba(240, 255, 26, 0.3);
  background: linear-gradient(135deg, rgba(240, 255, 26, 0.05), rgba(8, 15, 22, 0.5));
  margin-top: 1rem;
}

.link-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  color: var(--lime);
  font-weight: 700;
  font-size: 1rem;
}

.link-card p {
  margin: 0 0 1.2rem 0;
  color: var(--muted);
}

.link-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  border: 1px solid rgba(240, 255, 26, 0.8);
  background: linear-gradient(110deg, var(--lime), var(--lime-soft));
  color: #122300;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(240, 255, 26, 0.2);
}

.link-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(240, 255, 26, 0.3);
}

/* Platform Card */
.platform-card {
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(154, 182, 199, 0.25);
  background: rgba(8, 15, 22, 0.5);
  margin-bottom: 1.5rem;
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: var(--lime);
  font-weight: 700;
  font-size: 1rem;
}

.platform-card p {
  margin: 0;
  line-height: 1.65;
}

/* OS Tabs */
.os-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.os-tab {
  border: 1px solid rgba(154, 182, 199, 0.25);
  border-radius: 14px;
  background: rgba(8, 15, 22, 0.5);
  overflow: hidden;
  transition: all 0.3s ease;
}

.os-tab.active {
  border-color: rgba(240, 255, 26, 0.4);
  background: rgba(8, 15, 22, 0.7);
}

.os-tab-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.os-tab-header:hover {
  color: var(--lime);
  background: rgba(240, 255, 26, 0.05);
}

.os-tab-header .chevron {
  margin-left: auto;
  transition: transform 0.3s ease;
  color: var(--muted);
}

.os-tab.active .chevron {
  transform: rotate(180deg);
  color: var(--lime);
}

.os-tab-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.4rem;
}

.os-tab-content.open {
  max-height: 3000px;
  padding: 0 1.4rem 1.4rem;
}

/* Download Card */
.download-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(240, 255, 26, 0.3);
  background: linear-gradient(135deg, rgba(240, 255, 26, 0.06), rgba(8, 15, 22, 0.4));
  margin-bottom: 1.2rem;
}

.download-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(240, 255, 26, 0.15);
  color: var(--lime);
}

.download-card-content {
  flex: 1;
}

.download-card-content h4 {
  margin: 0 0 0.3rem 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.download-card-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.download-btn {
  display: inline-flex;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(240, 255, 26, 0.8);
  background: linear-gradient(110deg, var(--lime), var(--lime-soft));
  color: #122300;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(240, 255, 26, 0.3);
}

/* Alert Card */
.alert-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  margin-bottom: 1.2rem;
}

.alert-info {
  background: rgba(100, 150, 255, 0.1);
  border: 1px solid rgba(100, 150, 255, 0.3);
  color: #a8c8ff;
}

.alert-card svg {
  flex-shrink: 0;
}

/* Steps Card */
.steps-card {
  padding: 1.4rem;
  border-radius: 12px;
  background: rgba(5, 11, 17, 0.5);
  border: 1px solid rgba(154, 182, 199, 0.2);
}

.steps-card h4 {
  margin: 0 0 1.2rem 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.step-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(240, 255, 26, 0.15);
  border: 1px solid rgba(240, 255, 26, 0.4);
  color: var(--lime);
  font-weight: 800;
  font-size: 0.95rem;
}

.step-content {
  flex: 1;
}

.step-description {
  margin: 0 0 0.7rem 0;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.step-note {
  margin: 0.5rem 0 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

/* Coming Soon Card */
.coming-soon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  border-radius: 16px;
  border: 2px dashed rgba(154, 182, 199, 0.3);
  background: rgba(8, 15, 22, 0.4);
  text-align: center;
}

.coming-soon-card svg {
  color: var(--lime);
  margin-bottom: 1.2rem;
  opacity: 0.7;
}

.coming-soon-card h3 {
  margin: 0 0 0.8rem 0;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
}

.coming-soon-card p {
  margin: 0;
  max-width: 500px;
  color: var(--muted);
}

.footer {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto 1.2rem;
  border: 1px solid rgba(154, 182, 199, 0.24);
  border-radius: 24px;
  padding: clamp(1.05rem, 2.2vw, 1.55rem);
  background:
    radial-gradient(130% 140% at 100% 0%, rgba(240, 255, 26, 0.13), transparent 62%),
    linear-gradient(165deg, rgba(228, 255, 42, 0.06), transparent 52%),
    rgba(8, 15, 22, 0.9);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(170px, 1fr));
  gap: clamp(0.82rem, 1.8vw, 1.2rem);
}

.footer-brand {
  border: 1px solid rgba(154, 182, 199, 0.2);
  border-radius: 16px;
  padding: 0.85rem 0.9rem;
  background: rgba(7, 14, 21, 0.62);
}

.footer-logo {
  text-decoration: none;
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
}

.footer-logo span {
  color: var(--lime);
}

.footer-brand p {
  margin: 0.54rem 0 0;
  color: #9eb5c5;
  line-height: 1.55;
  font-size: 0.88rem;
}

.footer-channel {
  margin-top: 0.74rem;
  display: inline-flex;
  text-decoration: none;
  color: #122300;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid rgba(240, 255, 26, 0.86);
  background: linear-gradient(110deg, var(--lime), var(--lime-soft));
  padding: 0.38rem 0.62rem;
  box-shadow: 0 9px 18px rgba(240, 255, 26, 0.2);
}

.footer-col {
  border: 1px solid rgba(154, 182, 199, 0.2);
  border-radius: 16px;
  padding: 0.85rem 0.9rem;
  background: rgba(7, 14, 21, 0.5);
  display: grid;
  align-content: start;
  gap: 0.34rem;
}

.footer-title {
  margin: 0 0 0.24rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 800;
}

.footer-col a {
  text-decoration: none;
  color: #c4d8e6;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: var(--lime);
  transform: translateX(2px);
}

.footer-bottom {
  margin-top: 0.94rem;
  padding-top: 0.82rem;
  border-top: 1px solid rgba(154, 182, 199, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: #8ea8b9;
  font-size: 0.82rem;
}

.footer-bottom a {
  text-decoration: none;
  color: var(--lime);
  font-weight: 700;
}

@media (max-width: 980px) {
  .manual-layout {
    grid-template-columns: 1fr;
  }

  .manual-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html {
    scroll-behavior: auto;
  }

  .manual-topbar .manual-shell {
    backdrop-filter: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .manual-code-block {
    font-size: 0.75rem;
  }

  .manual-command-content {
    flex-direction: column;
    align-items: stretch;
  }

  .manual-copy-btn {
    align-self: flex-end;
  }

  .info-card {
    flex-direction: column;
    gap: 1rem;
  }

  .info-card-icon {
    width: 40px;
    height: 40px;
  }

  .download-card {
    flex-direction: column;
    text-align: center;
  }

  .download-card-icon {
    width: 40px;
    height: 40px;
  }

  .step-item {
    flex-direction: column;
    gap: 0.8rem;
  }

  .coming-soon-card {
    padding: 2rem 1.5rem;
  }
}
