body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #f5f7fb;
  color: #111827;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px;
}

.wrap.wide {
  max-width: 1280px;
}

.card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.hero {
  text-align: center;
  padding-top: 46px;
  padding-bottom: 46px;
  background: #ffffff;
  color: #111827;
}

h1, h2 {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: #c4b5fd;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.small {
  color: #6b7280;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  border: 0;
}

a {
  color: #2563eb;
}

.button.ghost {
  background: transparent;
  border: 1px solid #9ca3af;
  color: #111827;
}

.hero .button.ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.actions {
  margin-top: 20px;
}

.switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.switcher .button {
  padding: 9px 12px;
}

.widget-box {
  margin-top: 24px;
}

.setup-card {
  margin-top: 22px;
}

.bot-card {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border-color: #bfdbfe;
}

.bot-card h2 {
  margin-bottom: 10px;
}

.bot-card p:last-child {
  margin-bottom: 0;
}

.telegram-button {
  white-space: nowrap;
}

.telegram-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.platform-header {
  gap: 18px;
}

.timer-box {
  min-width: 150px;
  text-align: right;
}

.timer-box strong {
  display: block;
  margin: 4px 0 10px;
  font-size: 30px;
  color: #7c3aed;
}

.timer-box strong.expired {
  color: #dc2626;
}

#access-time-left {
  font-weight: 700;
  color: #7c3aed;
}

#access-time-left.expired {
  color: #dc2626;
}

.small-button {
  padding: 8px 12px;
  font-size: 14px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.tab {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 15px;
}

.tab.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

.platform-panel {
  display: none;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
}

.platform-panel.active {
  display: block;
}

.platform-panel h3 {
  margin-top: 0;
}

.platform-panel li {
  margin: 8px 0;
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.qr-box {
  text-align: center;
}

.copy-button {
  margin-top: 10px;
}

.server-country {
  margin: 0 0 10px;
  color: #374151;
}

.notice {
  padding: 14px 16px;
  border-radius: 12px;
  background: #eff6ff;
}

.notice.error {
  color: #991b1b;
  background: #fee2e2;
}

.row {
  display: flex;
}

.between {
  justify-content: space-between;
}

.center {
  align-items: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.panel {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 20px;
}

.section {
  margin-top: 24px;
}

.section.loading {
  opacity: 0.65;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  background: #ffffff;
  border: 1px solid #d1d5db;
}

th, td {
  padding: 12px 10px;
  border-right: 1px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

th {
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background: #f9fafb;
}

.qr {
  width: 100%;
  max-width: 280px;
  background: white;
  border-radius: 12px;
}

textarea {
  width: 100%;
  min-height: 220px;
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 12px;
  resize: vertical;
  box-sizing: border-box;
}

#vpn-code {
  min-height: 90px;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}

.manual-code {
  margin-top: 14px;
}

.manual-code summary {
  cursor: pointer;
  color: #2563eb;
  font-weight: 600;
}

.manual-code textarea {
  margin-top: 10px;
  min-height: 120px;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}

code {
  word-break: break-all;
}

@media (max-width: 760px) {
  .bot-card {
    display: block;
  }

  .bot-card .button {
    margin-top: 14px;
  }

  .row.platform-header {
    display: block;
  }

  .timer-box {
    margin-top: 16px;
    text-align: left;
  }

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