/* ── Широкий двухколоночный кабинет (соцсетевой профиль) ── */
.acc2-wrap{max-width:1280px;margin:0 auto;padding:28px 32px 72px}
@media(max-width:1100px){.acc2-wrap{padding:20px 16px 56px}}

.auth-ok{background:#e7f7ec;border:1px solid #7fce9a;color:#1c7c3f;padding:12px 16px;border-radius:12px;margin-bottom:18px;font-weight:600}
.auth-err{background:#fdeaea;border:1px solid #e9a3a3;color:#b02525;padding:12px 16px;border-radius:12px;margin-bottom:18px;font-weight:600}

.acc2-grid{display:grid;grid-template-columns:340px 1fr;gap:24px;align-items:start}
@media(max-width:900px){.acc2-grid{grid-template-columns:1fr;gap:16px}}

.acc2-side{position:sticky;top:20px;display:flex;flex-direction:column;gap:16px}
@media(max-width:900px){.acc2-side{position:static}}

.acc2-card{background:#fff;border:1px solid #e9ecf2;border-radius:18px;padding:22px;box-shadow:0 2px 10px rgba(20,30,60,.04)}

/* профиль */
.acc2-profile{text-align:center}
.acc2-ava{width:104px;height:104px;border-radius:50%;object-fit:cover;margin:0 auto 14px;display:block;box-shadow:0 6px 18px rgba(20,30,60,.14)}
.acc2-ava-ph{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#2563eb,#ff3d71);color:#fff;font-size:44px;font-weight:800}
.acc2-name{font-size:23px;font-weight:800;margin:0 0 3px;line-height:1.2}
.acc2-role{color:#6b7280;font-size:14px;margin:0 0 10px}
.acc2-about{color:#374151;font-size:14px;margin:0 0 12px;line-height:1.5}
.acc2-public{display:inline-block;color:#2563eb;font-weight:700;font-size:14px;text-decoration:none}
.acc2-public:hover{text-decoration:underline}

/* баллы */
.acc2-points{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}
.acc2-pt{text-align:center}
.acc2-pt b{display:block;font-size:24px;font-weight:800;color:#2563eb;line-height:1}
.acc2-pt span{font-size:12px;color:#6b7280}
.acc2-prog-top{display:flex;justify-content:space-between;font-size:12px;color:#6b7280;margin-bottom:6px}
.acc2-bar{height:9px;background:#eef0f5;border-radius:99px;overflow:hidden}
.acc2-bar-fill{height:100%;background:linear-gradient(90deg,#2563eb,#ff3d71);border-radius:99px;transition:width .4s}
.acc2-daily{margin-top:16px}
.acc2-daily-btn{width:100%;padding:13px;border:0;border-radius:12px;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font-size:15px;font-weight:700;cursor:pointer;transition:transform .1s}
.acc2-daily-btn:hover{transform:translateY(-1px)}
.acc2-daily-done{background:#eef0f5;color:#9ca3af;cursor:default}
.acc2-daily-done:hover{transform:none}

/* бейджи в сайдбаре */
.acc2-h3{font-size:14px;font-weight:800;color:#374151;margin:0 0 10px;text-transform:uppercase;letter-spacing:.03em}
.acc2-badges{display:flex;flex-wrap:wrap;gap:8px}
.acc2-badge{background:#f4fbf6;border:1px solid #b6e3c6;color:#1c7c3f;border-radius:99px;padding:5px 12px;font-size:13px;font-weight:700}
.acc2-mini{font-size:13px}
.acc2-badge-shop{display:flex;flex-direction:column;gap:8px}
.acc2-shop-row{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #eef0f5;border-radius:10px}
.acc2-shop-row.is-locked{opacity:.6}
.acc2-shop-nm{font-weight:600;font-size:13px;flex:1;min-width:0}
.acc2-shop-cost{font-size:12px;font-weight:700;color:#2563eb;white-space:nowrap}
.acc2-shop-buy{padding:5px 12px;border:0;border-radius:8px;background:#2563eb;color:#fff;font-weight:700;font-size:12px;cursor:pointer;white-space:nowrap}
.acc2-shop-buy:hover{background:#1d4ed8}
.acc2-shop-buy.off{background:#eef0f5;color:#9ca3af;cursor:default}

/* правая колонка */
.acc2-main{display:flex;flex-direction:column;gap:20px;min-width:0}
.acc2-h2{font-size:20px;font-weight:800;margin:0 0 16px}
.acc2-h2-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}
.acc2-h2-row .acc2-h2{margin:0}

/* метрики промокодов */
.acc2-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin-bottom:14px}
.acc2-metric{background:#f8f9fc;border:1px solid #eef0f5;border-radius:14px;padding:14px;text-align:center}
.acc2-metric b{display:block;font-size:24px;font-weight:800;color:#1f2937;line-height:1}
.acc2-metric span{font-size:12px;color:#6b7280;margin-top:4px;display:block}
.acc2-metric.ok b{color:#1c7c3f}
.acc2-metric.warn b{color:#b8860b}
.acc2-metric.bad b{color:#b02525}
.acc2-tip{background:#fff7e6;border:1px solid #f0d488;color:#8a6400;border-radius:12px;padding:11px 14px;font-size:14px;font-weight:600;margin-bottom:14px}

/* пустое состояние */
.acc2-empty{text-align:center;padding:32px 16px}
.acc2-empty-ic{font-size:48px;margin-bottom:10px}
.acc2-empty-t{font-size:18px;font-weight:800;margin:0 0 6px}
.acc2-empty .btn-primary{margin-top:16px}

/* лента промокодов в кабинете */
.acc2-feed{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-top:4px}

/* списки */
.acc2-list{list-style:none;padding:0;margin:0}
.acc2-list li{padding:11px 0;border-bottom:1px solid #f1f3f6;display:flex;flex-direction:column;gap:2px}
.acc2-list li:last-child{border-bottom:0}
.acc2-list a{color:#1f2937;text-decoration:none;font-weight:700}
.acc2-list a:hover{color:#2563eb}
.acc2-meta{font-size:12px;color:#9ca3af}
.muted{color:#9ca3af}

/* таблица истории */
.acc2-tx{width:100%;border-collapse:collapse}
.acc2-tx td{padding:10px 6px;border-bottom:1px solid #f1f3f6;font-size:14px}
.acc2-tx tr:last-child td{border-bottom:0}
.acc2-tx-d{color:#9ca3af;white-space:nowrap;width:88px}
.acc2-tx-r{color:#374151}
.acc2-tx-p{text-align:right;font-weight:800;white-space:nowrap;width:64px}
.acc2-tx-p.pos{color:#1c7c3f}
.acc2-tx-p.neg{color:#b02525}

/* форма настроек */
.acc2-form{display:flex;flex-direction:column;gap:14px}
.acc2-field{display:flex;flex-direction:column;gap:5px;font-weight:700;font-size:14px;color:#374151}
.acc2-field input,.acc2-field textarea{padding:11px 13px;border:1px solid #d8dce3;border-radius:10px;font:inherit;font-weight:400}
.acc2-field input:focus,.acc2-field textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.acc2-form-actions{margin-top:2px}
.btn-primary{padding:11px 26px;border:0;border-radius:10px;background:#2563eb;color:#fff;font-weight:700;cursor:pointer;display:inline-block;text-decoration:none}
.btn-primary:hover{background:#1d4ed8}
.acc2-logout{margin-top:14px;padding-top:14px;border-top:1px solid #f1f3f6}
.btn-ghost{padding:9px 18px;border:1px solid #d8dce3;border-radius:10px;background:#fff;color:#6b7280;font-weight:600;cursor:pointer}
.btn-ghost:hover{border-color:#b02525;color:#b02525}

/* ── Аватар/имя в шапке ── */
.nav-user{display:flex;align-items:center;gap:8px}
.nav-user-link{display:flex;align-items:center;gap:8px;text-decoration:none;color:inherit;padding:4px 10px 4px 4px;border:1px solid #e9ecf2;border-radius:99px;transition:border-color .15s}
.nav-user-link:hover{border-color:#2563eb}
.nav-user-ava{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.nav-user-ph{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#2563eb,#ff3d71);color:#fff;font-weight:800;font-size:15px}
.nav-user-nm{font-weight:700;font-size:14px;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-user-out{margin:0}
.nav-user-out button{border:1px solid #e9ecf2;background:#fff;border-radius:50%;width:34px;height:34px;cursor:pointer;font-size:15px;color:#6b7280;transition:all .15s}
.nav-user-out button:hover{border-color:#b02525;color:#b02525}
.mobile-logout{width:100%;text-align:left;background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}

/* ── Ссылка «показать все» + пагинация в кабинете ── */
.acc2-showall{display:inline-block;margin-top:14px;color:#2563eb;font-weight:700;font-size:14px;text-decoration:none}
.acc2-showall:hover{text-decoration:underline}
.acc2-pagi{margin-top:20px}
