/* ---------- BASE ---------- */
* { box-sizing: border-box; }
html,body { margin:0; font-family:"Inter",sans-serif; background:#f3f5f7; color:#111; }
a { text-decoration:none; color:inherit; }

/* ---------- PAGE ---------- */
.page { max-width:1100px; margin:auto; padding:20px; }

/* ---------- HEADER ---------- */
header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:15px; }
.brand { display:flex; align-items:center; gap:10px; cursor:pointer; }
.brand img { width:56px; height:56px; background:white; border-radius:10px; padding:6px; }
.brand-title { font-weight:800; font-size:18px; }
.brand-sub { font-size:12px; color:#64748b; }

.nav { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.nav-item { padding:8px 12px; background:white; border-radius:8px; cursor:pointer; font-size:13px; border:1px solid #e2e8f0; }
.telegram-btn { display:flex; align-items:center; gap:8px; background:linear-gradient(90deg,#2da6ff,#1e90ff); color:white; border-radius:22px; padding:8px 14px; cursor:pointer; font-weight:600; }

/* ---------- GRID ---------- */
.grid { display:grid; grid-template-columns:1fr 350px; gap:24px; margin-top:20px; }
@media(max-width:900px){ .grid{ grid-template-columns:1fr; } }

/* ---------- CARD ---------- */
.card { background:white; border-radius:14px; padding:28px; box-shadow:0 10px 30px rgba(0,0,0,0.05); }

.promo-title { text-align:center; font-size:18px; font-weight:700; margin-bottom:8px; }
.promo-sub { text-align:center; color:#64748b; margin-bottom:20px; }

.promo-box { max-width:600px; margin:auto; background:#f8fafc; border-radius:12px; padding:20px; }
.promo-input-wrap { display:flex; gap:10px; align-items:center; }
.promo-icon { background:#faf5ff; color:#7c3aed; padding:10px; border-radius:8px; }
.promo-input { flex:1; border:none; border-radius:20px; padding:12px 14px; background:linear-gradient(90deg,#fbf7ff,#fff0f6); font-size:15px; outline:none; }
.promo-apply { margin-top:14px; width:100%; padding:12px; border:none; border-radius:10px; background:#64748b; color:white; font-weight:700; opacity:.8; cursor:not-allowed; }
.promo-apply.enabled { background:#111827; opacity:1; cursor:pointer; }

.info { margin-top:20px; display:flex; gap:14px; align-items:flex-start; }
.info .icon { width:56px; height:56px; background:white; border-radius:10px; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 20px rgba(0,0,0,0.05); }
.info .text { background:#fff; padding:12px; border-radius:10px; box-shadow:0 4px 10px rgba(0,0,0,0.05); font-size:14px; }

.faq { margin-top:24px; }
.faq h2 { font-size:16px; margin-bottom:12px; }
.faq-item { background:#fff; border-radius:10px; padding:12px; margin-bottom:10px; cursor:pointer; border:1px solid #e2e8f0; }
.faq-item .q { display:flex; justify-content:space-between; font-weight:600; }
.faq-item .a { display:none; margin-top:8px; color:#475569; font-size:14px; }

/* ---------- SIDEBAR ---------- */
.sidebar { display:flex; flex-direction:column; gap:18px; }
.side-card { background:white; border-radius:12px; padding:16px; box-shadow:0 8px 30px rgba(0,0,0,0.04); }
.side-card .title { font-weight:700; font-size:15px; margin-bottom:6px; }
.side-card .muted { color:#64748b; font-size:13px; margin-bottom:10px; }
.side-input-row { display:flex; gap:10px; }
.side-input { flex:1; padding:10px 12px; border-radius:10px; border:1px solid #e2e8f0; font-size:14px; }
.side-btn { padding:10px 12px; border:none; border-radius:10px; background:#111827; color:white; cursor:pointer; font-weight:700; }
.side-btn.green { background:#10b981; }
.side-btn.light { background:#e2e8f0; color:#0f172a; }
.side-btn.blue { background:#2da6ff; width:100%; margin-top:10px; }

.note { font-size:13px; color:#64748b; margin-top:10px; }

.help-box .help-title { font-weight:700; margin-bottom:8px; }
.help-box .help-text { color:#475569; font-size:14px; margin-bottom:12px; }

/* ---------- RESPONSIVE ---------- */
@media(max-width:600px){
  .brand img { width:44px; height:44px; }
  .brand-title { font-size:16px; }
  .promo-box { padding:16px; }
  .info .text { font-size:13px; }
  header { flex-direction:column; align-items:flex-start; }
  .nav { flex-wrap:wrap; }
}

/* ---------- STATUS MESSAGE ---------- */
.status-msg { margin-top:12px; padding:10px 14px; border-radius:10px; font-size:14px; font-weight:600; text-align:center; }
.status-msg.info    { background:#eff6ff; color:#1d4ed8; }
.status-msg.success { background:#f0fdf4; color:#15803d; }
.status-msg.error   { background:#fef2f2; color:#dc2626; }
