/* ================= Hesablar, mağazalar, admin ================= */

/* Giriş / qeydiyyat */
.auth-links{margin-top:16px;text-align:center;font-size:14px;color:#6b7280}
.auth-links a{color:#e4002b;font-weight:500}
.auth-links a:hover{text-decoration:underline}
.field-error{font-size:13px;color:#b42318;margin-top:6px}
input.is-invalid{border-color:#f04438 !important}
.alert-ok{background:#ecfdf3;color:#067647}
.alert-info{background:#eef4ff;color:#1d4ed8}

/* Yan menyu */
.store-switch{display:flex;flex-direction:column;gap:2px;margin:0 0 12px;padding:12px;border-radius:10px;background:#1f2937;color:#fff}
.store-switch:hover{background:#273244}
.store-switch-label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#9ca3af}
.store-switch strong{font-size:15px;line-height:1.3}
.store-switch-hint{font-size:12px;color:#9ca3af}
.nav-label{margin:16px 12px 6px;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#6b7280}
.nav a .count{margin-left:6px;background:#e4002b;color:#fff;font-size:11px;padding:1px 7px;border-radius:999px}

/* Düymələr */
.btn-sm{padding:6px 12px;font-size:13px}
.btn-danger{background:#fff;color:#b42318;border:1px solid #fecdca}
.btn-danger:hover{background:#fef3f2}
.inline-form{display:inline-flex;margin:0}
.push-right{margin-left:auto}

/* Mağazalar */
.store-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;margin-bottom:24px}
.store-card{display:flex;flex-direction:column;gap:12px}
.store-card.is-current{box-shadow:0 0 0 2px #e4002b}
.store-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.store-card-head h3{margin:0 0 4px;font-size:17px}
.store-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:auto;padding-top:12px;border-top:1px solid #f2f4f7}
.store-actions details{width:100%}
.store-actions summary{cursor:pointer;font-size:13px;color:#6b7280}
.store-actions details form{display:flex;gap:8px;margin-top:8px}
.store-actions details input{flex:1;min-width:0}
.store-add{max-width:520px}
.store-add h2{margin:0 0 4px;font-size:16px}
.store-add .btn{margin-top:20px}
.empty-state{margin-bottom:16px}
.empty-state p{margin:0 0 4px}

/* Admin */
.admin-section{margin-bottom:24px}
.admin-section h2{margin:0 0 16px;font-size:16px;display:flex;align-items:baseline;gap:6px}
.table-scroll{overflow-x:auto}
.admin-table{width:100%;border-collapse:collapse;font-size:14px}
.admin-table th{text-align:left;font-size:12px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.03em;padding:0 12px 10px;border-bottom:1px solid #e4e7ec;white-space:nowrap}
.admin-table td{padding:12px;border-bottom:1px solid #f2f4f7;vertical-align:middle}
.admin-table td.actions{white-space:nowrap;text-align:right}
.admin-table td.actions .inline-form + .inline-form{margin-left:6px}
.admin-table tr.is-pending td{background:#fffcf5}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:#475467}

/* Admin: göstəricilər */
.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.section-head h2{margin:0}
.btn-light{background:#f2f4f7;color:#344054}
.btn-light:hover{background:#e4e7ec}
.stats-table .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.stats-table td.strong{font-weight:700}
.stats-table thead th.group{text-align:center;border-bottom:1px solid #e4e7ec;padding-bottom:6px}
.stats-table thead tr:first-child th[rowspan]{vertical-align:bottom}
.stats-table thead tr + tr th{padding-top:8px}
.stats-table td:nth-child(2),.stats-table th.group:nth-of-type(2){border-left:1px solid #f2f4f7}
.stats-table td:nth-child(5){border-left:1px solid #f2f4f7}
.stats-table tfoot td{padding:12px;font-weight:700;border-top:2px solid #111827;border-bottom:0}
.stats-table .badge{font-size:11px;padding:1px 8px}
.cell-err{margin-top:4px;font-size:11px;color:#b42318;max-width:220px}
.stats-note{margin:12px 0 0}

/* Sayt ikonu */
.icon-row{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap}
.icon-preview{display:flex;flex-direction:column;align-items:center;gap:8px}
.icon-preview img{width:64px;height:64px;border-radius:14px;object-fit:contain;background:#f9fafb;border:1px solid #f2f4f7}
.icon-forms{flex:1;min-width:240px}
.icon-upload{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.icon-upload input[type=file]{font-size:14px;max-width:100%}
.icon-reset{margin-top:12px}

/* Məhsul statusları */
.pstat-card{margin-bottom:16px}
.pstat-card h2{margin:0 0 12px;font-size:16px}
.pstat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.pstat{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:10px;background:#f9fafb;border-top:3px solid #d0d5dd}
.pstat-active{border-top-color:#12b76a}
.pstat-inactive{border-top-color:#f79009}
.pstat-deleted{border-top-color:#98a2b3;opacity:.7}
.pstat-label{font-size:12px;color:#6b7280}
.pstat strong{font-size:22px;font-variant-numeric:tabular-nums}
.pstat-note{margin:12px 0 0}

/* ================= Profil / Telegram / kodlar ================= */
.acc-alert{margin:0 0 16px}
.acc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;align-items:start}
.acc-card h2{margin:0 0 12px;font-size:16px}
.acc-card > p.muted{margin:0 0 12px}
.acc-kv{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:0;font-size:14px}
.acc-kv dt{color:#6b7280}
.acc-kv dd{margin:0}
.acc-tg{display:flex;align-items:center;gap:12px;padding:12px;border-radius:10px;background:#f9fafb;margin-bottom:12px}
.acc-tg.is-on{background:#ecfdf3}
.acc-tg-dot{width:10px;height:10px;border-radius:50%;background:#12b76a;box-shadow:0 0 0 4px rgba(18,183,106,.18);flex-shrink:0}
.acc-actions{display:flex;gap:8px}
.acc-wait{margin:12px 0 0}
.switch.is-disabled{opacity:.5;cursor:not-allowed}

.code-input{text-align:center;font-size:26px !important;letter-spacing:.5em;font-variant-numeric:tabular-nums;padding:12px !important}
.code-resend{margin-top:12px;text-align:center}
.tg-hook-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.tg-hook-form .muted{word-break:break-all}

/* Menyu adları */
.menu-group-title{font-size:13px;font-weight:600;margin:16px 0 8px}
.menu-group-title:first-of-type{margin-top:4px}
.menu-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px 16px}
.menu-row{display:flex;flex-direction:column;gap:4px;margin:0}
.menu-row .badge{font-size:10px;padding:0 6px;margin-left:4px}
.menu-row input{height:38px}