.page-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 140px 24px 100px;
  position: relative;
  z-index: 1;
}


.tab-bar {
  display: inline-flex;
  gap: 4px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px;
  margin-bottom: 52px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
  animation: fadeUp 0.6s 0.1s both;
  transition: background 0.35s, border-color 0.35s;
}

html[data-theme="dark"] .tab-bar {
  background: rgba(5, 10, 20, 0.85);
}

.tab {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text2);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.tab.active {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.tab:not(.active):hover {
  color: var(--accent);
  background: rgba(52, 109, 219, 0.09);
}

html[data-theme="dark"] .tab:not(.active):hover {
  color: var(--accent-light);
  background: rgba(79, 142, 247, 0.10);
}


.panel {
  display: none;
  animation: fadeUp 0.5s both;
}

.panel.active {
  display: block;
}


.doc-header {
  margin-bottom: 44px;
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 109, 219, 0.08);
  border: 1px solid rgba(52, 109, 219, 0.22);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

html[data-theme="dark"] .doc-badge {
  background: rgba(79, 142, 247, 0.09);
  border-color: rgba(79, 142, 247, 0.24);
  color: var(--accent-light);
}

.doc-header h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.04;
  color: var(--text);
  margin-bottom: 12px;
}

.doc-header p {
  font-size: 14px;
  color: var(--text3);
  font-weight: 300;
}


.doc-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 32px;
  margin-bottom: 12px;
  transition: border-color 0.4s, box-shadow 0.4s, background 0.35s;
  box-shadow: var(--card-shadow);
}

html[data-theme="dark"] .doc-section {
  background: rgba(8, 14, 28, 0.72);
  backdrop-filter: blur(8px);
}

.doc-section:hover {
  border-color: var(--border2);
  box-shadow: var(--hover-shadow);
}

html[data-theme="dark"] .doc-section:hover {
  background: rgba(12, 20, 36, 0.82);
}

.sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(52, 109, 219, 0.10);
  border: 1px solid rgba(52, 109, 219, 0.22);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

html[data-theme="dark"] .sec-num {
  background: rgba(79, 142, 247, 0.12);
  border-color: rgba(79, 142, 247, 0.24);
  color: var(--accent-light);
}

.doc-section h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
  color: var(--text);
}

.doc-section p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 10px;
}

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


.doc-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.doc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.65;
  padding: 5px 0;
}

.doc-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
  flex-shrink: 0;
}

.doc-list.allowed li::before {
  background: #22C55E;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.40);
}

.doc-list.denied li::before {
  background: #EF4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.40);
}

.list-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 16px 0 6px;
}


@media (max-width: 600px) {
  .page-wrap {
    padding: 120px 20px 80px;
  }

  .doc-section {
    padding: 24px 20px;
  }

  .tab {
    padding: 8px 16px;
    font-size: 12px;
  }
}