/* עמודי החשבון: כניסה, הרשמה, לוח בקרה, מנהל, מחירים */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: start center; padding: 48px 16px; background: linear-gradient(180deg, #eef2ff 0%, #fff 100%); }
.auth-card { width: min(440px, 100%); background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 28px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card p.sub { color: var(--muted); margin: 0 0 18px; }
.stack { display: grid; gap: 14px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.stack input, .stack select, .stack textarea { font: inherit; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.stack input:focus, .stack select:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; border-color: transparent; }
.stack input[dir="ltr"] { text-align: right; }
.alt { text-align: center; color: var(--muted); margin-top: 14px; font-size: .95rem; }
.msg { min-height: 1.3em; font-weight: 500; margin: 0; }
.msg.err { color: #b91c1c; } .msg.ok { color: #166534; }

.dash { padding: 32px 0 64px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.dash-head h1 { font-size: 1.6rem; margin: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 500; }
.badge.pending { background: #fff7e6; color: #92400e; }
.badge.active { background: #dcfce7; color: #166534; }
.badge.paused { background: #f1f5f9; color: #475569; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.panel h2 { font-size: 1.2rem; text-align: right; margin: 0 0 10px; }
.steps-mini { margin: 10px 0 0; padding-right: 20px; }
.steps-mini li { margin-bottom: 8px; }
.code { font-family: Consolas, monospace; font-size: 1.4rem; font-weight: 800; letter-spacing: 2px; background: #eef2ff; color: var(--brand); padding: 6px 14px; border-radius: 10px; display: inline-block; direction: ltr; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 180px; }
table.list { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.list th, table.list td { text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.list th { color: var(--muted); font-weight: 500; }
.link-btn { background: none; border: 0; color: #b91c1c; cursor: pointer; font: inherit; padding: 0; }
.muted { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.btn-lite { background: #eef2ff; color: var(--brand) !important; }
.btn-lite:hover { background: #dbe4ff; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.plan.pop { border: 2px solid var(--brand-2); box-shadow: var(--shadow); }
.plan h3 { margin: 0 0 4px; }
.price { font-size: 2.2rem; font-weight: 800; color: var(--brand); margin: 8px 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan ul { padding-right: 18px; color: var(--muted); flex: 1; }
.plan .btn { text-align: center; margin-top: 10px; }
.tag-pop { align-self: flex-start; background: var(--brand-2); color: #fff; font-size: .8rem; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* חלון הודעה/אישור באמצע המסך — במקום confirm/prompt של הדפדפן */
.c2m-modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; animation: c2mFade .15s ease-out; }
.c2m-modal { background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(15, 23, 42, .3); max-width: 440px; width: 100%; padding: 26px 26px 20px; text-align: right; animation: c2mPop .18s ease-out; }
.c2m-modal .icon { font-size: 2rem; line-height: 1; margin-bottom: 8px; }
.c2m-modal h3 { margin: 0 0 8px; font-size: 1.25rem; }
.c2m-modal p { margin: 0 0 6px; color: #334155; line-height: 1.6; }
.c2m-modal input { width: 100%; box-sizing: border-box; padding: 11px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; margin-top: 8px; }
.c2m-modal .actions { display: flex; gap: 10px; justify-content: flex-start; margin-top: 18px; }
.c2m-modal .btn-danger { background: #dc2626; }
@keyframes c2mFade { from { opacity: 0; } }
@keyframes c2mPop { from { transform: scale(.94); opacity: 0; } }

/* פס המנוי בראש "הקבוצות שלי" — שורה אחת שמובילה לעמוד מנוי ותשלום */
.sub-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-radius: 12px; margin-bottom: 18px; text-decoration: none; color: #1e293b; background: #eef2ff; border: 1px solid #c7d2fe; }
.sub-banner.ok { background: #f0fdf4; border-color: #bbf7d0; }
.sub-banner.warn { background: #fff7ed; border-color: #fed7aa; }
.sub-banner .cta { font-weight: 700; color: var(--brand); white-space: nowrap; }
.sub-banner:hover { filter: brightness(.98); }
.nav a.current { font-weight: 700; color: var(--brand); }
.back { margin: 0 0 8px; } .back a { color: var(--muted); text-decoration: none; }

/* נתונים והגדרות */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpis.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kpis.small .kpi { background: #f8fafc; }
.kpi-l { color: var(--muted); font-size: .88rem; }
.kpi-v { font-size: 1.45rem; font-weight: 800; margin-top: 2px; }
.kpi-v small { font-size: .82rem; font-weight: 400; color: var(--muted); }
.meter { height: 6px; background: #e2e8f0; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 99px; }
.chart-box { position: relative; height: 260px; margin-top: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 8px 14px; font: inherit; cursor: pointer; }
.seg button.on { background: var(--brand); color: #fff; }
.settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; align-items: end; }
.settings label { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.settings input, .settings select { padding: 9px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; }
.warn-line { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 8px 12px; }
.table-scroll table.list td.num { text-align: left; direction: ltr; }
.sec { font-size: 1.1rem; margin: 22px 0 10px; text-align: right; }
