/* danteless — дизайн как Sharkshop: светлая тема, сайдбар слева, блоки #FDF1F3 */

:root {
  --bg: #ffffff;
  --bg-pink: #FDF1F3;
  --text: #212529;
  --text-muted: #6c757d;
  --red: #DC3545;
  --blue: #007BFF;
  --green: #28A745;
  --pink-btn: #E83E8C;
  --pink-btn-hover: #d62a7a;
  --badge-dark: #343A40;
  --border: #dee2e6;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, monospace;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

/* ========== Layout: сайдбар + контент ========== */
.app-wrap {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo {
  display: block;
  text-decoration: none;
  background: #1a1a1a;
  padding: 8px 12px;
  border-radius: var(--radius);
  line-height: 0;
  max-width: 320px;
  margin-top: 12px;
}
.sidebar-logo:hover { opacity: 0.9; }
.sidebar-logo-img {
  display: block;
  height: 150px !important;
  max-height: 150px !important;
  width: auto !important;
  max-width: 300px !important;
  object-fit: contain;
}
.sidebar-back {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.2rem;
}
.sidebar-back:hover { color: var(--text); }
.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-username {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.badge-user {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--green);
  color: #fff;
  border-radius: 4px;
  margin-bottom: 8px;
}
.sidebar-balance { font-size: 0.9rem; color: var(--text); }
.sidebar-discount { font-size: 0.9rem; color: var(--red); margin-top: 2px; }
.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.sidebar-nav-item:hover {
  background: #f8f9fa;
  color: var(--text);
}
.sidebar-nav-item.active {
  background: #f8f9fa;
  border-left-color: var(--blue);
  font-weight: 500;
}
.sidebar-nav-icon { font-size: 1rem; }
.sidebar-nav-widget { padding: 8px 20px; }
.sidebar-download { padding: 16px 20px; border-top: 1px solid var(--border); }
.btn-main {
  display: block;
  text-align: center;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  background: var(--pink-btn);
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-main:hover { background: var(--pink-btn-hover); color: #fff; }
.chat-link-with-badge { position: relative; }
.chat-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

.main-content {
  flex: 1;
  overflow-x: hidden;
  padding: 24px;
  background: var(--bg);
}

/* ========== Блоки контента (светло-розовый фон как на референсе) ========== */
.content-block-pink {
  background: var(--bg-pink);
  padding: 20px 24px;
  margin-bottom: 20px;
  border-radius: var(--radius);
}
.content-block-center { text-align: center; }
.content-block-line { margin: 0 0 8px; }
.content-block-line:last-child { margin-bottom: 0; }
.content-block-pink a { color: var(--blue); text-decoration: none; }
.content-block-pink a:hover { text-decoration: underline; }
.content-block-pink .highlight-red { color: var(--red); font-weight: 700; }
.content-title-red {
  color: var(--red);
  font-weight: 700;
  text-align: center;
  margin: 0;
  font-size: 1rem;
}
.updates-header {
  color: var(--red);
  font-weight: 700;
  margin-bottom: 12px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Главная: hero (посередине, нормальные отступы) ========== */
.hero {
  padding: 48px 0 56px;
}
.hero-center {
  text-align: center;
}
.hero-center .container-narrow {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-badge {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.hero-subtitle {
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 420px;
  font-size: 1rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  background: var(--pink-btn);
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--pink-btn-hover); color: #fff; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: var(--text-muted); color: var(--text); }

.section { padding: 32px 0; }
.section-dark { background: #f8f9fa; padding: 32px 0; }
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-num { font-size: 0.85rem; color: var(--text-muted); }
.about-content { max-width: 640px; }
.about-content .lead { margin-bottom: 12px; }
.about-content p { margin: 0 0 12px; color: var(--text-muted); }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.feature-icon {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.feature-card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.feature-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* Screenshots */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 110px));
  gap: 12px;
}
.screenshot-wrap {
  aspect-ratio: 9/16;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}
.screenshot-wrap img { width: 100%; height: 100%; object-fit: cover; }
.screenshot-placeholder {
  aspect-ratio: 9/16;
  background: #f8f9fa;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Payment block */
.payment-block { max-width: 520px; }
.payment-desc { margin: 0 0 20px; color: var(--text-muted); }
.payment-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 16px; }
.payment-note a { color: var(--blue); text-decoration: none; }
.payment-note a:hover { text-decoration: underline; }

/* Forms */
.payment-form .form-group { margin-bottom: 16px; }
.payment-form label { display: block; font-weight: 500; margin-bottom: 6px; }
.payment-form input,
.payment-form select {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.payment-form input:focus,
.payment-form select:focus {
  outline: none;
  border-color: var(--blue);
}
.form-error { font-size: 0.9rem; color: var(--red); margin-top: 8px; }
.form-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* Account */
.account-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.account-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.account-avatar-placeholder {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
}
.account-name { font-size: 1.1rem; font-weight: 600; margin: 0 0 4px; }
.account-username { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.account-orders-title { font-size: 1rem; margin: 0 0 12px; color: var(--text); }
.account-orders-list { list-style: none; margin: 0; padding: 0; }
.account-order-card {
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.account-order-id { font-weight: 600; }
.account-order-date, .account-order-network { font-size: 0.9rem; color: var(--text-muted); }
.account-order-status {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
}
.order-pending .account-order-status { background: var(--text-muted); }
.order-expired .account-order-status { background: var(--red); }
.account-order-code { font-family: var(--font-mono); font-size: 0.95rem; }

/* Table (как на референсе) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 2px 8px; font-size: 0.75rem; border-radius: 4px; color: #fff; }
.badge-released { background: var(--green); }
.badge-ccv { background: var(--badge-dark); }
.badge-dumps { background: var(--blue); }

/* FAQ */
.faq-list { max-width: 640px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  padding: 14px 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}
.faq-answer { padding: 0 0 16px; color: var(--text-muted); font-size: 0.95rem; }
.faq-back { color: var(--blue); text-decoration: none; margin-bottom: 16px; display: inline-block; }
.faq-back:hover { text-decoration: underline; }
.faq-page-title { font-size: 1.5rem; margin: 0 0 8px; }
.faq-page-lead { color: var(--text-muted); margin: 0 0 24px; }

/* Antidetect */
.antidetect-hero { margin-bottom: 24px; }
.antidetect-hero-img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.antidetect-block-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 8px; }
.antidetect-block-desc { color: var(--text-muted); margin: 0 0 12px; font-size: 0.95rem; }
.antidetect-service ul, .antidetect-intro ul { margin: 0 0 0 1.2em; padding: 0; color: var(--text-muted); }
.guide-note {
  margin: 12px 0;
  padding: 12px 16px;
  background: var(--bg-pink);
  border-radius: var(--radius);
  border-left: 4px solid var(--blue);
}
.guide-warning {
  padding: 16px;
  background: #fff5f5;
  border: 1px solid rgba(220,53,69,0.3);
  border-radius: var(--radius);
  margin-top: 16px;
}

/* Chat */
.chat-desc { color: var(--text-muted); margin: 0 0 16px; }
.chat-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.chat-messages { padding: 16px; min-height: 200px; max-height: 400px; overflow-y: auto; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form textarea {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  resize: vertical;
}

/* Success page */
.success-page { padding: 40px 20px; text-align: center; }
.success-logo { display: inline-block; margin-bottom: 24px; }
.success-logo .logo-text { font-size: 1.25rem; font-weight: 700; color: #1a237e; text-decoration: none; }
.success-block {
  max-width: 400px;
  margin: 0 auto 20px;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.success-title { font-size: 1.25rem; margin: 0 0 12px; }
.success-desc { color: var(--text-muted); margin: 0 0 12px; }
.success-code { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; margin: 0 0 16px; }
.success-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.success-note { font-size: 0.9rem; color: var(--text-muted); }
.success-note a { color: var(--blue); text-decoration: none; }

/* Footer */
.footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.footer a { color: var(--blue); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Payment page specifics */
.payment-order-id { font-size: 1.1rem; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.payment-code-block {
  padding: 20px;
  background: var(--bg-pink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
}
.payment-code-value { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 600; }
#payment-qr-container { padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); display: inline-block; }
.payment-address-input {
  width: 100%;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox-img-wrap { max-width: 90vw; max-height: 90vh; }
.lightbox-img-wrap img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg);
  color: var(--text);
  font-size: 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
}

/* Admin (минимально) */
.admin-wallet-input { width: 100%; max-width: 400px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); }

/* Legacy: админка и страницы без app-wrap */
.grid-bg { position: fixed; inset: 0; background: var(--bg); pointer-events: none; z-index: 0; }
.header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.logo { text-decoration: none; }
.logo-text { color: #1a237e; font-weight: 700; }
.logo-text-muted { color: var(--text-muted); }
.nav a { color: var(--text-muted); text-decoration: none; margin-right: 16px; }
.nav a:hover, .nav a.nav-active { color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { margin-top: 16px; }
.btn-large { padding: 12px 24px; font-size: 1rem; }
.btn-copy { min-width: 80px; }
.payment-waiting-title { font-size: 1.05rem; margin: 0 0 8px; }
.payment-waiting-amount { font-weight: 600; margin: 0 0 8px; }
.payment-waiting-instruction { margin: 0 0 16px; font-size: 0.9rem; }
.payment-address-wrap { margin-bottom: 16px; }
.payment-address-row { display: flex; gap: 8px; margin-top: 8px; }
.payment-actions-row { margin-bottom: 16px; }
.payment-back-row { margin-top: 16px; }
.section-faq-page { padding-top: 24px; }
.container-guide { max-width: 720px; margin: 0 auto; }
.guide-content { margin-top: 24px; }
.guide-content p { margin: 0 0 12px; }
.guide-list { margin: 0 0 12px; padding-left: 1.2em; }
.faq-page-cta { margin-top: 24px; }
.account-main .section { padding-top: 24px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.account-empty { color: var(--text-muted); }
.account-empty a { color: var(--blue); }

/* Mobile */
@media (max-width: 768px) {
  .app-wrap { flex-direction: column; }
  .sidebar {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  .sidebar-nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .sidebar-nav-item { padding: 8px 12px; }
  .main-content { padding: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
