/* dashboard.css — Личный кабинет AngelVPN (перенос дизайна claude_design).
   Самодостаточный: своя палитра, без зависимостей от tokens/components. */

:root {
  --bg: #0c0908;
  --panel: #16100d;
  --panel2: #211913;
  --line: rgba(255, 255, 255, 0.07);
  --cream: #f4eee5;
  --muted: #9a8c81;
  --orange: #ff7e1f;
  --orange2: #ff5e00;
  --green: #37d489;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--cream);
  background: radial-gradient(90% 50% at 50% -5%, rgba(255, 110, 0, 0.1), transparent 55%), #0a0706;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

@keyframes angelpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(55, 212, 137, 0.45); } 50% { box-shadow: 0 0 0 7px rgba(55, 212, 137, 0); } }
@keyframes angelup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .kab-dot, .kab-toast, .kab-modal-card { animation: none !important; } }

.kab { min-height: 100vh; padding: 32px 24px 60px; }
.kab-wrap { max-width: 1180px; margin: 0 auto; }

/* ---------- верхняя панель ---------- */
.kab-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.kab-brand { display: flex; align-items: center; gap: 10px; }
.kab-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; transform: scale(1.12); flex: none; box-shadow: 0 4px 12px rgba(255, 110, 0, 0.5), 0 0 0 1px rgba(255, 150, 90, 0.4); }
.kab-bname { font-weight: 800; font-size: 18px; }
.kab-vpn { font-size: 10px; font-weight: 800; background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #1a0e05; padding: 3px 7px; border-radius: 6px; }
.kab-nav { display: flex; align-items: center; gap: 30px; }
.kab-navlink { background: none; border: none; font-size: 15px; padding: 8px 2px; color: var(--muted); font-weight: 600; transition: color 0.15s; }
.kab-navlink.is-active { color: var(--cream); font-weight: 700; }
.kab-top-right { display: flex; align-items: center; gap: 12px; }
.kab-status { display: flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.kab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: angelpulse 2s infinite; flex: none; }
.kab-dot.lg { width: 12px; height: 12px; }
.kab-dot.off { background: var(--muted); animation: none; }
.kab-ava { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #ff9b4d, #ff5e00); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 15px; flex: none; }
.kab-ava.lg { width: 60px; height: 60px; font-size: 22px; }

/* ---------- панели вкладок ---------- */
.kab-pane { display: none; }
.kab-pane.is-active { display: block; }

/* ---------- bento (Обзор) ---------- */
.kab-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 152px; gap: 18px; }
.kb { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }

.kb-sub { grid-column: 1 / 3; grid-row: 1 / 3; background: radial-gradient(120% 110% at 80% -10%, rgba(255, 110, 0, 0.16), transparent 55%), var(--panel); padding: 26px 28px; display: flex; flex-direction: column; }
.kb-label { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.kb-status-row { display: flex; align-items: center; gap: 13px; margin: auto 0 6px; }
.kb-status { font-weight: 800; font-size: 36px; letter-spacing: -0.02em; }
.kb-status-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.kb-key { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; }
.kb-key-info { flex: 1; min-width: 0; }
.kb-key-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.kb-key-val { font-weight: 700; font-size: 14px; font-family: ui-monospace, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-btn-orange { background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #1a0e05; border: none; border-radius: 10px; padding: 9px 15px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.kb-btn-orange.sm { padding: 9px 18px; box-shadow: 0 8px 20px rgba(255, 110, 0, 0.26); }

.kb-plan { grid-column: 3 / 5; grid-row: 1 / 2; padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.kb-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kb-plan-badges { display: flex; align-items: center; gap: 9px; }
.kb-premium { font-size: 10px; font-weight: 800; background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #1a0e05; padding: 3px 8px; border-radius: 6px; }
.kb-plan-active { font-weight: 700; font-size: 14px; }
.kb-plan-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.kb-plan-meta b { color: var(--cream); font-weight: 700; }
.kb-track { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.kb-fill { height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange2)); width: 70%; transition: width 0.4s ease; }

.kb-tg { grid-column: 3 / 5; grid-row: 2 / 3; padding: 22px 24px; display: flex; align-items: center; gap: 16px; }
.kb-tg-ava { position: relative; flex: none; }
.kb-tg-badge { position: absolute; bottom: -2px; right: -2px; width: 23px; height: 23px; border-radius: 50%; background: #2aabee; border: 3px solid var(--panel); display: flex; align-items: center; justify-content: center; color: #fff; }
.kb-tg-info { flex: 1; min-width: 0; }
.kb-tg-name { font-weight: 800; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-tg-user { color: var(--orange); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-tg-id { color: var(--muted); font-size: 12px; margin-top: 3px; }
.kb-btn-ghost { background: rgba(255, 255, 255, 0.05); color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-weight: 700; font-size: 12px; align-self: flex-start; }

.kb-stat { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; min-height: 120px; }
.kb-dev { grid-column: 1 / 2; grid-row: 3 / 4; }
.kb-traf { grid-column: 2 / 3; grid-row: 3 / 4; }
.kb-stat-label { color: var(--muted); font-size: 13px; }
.kb-stat-val { font-weight: 800; font-size: 30px; }
.kb-stat-val span { color: var(--muted); font-size: 18px; }

.kb-promo { grid-column: 3 / 5; grid-row: 3 / 4; background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #1a0e05; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; border-radius: 20px; }
.kb-promo-t { font-weight: 800; font-size: 18px; }
.kb-promo-s { font-weight: 600; font-size: 13px; opacity: 0.8; margin-top: 2px; }
.kb-promo-go { font-weight: 800; font-size: 16px; white-space: nowrap; }

/* ---------- Тарифы ---------- */
.kab-head { text-align: center; margin-bottom: 34px; }
.kab-head h2 { font-weight: 800; font-size: 34px; letter-spacing: -0.02em; margin: 0 0 8px; }
.kab-head p { color: var(--muted); font-size: 15px; margin: 0; }
.kab-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; position: relative; }
.tcard.pop { background: radial-gradient(120% 100% at 50% 0%, rgba(255, 110, 0, 0.14), transparent 60%), var(--panel); border-color: rgba(255, 126, 31, 0.4); }
.tcard-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 800; background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #1a0e05; padding: 5px 14px; border-radius: 999px; }
.tcard-term { font-weight: 700; font-size: 16px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tcard-off { font-size: 10px; font-weight: 800; background: rgba(55, 212, 137, 0.15); color: var(--green); padding: 3px 8px; border-radius: 6px; }
.tcard-price { font-weight: 800; font-size: 40px; margin: 14px 0 2px; }
.tcard-per { color: var(--muted); font-size: 14px; }
.tcard-hr { height: 1px; background: var(--line); margin: 22px 0; }
.tcard-feats { color: var(--muted); font-size: 14px; line-height: 2; }
.tcard-buy { margin-top: auto; padding-top: 26px; border: none; background: none; }
.tcard-buy button { width: 100%; border-radius: 12px; padding: 14px; font-weight: 800; font-size: 15px; font-family: inherit; cursor: pointer; }
.tbuy-ghost { background: rgba(255, 255, 255, 0.06); color: var(--cream); border: 1px solid var(--line); }
.tbuy-solid { background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #1a0e05; border: none; box-shadow: 0 10px 26px rgba(255, 110, 0, 0.3); }

/* ---------- Помощь ---------- */
.kab-help { max-width: 760px; margin: 0 auto; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; cursor: pointer; font-weight: 700; font-size: 16px; width: 100%; background: none; border: none; color: var(--cream); text-align: left; }
.faq-chev { transition: transform 0.2s; color: var(--muted); font-size: 14px; }
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a-in { color: var(--muted); font-size: 14px; line-height: 1.6; padding: 0 24px 22px; }
.kab-support { width: 100%; margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #2aabee; color: #fff; border: none; border-radius: 14px; padding: 16px; font-weight: 800; font-size: 15px; }

/* ---------- футер ---------- */
.kab-foot { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); text-align: center; }
.kab-foot-top { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--cream); }
.kab-foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.kab-foot-legal a { color: var(--muted); text-decoration: none; }
.kab-foot-legal a:hover { color: var(--cream); }
.kab-foot .sep { color: var(--orange); }

/* ---------- тост ---------- */
.kab-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--green); color: #06281a; font-weight: 800; font-size: 14px; padding: 14px 22px; border-radius: 999px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); animation: angelup 0.25s ease; z-index: 60; }

/* ---------- модалка продления ---------- */
.kab-modal { position: fixed; inset: 0; background: rgba(5, 3, 2, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 24px; }
.kab-modal-card { width: 440px; max-width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); animation: angelup 0.2s ease; }
.kab-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.kab-modal-title { font-weight: 800; font-size: 22px; }
.kab-modal-x { background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1; }
.kab-modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.kab-plan-list { display: flex; flex-direction: column; gap: 10px; }
.kab-plan-opt { display: flex; align-items: center; justify-content: space-between; border-radius: 14px; padding: 15px 17px; cursor: pointer; transition: 0.15s; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.kab-plan-opt.sel { border-color: var(--orange); background: rgba(255, 126, 31, 0.08); }
.kab-plan-opt-l { display: flex; align-items: center; gap: 13px; }
.kab-radio { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 2px solid var(--muted); }
.kab-plan-opt.sel .kab-radio { border: 6px solid var(--orange); background: #fff; }
.kab-opt-label { font-weight: 700; font-size: 15px; }
.kab-opt-per { color: var(--muted); font-size: 13px; }
.kab-opt-price { font-weight: 800; font-size: 18px; }
.kab-pay { width: 100%; margin-top: 20px; background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #1a0e05; border: none; border-radius: 13px; padding: 15px; font-weight: 800; font-size: 15px; box-shadow: 0 10px 26px rgba(255, 110, 0, 0.3); }
.kab-pay-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px; }

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  .kab-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .kb-sub, .kb-plan, .kb-tg, .kb-dev, .kb-traf, .kb-promo { grid-column: auto; grid-row: auto; }
  .kab-plans { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .kab-nav { order: 3; width: 100%; justify-content: center; gap: 22px; }
}
@media (max-width: 560px) {
  .kb-status { font-size: 30px; }
  .kab-head h2 { font-size: 26px; }
}
