:root {
  --tg-page: #071018;
  --tg-paper: #121b25;
  --tg-paper-strong: #182331;
  --tg-panel: #0e1722;
  --tg-side: #0b141e;
  --tg-line: rgba(137, 174, 220, 0.14);
  --tg-line-strong: rgba(137, 174, 220, 0.24);
  --tg-ink: #edf4ff;
  --tg-copy: #9baac0;
  --tg-soft: #728198;
  --tg-rust: #5ecbff;
  --tg-rust-deep: #347dff;
  --tg-success: #64d2a3;
  --tg-danger: #ff7c8f;
  --tg-accent-fog: rgba(94, 203, 255, 0.14);
  --tg-shadow-lg: 0 34px 80px rgba(1, 7, 15, 0.48);
  --tg-shadow-md: 0 18px 38px rgba(1, 7, 15, 0.32);
  --tg-radius-xl: 30px;
  --tg-radius-lg: 22px;
  --tg-radius-md: 16px;
  --tg-radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--tg-ink);
  background:
    radial-gradient(circle at top left, rgba(94, 203, 255, 0.18), transparent 24%),
    radial-gradient(circle at right 18%, rgba(52, 125, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #0a1420 0%, var(--tg-page) 48%, #060c13 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.tg-site-page {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.tg-site-page::before,
.tg-site-page::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.tg-site-page::before {
  top: -120px;
  left: -180px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 203, 255, 0.2), transparent 70%);
  filter: blur(26px);
}

.tg-site-page::after {
  right: -140px;
  bottom: 80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 125, 255, 0.16), transparent 72%);
  filter: blur(20px);
}

.tg-site-shell {
  position: relative;
  z-index: 1;
  width: min(1520px, 100%);
  margin: 0 auto;
}

.tg-site-topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  padding: 22px 24px 20px 24px;
  border: 1px solid var(--tg-line-strong);
  border-radius: var(--tg-radius-xl);
  background:
    linear-gradient(180deg, rgba(24, 35, 49, 0.94), rgba(11, 19, 29, 0.92));
  box-shadow: var(--tg-shadow-lg);
  backdrop-filter: blur(16px);
}

.tg-site-topbar::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 18px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tg-rust), rgba(52, 125, 255, 0.3));
}

.tg-site-titlebox {
  padding-left: 14px;
}

.tg-site-titlebox h1,
.tg-card h2,
.tg-form-head h2,
.tg-sidebar-head h2,
.tg-form-section h3,
.tg-sidebar-stats h3 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.045em;
}

.tg-site-titlebox h1 {
  max-width: 860px;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 0.94;
}

.tg-site-kicker,
.tg-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--tg-rust);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tg-site-kicker::after,
.tg-card-kicker::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, rgba(94, 203, 255, 0.55), transparent);
}

.tg-site-userbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.tg-site-usermenu {
  position: relative;
}

.tg-site-usercard {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 240px;
  padding: 8px 10px;
  border: 1px solid rgba(137, 174, 220, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 34, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: left;
}

.tg-site-usercard-button {
  width: 100%;
  border: 1px solid rgba(137, 174, 220, 0.16);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tg-site-usercard-button:hover,
.tg-site-usercard-button[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: rgba(94, 203, 255, 0.36);
  box-shadow: 0 18px 32px rgba(2, 10, 18, 0.32);
}

.tg-site-usercard strong,
.tg-site-usercard span {
  display: block;
}

.tg-site-usercard strong {
  font-size: 0.98rem;
}

.tg-site-usercard span {
  color: var(--tg-copy);
  font-size: 0.82rem;
}

.tg-site-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(137, 174, 220, 0.2);
  background: #213247;
}

.tg-site-avatar-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
}

.tg-site-userdropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  min-width: 240px;
  padding: 12px;
  border: 1px solid rgba(137, 174, 220, 0.18);
  border-radius: 22px;
  background: rgba(13, 21, 31, 0.98);
  box-shadow: 0 26px 44px rgba(1, 7, 15, 0.48);
}

.tg-site-userdropdown-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.tg-site-userdropdown-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--tg-ink);
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tg-site-userdropdown-link:hover {
  background: rgba(94, 203, 255, 0.12);
  transform: translateX(2px);
}

.tg-site-userdropdown-link.is-danger {
  background: linear-gradient(135deg, #8f3043, #71202d);
  color: #ffe8ee;
}

.tg-site-userdropdown-link.is-danger:hover {
  background: linear-gradient(135deg, #a73b50, #812534);
}

.tg-site-link,
.tg-primary-btn,
.tg-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tg-site-link,
.tg-primary-btn {
  background: linear-gradient(135deg, var(--tg-rust), var(--tg-rust-deep));
  color: #f3fbff;
  box-shadow: 0 14px 28px rgba(26, 93, 163, 0.28);
}

.tg-site-link:hover,
.tg-primary-btn:hover,
.tg-secondary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(1, 7, 15, 0.34);
}

.tg-site-link-muted,
.tg-secondary-btn {
  background: rgba(18, 27, 37, 0.92);
  color: var(--tg-ink);
  border-color: rgba(137, 174, 220, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tg-flash {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-md);
  font-weight: 700;
  box-shadow: var(--tg-shadow-md);
  backdrop-filter: blur(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, margin 0.2s ease;
}

.tg-flash.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  margin-bottom: 0;
}

.tg-flash-success {
  background: rgba(38, 93, 71, 0.28);
  border-color: rgba(100, 210, 163, 0.2);
  color: var(--tg-success);
}

.tg-flash-error {
  background: rgba(99, 31, 44, 0.3);
  border-color: rgba(255, 124, 143, 0.24);
  color: var(--tg-danger);
}

.tg-hero-grid,
.tg-summary-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

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

.tg-summary-grid {
  grid-template-columns: minmax(300px, 460px);
}

.tg-card,
.tg-profile-list,
.tg-sidebar-stats,
.tg-form,
.tg-path-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-lg);
  background: linear-gradient(180deg, rgba(20, 30, 42, 0.96), rgba(11, 19, 29, 0.96));
  box-shadow: var(--tg-shadow-md);
  backdrop-filter: blur(8px);
}

.tg-card::before,
.tg-profile-list::before,
.tg-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 193, 255, 0.34), transparent);
}

.tg-card {
  padding: 18px;
}

.tg-card-accent {
  background: linear-gradient(180deg, #192536, #0c1420);
  border-color: rgba(94, 203, 255, 0.16);
  color: #eef7ff;
}

.tg-card-accent .tg-card-kicker,
.tg-card-accent p,
.tg-card-accent li,
.tg-card-accent h2 {
  color: #eef7ff;
}

.tg-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 1.7vw, 1.95rem);
}

.tg-card p {
  margin: 0 0 8px;
  color: var(--tg-copy);
  line-height: 1.5;
}

.tg-list {
  margin: 0;
  padding-left: 18px;
  color: var(--tg-copy);
  line-height: 1.55;
}

.tg-stat-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(137, 174, 220, 0.1);
}

.tg-stat-line:last-child {
  border-bottom: 0;
}

.tg-stat-line span {
  color: var(--tg-copy);
}

.tg-stat-line strong {
  text-align: right;
}

.tg-admin-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.tg-sidebar {
  position: sticky;
  top: 14px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(137, 174, 220, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(11, 20, 30, 0.96), rgba(7, 14, 22, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tg-main-panel {
  position: relative;
  isolation: isolate;
  z-index: 1;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(137, 174, 220, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(15, 22, 33, 0.88), rgba(8, 14, 22, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tg-sidebar-head,
.tg-form-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.tg-sidebar-head .tg-card-kicker,
.tg-form-head .tg-card-kicker {
  margin-bottom: 8px;
}

.tg-form-head-actions {
  position: relative;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.tg-form-head-actions .tg-primary-btn,
.tg-form-head-actions .tg-secondary-btn {
  position: relative;
  z-index: 9;
  pointer-events: auto;
}

.tg-sidebar-caption {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(94, 203, 255, 0.16);
  border-radius: 999px;
  background: rgba(24, 35, 49, 0.92);
  color: var(--tg-copy);
  font-size: 0.84rem;
  font-weight: 700;
}

.tg-profile-list {
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(14, 23, 34, 0.92), rgba(9, 17, 27, 0.9));
}

.tg-profile-item {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(137, 174, 220, 0.1);
  border-radius: 16px;
  background: rgba(22, 33, 46, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.tg-profile-item + .tg-profile-item {
  margin-top: 8px;
}

.tg-profile-item:hover {
  transform: translateX(2px);
  border-color: rgba(94, 203, 255, 0.24);
  background: rgba(24, 37, 53, 0.96);
  box-shadow: 0 14px 26px rgba(1, 7, 15, 0.28);
}

.tg-profile-item.is-active {
  border-color: rgba(94, 203, 255, 0.3);
  background: linear-gradient(135deg, rgba(29, 47, 67, 0.96), rgba(16, 28, 42, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(154, 217, 255, 0.12),
    0 18px 30px rgba(1, 7, 15, 0.34);
}

.tg-profile-item strong {
  font-size: 1rem;
}

.tg-profile-item span {
  color: var(--tg-copy);
  font-size: 0.82rem;
}

.tg-profile-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--tg-accent-fog);
  color: #9dddff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tg-profile-item-empty {
  border: 1px dashed rgba(137, 174, 220, 0.22);
}

.tg-sidebar-stats {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(137, 174, 220, 0.12);
  background: linear-gradient(180deg, rgba(17, 28, 40, 0.96), rgba(10, 18, 28, 0.92));
}

.tg-sidebar-stats h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.tg-sidebar-stats p {
  margin: 0 0 6px;
  color: var(--tg-copy);
}

.tg-form {
  position: relative;
  z-index: 1;
  padding: 16px;
  background: linear-gradient(180deg, rgba(20, 31, 44, 0.98), rgba(11, 18, 28, 0.96));
}

.tg-form-head {
  position: relative;
  z-index: 6;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(137, 174, 220, 0.12);
}

.tg-form-head h2 {
  font-size: clamp(1.8rem, 2vw, 2.45rem);
}

.tg-form-subtitle {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--tg-copy);
  line-height: 1.55;
}

.tg-panel-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid rgba(137, 174, 220, 0.12);
  border-radius: 999px;
  background: rgba(10, 17, 27, 0.94);
}

.tg-panel-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tg-copy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tg-panel-switch-btn:hover {
  transform: translateY(-1px);
  color: var(--tg-ink);
}

.tg-panel-switch-btn.is-active {
  background: linear-gradient(135deg, var(--tg-rust), var(--tg-rust-deep));
  color: #f3fbff;
  box-shadow: 0 12px 22px rgba(26, 93, 163, 0.28);
}

.tg-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.tg-dashboard-grid.is-home,
.tg-dashboard-grid.is-profile,
.tg-dashboard-grid.is-stats,
.tg-dashboard-grid.is-premium,
.tg-dashboard-grid.is-account {
  grid-template-columns: minmax(0, 1fr);
}

.tg-dashboard-grid.is-home .tg-news-board,
.tg-dashboard-grid.is-profile .tg-section-grid,
.tg-dashboard-grid.is-stats .tg-stats-grid,
.tg-dashboard-grid.is-premium .tg-cabinet-grid,
.tg-dashboard-grid.is-account .tg-account-grid {
  width: 100%;
}

.tg-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tg-cabinet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tg-cabinet-card {
  padding: 18px;
  border: 1px solid rgba(137, 174, 220, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22, 33, 46, 0.98), rgba(12, 20, 30, 0.94));
  box-shadow: 0 18px 32px rgba(1, 7, 15, 0.3);
}

.tg-cabinet-card h3 {
  margin: 0 0 12px;
  font-family: "Outfit", sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.tg-cabinet-copy {
  margin: 0 0 14px;
  color: var(--tg-copy);
  line-height: 1.55;
}

.tg-cabinet-form,
.tg-cabinet-inline-form,
.tg-cabinet-links {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.tg-cabinet-plan-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.tg-cabinet-plan-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(94, 203, 255, 0.14);
  border-radius: 18px;
  background: rgba(18, 29, 41, 0.9);
}

.tg-cabinet-plan-card strong {
  font-size: 1rem;
}

.tg-cabinet-plan-card p {
  margin: 0;
  color: var(--tg-copy);
  line-height: 1.5;
}

.tg-cabinet-notice {
  margin: 14px 0 0;
  color: var(--tg-copy);
  font-weight: 700;
}

.tg-cabinet-notice.is-success {
  color: var(--tg-success);
}

.tg-cabinet-notice.is-error {
  color: var(--tg-danger);
}

.tg-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tg-cabinet-card-wide {
  grid-column: 1 / -1;
}

.tg-inline-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(94, 203, 255, 0.12);
  color: #9dddff;
  font-size: 0.84rem;
  vertical-align: middle;
}

.tg-inline-badge.is-success {
  background: rgba(56, 146, 94, 0.14);
  color: var(--tg-success);
}

.tg-inline-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.tg-inline-btn {
  white-space: nowrap;
}

.tg-support-sync-note {
  color: var(--tg-copy);
}

.tg-support-sync-note.is-success {
  color: var(--tg-success);
}

.tg-support-sync-note.is-warning {
  color: #ffcf70;
}

.tg-account-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.tg-account-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.tg-account-table th,
.tg-account-table td {
  padding: 14px 12px;
  border-top: 1px solid rgba(137, 174, 220, 0.1);
  text-align: left;
}

.tg-account-table th {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8dd9ff;
}

.tg-account-table td {
  color: var(--tg-copy);
}

.tg-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.tg-stats-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.tg-stats-column {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(137, 174, 220, 0.1);
  border-radius: 18px;
  background: rgba(16, 25, 36, 0.84);
}

.tg-stats-column h4 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.tg-section-card {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 18px;
  border: 1px solid rgba(137, 174, 220, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(22, 34, 48, 0.98), rgba(13, 22, 33, 0.92));
  color: var(--tg-ink);
  text-align: left;
  box-shadow: 0 18px 30px rgba(1, 7, 15, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tg-section-card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 203, 255, 0.24);
  box-shadow: 0 24px 36px rgba(1, 7, 15, 0.38);
}

.tg-section-card strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.32rem;
  letter-spacing: -0.04em;
}

.tg-section-card span:last-child {
  color: var(--tg-copy);
  line-height: 1.55;
}

.tg-news-board {
  padding: 18px;
  border: 1px solid rgba(94, 203, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(17, 30, 43, 0.98), rgba(8, 15, 24, 0.98));
  color: #edf6ff;
  box-shadow: 0 24px 40px rgba(1, 7, 15, 0.42);
}

.tg-news-board .tg-card-kicker,
.tg-news-board h3,
.tg-news-board p,
.tg-news-item strong {
  color: #edf6ff;
}

.tg-news-board-head p,
.tg-news-item p {
  color: rgba(237, 246, 255, 0.72);
}

.tg-news-board-head h3 {
  margin: 0 0 8px;
  font-family: "Outfit", sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.tg-news-board-head p {
  margin: 0;
  line-height: 1.6;
}

.tg-news-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.tg-news-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(137, 174, 220, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.tg-news-item strong {
  font-size: 1rem;
}

.tg-news-item p {
  margin: 0;
  line-height: 1.55;
}

.tg-faq-builder {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.tg-faq-builder-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tg-faq-builder-head p {
  margin: 0;
  color: var(--tg-copy);
  line-height: 1.5;
}

.tg-faq-builder-list {
  display: grid;
  gap: 12px;
}

.tg-faq-builder-empty {
  padding: 16px;
  border: 1px dashed rgba(137, 174, 220, 0.18);
  border-radius: 18px;
  color: var(--tg-copy);
  text-align: center;
}

.tg-faq-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(137, 174, 220, 0.12);
  border-radius: 20px;
  background: rgba(15, 24, 35, 0.88);
}

.tg-faq-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tg-faq-card-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tg-ink);
  font-family: "Outfit", sans-serif;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  text-align: left;
  cursor: pointer;
}

.tg-faq-card-toggle::after {
  content: "+";
  flex: 0 0 auto;
  margin-left: 12px;
  color: #8dd9ff;
  font-size: 1.2rem;
  line-height: 1;
}

.tg-faq-card.is-open .tg-faq-card-toggle::after {
  content: "-";
}

.tg-faq-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tg-faq-card:not(.is-open) .tg-faq-card-grid {
  display: none;
}

.tg-faq-card-grid .tg-field {
  margin: 0;
}

.tg-faq-card-grid .tg-field-full {
  grid-column: 1 / -1;
}

.tg-faq-source {
  display: none;
}

.tg-news-tag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(94, 203, 255, 0.12);
  color: #dff7ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tg-form-section + .tg-form-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(137, 174, 220, 0.1);
}

.tg-form-section h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.tg-form-grid,
.tg-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tg-field {
  display: grid;
  gap: 6px;
}

.tg-field-full {
  grid-column: 1 / -1;
}

.tg-field span,
.tg-field small {
  color: var(--tg-copy);
}

.tg-field span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tg-field small {
  font-size: 0.76rem;
}

.tg-field input,
.tg-field select,
.tg-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(137, 174, 220, 0.14);
  border-radius: 16px;
  background: rgba(12, 20, 30, 0.96);
  color: var(--tg-ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tg-field input[readonly] {
  background:
    linear-gradient(180deg, rgba(24, 37, 53, 0.98), rgba(15, 24, 36, 0.98));
  color: #9dddff;
  font-weight: 800;
}

.tg-field input::placeholder,
.tg-field textarea::placeholder {
  color: #6f8097;
}

.tg-field textarea {
  min-height: 110px;
  resize: vertical;
}

.tg-field input:focus,
.tg-field select:focus,
.tg-field textarea:focus {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(94, 203, 255, 0.4);
  box-shadow:
    0 0 0 4px rgba(94, 203, 255, 0.08),
    0 10px 20px rgba(1, 7, 15, 0.24);
}

.tg-inline-code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(94, 203, 255, 0.12);
  color: #a7e5ff;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.9em;
}

.tg-path-card {
  padding: 12px;
  background: rgba(17, 28, 40, 0.84);
}

.tg-path-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--tg-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tg-path-card strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
  word-break: break-word;
}

.tg-modal {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: var(--tg-ink);
}

.tg-modal::backdrop {
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(8px);
}

.tg-modal-shell {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(137, 174, 220, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(18, 30, 43, 0.99), rgba(8, 15, 24, 0.97));
  box-shadow: 0 26px 56px rgba(1, 7, 15, 0.52);
}

.tg-modal-head,
.tg-modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tg-modal-head h3 {
  margin: 0 0 8px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.55rem, 1.8vw, 2.1rem);
  letter-spacing: -0.04em;
}

.tg-modal-head p {
  margin: 0;
  color: var(--tg-copy);
  line-height: 1.55;
}

.tg-modal-actions {
  padding-top: 4px;
  border-top: 1px solid rgba(137, 174, 220, 0.1);
}

body.tg-modal-open {
  overflow: hidden;
}

.tg-note {
  color: var(--tg-copy);
}

.site-footer {
  margin-top: 16px;
  text-align: center;
}

.site-footer-text {
  color: rgba(155, 170, 192, 0.72);
}

@media (max-width: 1260px) {
  .tg-admin-layout {
    grid-template-columns: 1fr;
  }

  .tg-sidebar {
    position: static;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .tg-main-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
}

@media (max-width: 980px) {
  .tg-hero-grid,
  .tg-dashboard-grid,
  .tg-form-grid,
  .tg-path-grid {
    grid-template-columns: 1fr;
  }

  .tg-section-grid {
    grid-template-columns: 1fr;
  }

  .tg-cabinet-grid {
    grid-template-columns: 1fr;
  }

  .tg-stats-grid,
  .tg-stats-columns,
  .tg-faq-card-grid,
  .tg-inline-actions {
    grid-template-columns: 1fr;
  }

  .tg-account-grid {
    grid-template-columns: 1fr;
  }

  .tg-site-topbar {
    grid-template-columns: 1fr;
  }

  .tg-site-userbar {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .tg-site-page {
    padding: 12px;
  }

  .tg-site-topbar,
  .tg-card,
  .tg-profile-list,
  .tg-sidebar-stats,
  .tg-form,
  .tg-path-card {
    padding: 14px;
  }

  .tg-site-topbar::before {
    left: 18px;
  }

  .tg-site-titlebox {
    padding-left: 12px;
  }

  .tg-site-usercard {
    min-width: 0;
    width: 100%;
  }

  .tg-site-usermenu,
  .tg-site-userdropdown {
    width: 100%;
  }

  .tg-site-userdropdown {
    position: static;
  }

  .tg-site-userbar,
  .tg-sidebar-head,
  .tg-form-head,
  .tg-modal-head,
  .tg-modal-actions,
  .tg-faq-builder-head,
  .tg-faq-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .tg-site-link,
  .tg-primary-btn,
  .tg-secondary-btn {
    width: 100%;
  }

  .tg-panel-switch {
    width: 100%;
    justify-content: stretch;
  }

  .tg-panel-switch-btn {
    flex: 1 1 0;
  }

  .tg-form-head h2 {
    font-size: 2rem;
  }
}
