/* Notific — стиль приложения, IBM Plex Mono */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg: #0d0d0d;
  --bg-card: #1a1a1a;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #888;
  --accent: #4a9eff;
  --accent-hover: #6bb1ff;
  --danger: #e85d5d;
  --font: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.site-logo:hover {
  text-decoration: none;
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  font-family: var(--font);
  font-size: 13px;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover {
  background: #252525;
  border-color: #3a3a3a;
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}
.btn--danger {
  border-color: var(--danger);
  color: var(--danger);
}
.btn--danger:hover {
  background: rgba(232, 93, 93, 0.1);
}

/* Main content */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}

.hero {
  padding: 4rem 1.5rem;
  text-align: center;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}
.hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
}
.btn--lg {
  padding: 0.75rem 1.5rem;
  font-size: 14px;
}

/* Benefits grid (marketing) */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.benefit-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}
.benefit-card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.benefit-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.cta-block {
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--border);
}
.cta-block p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}
.cta-block .btn {
  margin: 0;
}

.section {
  margin-bottom: 3rem;
}
.section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
}

/* Auth */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.auth-box {
  width: 100%;
  max-width: 360px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--bg-card);
}
.auth-box h1 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.auth-tabs button {
  font-family: var(--font);
  font-size: 13px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
}
.auth-tabs button.active {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 12px;
}
.form-group input {
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}
.auth-box .btn {
  width: 100%;
  margin-top: 0.5rem;
}
.auth-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 0.5rem;
}

/* Dashboard */
.dashboard .container {
  max-width: 1000px;
}
.dashboard h1 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}
.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}
.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  background: var(--bg);
}
.service-list li .name {
  font-weight: 500;
}
.service-list li .slug {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.service-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-meta img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

/* Stats */
.stats-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 120px;
}
.stat .value {
  font-size: 1.5rem;
  font-weight: 600;
}
.stat .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Subscription link & QR */
.sub-link {
  font-size: 12px;
  word-break: break-all;
  padding: 0.5rem;
  background: var(--bg);
  border-radius: 4px;
  margin: 0.5rem 0;
}
.qr-wrap {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  margin-top: 0.5rem;
}
.qr-wrap canvas,
.qr-wrap img {
  display: block;
}
.qr-wrap .qr-img {
  width: 200px;
  height: 200px;
  background: #fff;
}
.qr-wrap--page .qr-page-img {
  display: block;
  width: 220px;
  height: 220px;
  background: #fff;
}

/* Campaigns */
.campaign-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.campaign-list li {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.campaign-list .views {
  font-size: 12px;
  color: var(--text-muted);
}

/* Subscribe page (s.html) */
.subscribe-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.subscribe-page h1 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.subscribe-page p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.subscribe-page .btn {
  margin: 0.25rem;
}

/* Modal / overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}
.modal h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}
.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
.hidden {
  display: none !important;
}

/* Utility */
.text-muted { color: var(--text-muted); }
.small { font-size: 0.9em; }
.full-width { width: 100%; box-sizing: border-box; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
