/**
 * Proxnum — Telegram bot marketing & reseller dashboard pages
 */

:root {
  --tg-blue: #0088cc;
  --tg-blue-dark: #006699;
  --tg-surface: #ffffff;
  --tg-muted: #64748b;
  --tg-border: #e2e8f0;
  --tg-radius: 1rem;
  --tg-radius-lg: 1.25rem;
  --tg-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

/* —— Shared page shell —— */
.tg-page .main {
  background: var(--pn-bg, #f0f4f8);
}

.tg-hero {
  position: relative;
  overflow: hidden;
  color: #f8fafc;
  padding: 3.5rem 0 4rem;
  margin: -1rem 0 2rem;
  border-radius: 0 0 2rem 2rem;
  background: #0f172a;
}

.tg-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 25%, rgba(0, 136, 204, 0.45), transparent 52%),
    radial-gradient(ellipse 55% 45% at 88% 15%, rgba(20, 184, 166, 0.28), transparent 48%),
    linear-gradient(155deg, #020617 0%, #0f172a 45%, #0c4a6e 100%);
  pointer-events: none;
}

.tg-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 25%, transparent 92%);
  pointer-events: none;
}

.tg-hero__content {
  position: relative;
  z-index: 2;
}

.tg-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 136, 204, 0.2);
  border: 1px solid rgba(0, 136, 204, 0.35);
  color: #bae6fd;
  margin-bottom: 1rem;
}

.tg-hero h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.tg-hero__lead {
  color: #cbd5e1;
  font-size: 1.125rem;
  max-width: 42rem;
  line-height: 1.65;
}

.tg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tg-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.tg-breadcrumb .breadcrumb-item a:hover {
  color: #fff;
}

.tg-breadcrumb .breadcrumb-item.active {
  color: #fff;
}

/* —— Guide layout —— */
.tg-guide-shell {
  padding-bottom: 4rem;
}

.tg-mode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.tg-mode-card {
  background: var(--tg-surface);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--tg-shadow);
}

.tg-mode-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.tg-mode-card p {
  color: var(--tg-muted);
  font-size: 0.925rem;
  margin: 0;
  line-height: 1.55;
}

.tg-guide-tabs {
  border: none;
  gap: 0.35rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-bottom: 1.75rem;
  scrollbar-width: thin;
}

.tg-guide-tabs .nav-link {
  border: 1px solid var(--tg-border);
  border-radius: 999px;
  color: var(--tg-muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
  background: #fff;
  transition: all 0.2s ease;
}

.tg-guide-tabs .nav-link:hover {
  color: var(--tg-blue);
  border-color: rgba(0, 136, 204, 0.35);
}

.tg-guide-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--tg-blue) 0%, #0ea5e9 100%);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.28);
}

.tg-guide-panel {
  background: var(--tg-surface);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  box-shadow: var(--tg-shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.tg-guide-panel__head {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--tg-border);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.tg-guide-panel__head h2,
.tg-guide-panel__head h3,
.tg-guide-panel__head h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.tg-guide-panel__body {
  padding: 1.35rem;
}

.tg-guide-panel__body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
  color: #1e293b;
}

.tg-guide-panel__body h4:first-child {
  margin-top: 0;
}

.tg-guide-panel__body ul,
.tg-guide-panel__body ol {
  color: #334155;
  line-height: 1.65;
}

.tg-guide-panel__body .card {
  border-radius: var(--tg-radius);
  border-color: var(--tg-border);
}

.tg-callout {
  border-radius: var(--tg-radius);
  padding: 1rem 1.15rem;
  border: 1px solid transparent;
  margin: 1rem 0;
}

.tg-callout--info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.tg-callout--warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.tg-callout--success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.tg-seo-intro {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.tg-seo-intro strong {
  color: #0f172a;
}

.tg-faq .accordion-item {
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius) !important;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.tg-faq .accordion-button {
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  box-shadow: none;
}

.tg-faq .accordion-button:not(.collapsed) {
  background: #eff6ff;
  color: var(--tg-blue-dark);
}

.tg-cta-band {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--tg-radius-lg);
  background: linear-gradient(135deg, #0f172a 0%, #0c4a6e 100%);
  color: #f8fafc;
  box-shadow: var(--tg-shadow);
}

.tg-cta-band h2 {
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.tg-cta-band p {
  color: #cbd5e1;
  max-width: 36rem;
  margin: 0 auto 1.25rem;
}

.tg-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.tg-related-links a {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: none;
}

.tg-related-links a:hover {
  color: #fff;
}

/* —— Reseller dashboard —— */
.tg-dash {
  padding-bottom: 3rem;
}

.tg-dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tg-dash-stat {
  background: var(--tg-surface);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--tg-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-dash-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.tg-dash-stat__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  background: rgba(0, 136, 204, 0.1);
  color: var(--tg-blue);
}

.tg-dash-stat__value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.tg-dash-stat__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tg-muted);
  margin-top: 0.25rem;
}

.tg-dash-panel {
  background: var(--tg-surface);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  box-shadow: var(--tg-shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.tg-dash-panel__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--tg-border);
  background: #f8fafc;
}

.tg-dash-panel__head h2,
.tg-dash-panel__head h3 {
  margin: 0;
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.tg-dash-panel__body {
  padding: 1.35rem;
}

.tg-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.tg-status--on {
  background: #dcfce7;
  color: #166534;
}

.tg-status--off {
  background: #fee2e2;
  color: #991b1b;
}

.tg-info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--tg-blue);
  border-radius: var(--tg-radius);
  padding: 1rem 1.15rem;
  margin: 1rem 0;
}

.tg-info-box h5,
.tg-info-box h6 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e40af;
}

.tg-info-box code {
  background: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
}

.tg-dash .form-label {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
}

.tg-dash .form-control,
.tg-dash .form-select {
  border: 1px solid var(--tg-border);
  border-radius: 0.65rem;
  padding: 0.65rem 0.85rem;
}

.tg-dash .form-control:focus {
  border-color: var(--tg-blue);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.12);
}

.tg-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--tg-border);
}

.tg-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
}

.tg-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.15rem 0.75rem;
  background: var(--tg-surface);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  text-decoration: none;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.tg-quick-link:hover {
  color: var(--tg-blue);
  border-color: rgba(0, 136, 204, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--tg-shadow);
}

.tg-quick-link i {
  font-size: 1.5rem;
  color: var(--tg-blue);
}

.tg-resources {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--tg-radius-lg);
  padding: 1.35rem;
}

.tg-resources h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #0c4a6e;
}

.tg-resources p {
  color: #475569;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.tg-guide-shell .card.shadow-sm {
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  box-shadow: var(--tg-shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.tg-guide-shell .card-header {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid var(--tg-border) !important;
  padding: 1.1rem 1.35rem;
}

.tg-guide-shell .card-body {
  padding: 1.35rem;
}

.tg-guide-shell .alert {
  border-radius: var(--tg-radius);
}

.tg-guide-shell .table {
  font-size: 0.925rem;
}

/* —— Marketing / reselling landing —— */
.tg-marketing-shell {
  padding-bottom: 4rem;
}

.tg-hero__highlight {
  display: block;
  margin-top: 0.75rem;
  color: #7dd3fc;
  font-weight: 600;
  font-size: 1.05rem;
}

.tg-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tg-hero__badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.tg-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tg-stat-strip__item {
  text-align: center;
  background: var(--tg-surface);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  padding: 1.25rem 1rem;
  box-shadow: var(--tg-shadow);
}

.tg-stat-strip__value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--tg-blue);
  line-height: 1.1;
}

.tg-stat-strip__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tg-muted);
  margin-top: 0.35rem;
}

.tg-section-head {
  margin-bottom: 1.5rem;
}

.tg-section-head h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.tg-section-head p {
  color: var(--tg-muted);
  margin: 0;
  max-width: 40rem;
  line-height: 1.6;
}

.tg-problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.tg-problem-panel,
.tg-solution-panel {
  border-radius: var(--tg-radius-lg);
  padding: 1.35rem;
  border: 1px solid var(--tg-border);
  box-shadow: var(--tg-shadow);
}

.tg-problem-panel {
  background: #fff5f5;
  border-color: #fecaca;
}

.tg-solution-panel {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.tg-problem-panel h3,
.tg-solution-panel h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.tg-problem-panel ul,
.tg-solution-panel ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #334155;
  line-height: 1.65;
}

.tg-solution-panel li strong {
  color: #065f46;
}

.tg-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tg-step-card {
  background: var(--tg-surface);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  padding: 1.35rem;
  box-shadow: var(--tg-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.tg-step-card__num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  background: rgba(0, 136, 204, 0.12);
  color: var(--tg-blue);
  margin-bottom: 0.85rem;
}

.tg-step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.tg-step-card p {
  font-size: 0.925rem;
  color: var(--tg-muted);
  margin: 0;
  line-height: 1.55;
}

.tg-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  overflow: hidden;
  box-shadow: var(--tg-shadow);
  margin-bottom: 2.5rem;
  font-size: 0.925rem;
}

.tg-compare-table thead th {
  background: #f8fafc;
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 2px solid var(--tg-blue);
}

.tg-compare-table tbody td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--tg-border);
  vertical-align: middle;
}

.tg-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.tg-compare-table .tg-col-bad {
  background: #fef2f2;
  text-align: center;
}

.tg-compare-table .tg-col-good {
  background: #ecfdf5;
  text-align: center;
  font-weight: 600;
}

.tg-use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tg-use-case-card {
  background: var(--tg-surface);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--tg-shadow);
}

.tg-use-case-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.tg-use-case-card p {
  font-size: 0.875rem;
  color: var(--tg-muted);
  margin: 0;
  line-height: 1.5;
}

.tg-profit-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: var(--tg-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.tg-profit-block h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 0.35rem;
}

.tg-profit-block ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #78350f;
  line-height: 1.65;
}

.tg-profit-table-wrap {
  background: #fff;
  border-radius: var(--tg-radius);
  padding: 1.15rem;
  box-shadow: var(--tg-shadow);
}

.tg-profit-table {
  width: 100%;
  margin: 0;
}

.tg-profit-table td {
  padding: 0.5rem 0;
  border: none;
}

.tg-profit-table tr.tg-profit-highlight td {
  background: #ecfdf5;
  font-weight: 700;
  color: #065f46;
}

.tg-profit-table tr.tg-profit-total td {
  background: #fef3c7;
  font-weight: 800;
  font-size: 1.1rem;
  color: #92400e;
}

.tg-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tg-feature-card {
  background: var(--tg-surface);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--tg-shadow);
  transition: transform 0.2s ease;
}

.tg-feature-card:hover {
  transform: translateY(-3px);
}

.tg-feature-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 136, 204, 0.1);
  color: var(--tg-blue);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.tg-feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.tg-feature-card p {
  font-size: 0.875rem;
  color: var(--tg-muted);
  margin: 0;
  line-height: 1.5;
}

.tg-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tg-audience-card {
  border-radius: var(--tg-radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--tg-border);
  box-shadow: var(--tg-shadow);
}

.tg-audience-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tg-audience-card p {
  font-size: 0.9rem;
  color: #334155;
  margin: 0;
  line-height: 1.55;
}

.tg-audience-card--gold { background: #fffbeb; border-color: #fde68a; }
.tg-audience-card--blue { background: #eff6ff; border-color: #bfdbfe; }
.tg-audience-card--green { background: #ecfdf5; border-color: #a7f3d0; }
.tg-audience-card--pink { background: #fdf2f8; border-color: #fbcfe8; }

.tg-no-tech {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--tg-radius-lg);
  background: linear-gradient(115deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  margin-bottom: 2.5rem;
}

.tg-no-tech h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0c4a6e;
  margin-bottom: 0.5rem;
}

.tg-no-tech p {
  max-width: 36rem;
  margin: 0 auto;
  color: #334155;
  line-height: 1.65;
}

@media (max-width: 767px) {
  .tg-hero {
    padding: 2.5rem 0 3rem;
  }

  .tg-hero h1 {
    font-size: 1.75rem;
  }

  .tg-dash-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tg-stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .tg-problem-solution,
  .tg-step-grid,
  .tg-use-case-grid,
  .tg-feature-grid,
  .tg-profit-block,
  .tg-audience-grid {
    grid-template-columns: 1fr;
  }

  .tg-compare-table {
    font-size: 0.8rem;
  }
}
