/* ==========================================================================
   אזור אישי - מסך התחברות (Client Area Login)
   ========================================================================== */

.ca-login {
	--ca-primary: #0c4c66;
	--ca-primary-dark: #006f9c;
	--ca-primary-soft: #eef3ff;
	--ca-ink: #0f1b33;
	--ca-muted: #6b7a90;
	--ca-line: #e3e8f0;
	--ca-danger: #e2362f;
	--ca-radius: 22px;
	--ca-shadow: 0 24px 60px -22px rgba(20, 45, 95, .35);

	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 60px);
	padding: 48px 18px;
	overflow: hidden;
	font-family: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	color: var(--ca-ink);
	background: linear-gradient(180deg, #f6f8fd 0%, #eef2fb 100%);
}

/* ---- רקע דקורטיבי ---- */
.ca-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}
.ca-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: .5;
}
.ca-blob--1 {
	width: 420px; height: 420px;
	top: -120px; inset-inline-start: -120px;
	background: radial-gradient(circle at 30% 30%, #7aa6ff, transparent 70%);
}
.ca-blob--2 {
	width: 380px; height: 380px;
	bottom: -140px; inset-inline-end: -100px;
	background: radial-gradient(circle at 70% 70%, #b6f0c8, transparent 70%);
}

/* ---- הכרטיס ---- */
.ca-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: var(--ca-radius);
	box-shadow: var(--ca-shadow);
	padding: 40px 36px 32px;
}

.ca-card__brand {
	display: flex;
	justify-content: center;
	margin-bottom: 26px;
}
.ca-logo {
	height: 30px;
	width: auto;
	color: var(--ca-primary);
}

/* ---- שלבים ---- */
.ca-step { display: none; }
.ca-step.is-active {
	display: block;
	animation: ca-step-in .45s cubic-bezier(.2, .7, .25, 1) both;
}
@keyframes ca-step-in {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ca-title {
	margin: 0 0 8px;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	color: var(--ca-ink);
}
.ca-subtitle {
	margin: 0 0 26px;
	font-size: .98rem;
	line-height: 1.55;
	text-align: center;
	color: var(--ca-muted);
}
.ca-dest {
	display: inline-block;
	margin-top: 4px;
	font-weight: 600;
	color: var(--ca-ink);
}

/* ---- שדות ---- */
.ca-field { margin-bottom: 6px; }
.ca-label {
	display: block;
	margin-bottom: 8px;
	font-size: .9rem;
	font-weight: 600;
	color: var(--ca-ink);
}
.ca-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.ca-input-icon {
	position: absolute;
	inset-inline-start: 14px;
	width: 20px;
	height: 20px;
	color: var(--ca-muted);
	pointer-events: none;
}
.ca-input {
	width: 100%;
	height: 54px;
	padding: 0 46px;
	font-size: 1.05rem;
	font-family: inherit;
	color: var(--ca-ink);
	background: #f7f9fc;
	border: 1.5px solid var(--ca-line);
	border-radius: 14px;
	transition: border-color .2s, box-shadow .2s, background .2s;
	-webkit-appearance: none;
	appearance: none;
}
.ca-input::placeholder { color: #aeb8c7; }
.ca-input:focus {
	outline: none;
	background: #fff;
	border-color: var(--ca-primary);
	box-shadow: 0 0 0 4px rgba(47, 109, 246, .14);
}
.ca-input.is-invalid {
	border-color: var(--ca-danger);
	box-shadow: 0 0 0 4px rgba(226, 54, 47, .12);
}

/* ---- קוד אימות (OTP) ---- */
.ca-otp {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin: 4px 0 6px;
}
.ca-otp__input {
	width: 52px;
	height: 60px;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 700;
	font-family: inherit;
	color: var(--ca-ink);
	background: #f7f9fc;
	border: 1.5px solid var(--ca-line);
	border-radius: 14px;
	transition: border-color .2s, box-shadow .2s, background .2s, transform .1s;
	-webkit-appearance: none;
	appearance: none;
}
.ca-otp__input:focus {
	outline: none;
	background: #fff;
	border-color: var(--ca-primary);
	box-shadow: 0 0 0 4px rgba(47, 109, 246, .14);
}
.ca-otp__input.is-filled {
	border-color: var(--ca-primary);
	background: var(--ca-primary-soft);
}
.ca-otp.is-invalid .ca-otp__input {
	border-color: var(--ca-danger);
	animation: ca-shake .35s;
}
@keyframes ca-shake {
	10%, 90% { transform: translateX(-1px); }
	30%, 70% { transform: translateX(3px); }
	50%      { transform: translateX(-3px); }
}

/* ---- כפתור ---- */
.ca-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 54px;
	margin-top: 18px;
	font-size: 1.05rem;
	font-weight: 700;
	font-family: inherit;
	color: #fff;
	background: linear-gradient(135deg, var(--ca-primary), var(--ca-primary-dark));
	border: none;
	border-radius: 14px;
	cursor: pointer;
	box-shadow: 0 12px 24px -10px rgba(47, 109, 246, .6);
	transition: filter .2s, box-shadow .2s, transform .06s;
}
.ca-btn:hover { filter: brightness(1.05); }
.ca-btn:active { transform: translateY(1px); }
.ca-btn:focus-visible { outline: 3px solid rgba(47, 109, 246, .5); outline-offset: 2px; }
.ca-btn[disabled] { cursor: default; opacity: .65; box-shadow: none; }

.ca-btn.is-loading .ca-btn__label { visibility: hidden; }
.ca-btn__spinner { display: none; }
.ca-btn.is-loading .ca-btn__spinner {
	display: block;
	position: absolute;
	width: 22px;
	height: 22px;
	border: 2.5px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ca-spin .7s linear infinite;
}
@keyframes ca-spin { to { transform: rotate(360deg); } }

/* ---- הודעת שגיאה ---- */
.ca-error {
	min-height: 20px;
	margin: 10px 2px 0;
	font-size: .88rem;
	font-weight: 500;
	color: var(--ca-danger);
	text-align: center;
}
.ca-error:empty { margin: 0; min-height: 0; }

/* ---- קישורים ופוטר ---- */
.ca-link {
	color: var(--ca-primary);
	font-weight: 600;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: inherit;
	text-decoration: none;
}
.ca-link:hover { text-decoration: underline; }
.ca-link[disabled] { color: var(--ca-muted); cursor: default; text-decoration: none; }

.ca-resend {
	margin: 18px 0 0;
	text-align: center;
	font-size: .92rem;
	color: var(--ca-muted);
}
.ca-foot {
	margin: 22px 0 0;
	text-align: center;
	font-size: .82rem;
	line-height: 1.5;
	color: #9aa6b6;
}

.ca-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 14px;
	padding: 6px 4px;
	font-size: .9rem;
	font-weight: 600;
	font-family: inherit;
	color: var(--ca-muted);
	background: none;
	border: none;
	cursor: pointer;
	transition: color .2s;
}
.ca-back:hover { color: var(--ca-primary); }
.ca-back svg { transform: scaleX(-1); }

/* ---- רספונסיב ---- */
@media (max-width: 480px) {
	.ca-card { padding: 32px 22px 26px; border-radius: 18px; }
	.ca-title { font-size: 1.4rem; }
	.ca-otp { gap: 7px; }
	.ca-otp__input { width: 46px; height: 56px; font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
	.ca-step.is-active,
	.ca-otp.is-invalid .ca-otp__input { animation: none; }
	.ca-btn.is-loading .ca-btn__spinner { animation-duration: 1.4s; }
}

/* ==========================================================================
   אזור אישי - מסך מחובר (Client Area Dashboard)
   ========================================================================== */

.ca-area {
	--ca-primary: #0c4c66;
	--ca-primary-dark: #006f9c;
	--ca-primary-soft: #e8f3f8;
	--ca-ink: #0f1b33;
	--ca-muted: #6b7a90;
	--ca-line: #e6ebf2;
	--ca-success: #1f9d57;
	--ca-danger: #e2362f;

	font-family: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	color: var(--ca-ink);
	background: var(--warm-white);
	min-height: calc(100vh - 60px);
	padding: 110px 18px 72px;
}
.ca-area__inner {
	width: 100%;
	max-width: 880px;
	margin: 0 auto;
}

/* ---- כותרת ---- */
.ca-hero {
	text-align: center;
	margin-bottom: 32px;
}
.ca-hero__eyebrow {
	font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: 500;
    margin: 0;
}
.ca-hero__title {
    font-size: 124px;
    line-height: 0.96;
    font-weight: 400;
    letter-spacing: -0.035em;
}
.ca-hero__desc {
	margin: 0 auto;
	max-width: 520px;
	font-size: 1.02rem;
	line-height: 1.6;
	color: var(--ca-muted);
}

/* ---- ניווט (טאבים) ---- */
.ca-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 7px;
	margin: 0 auto 28px;
	background: #fff;
	border: 1px solid var(--ca-line);
	border-radius: 16px;
	box-shadow: 0 10px 30px -20px rgba(20, 45, 95, .35);
}
.ca-tab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 11px 18px;
	font-size: .98rem;
	font-weight: 600;
	color: var(--ca-muted);
	text-decoration: none;
	border-radius: 11px;
	transition: background .2s, color .2s;
}
.ca-tab svg { width: 18px; height: 18px; }
.ca-tab:hover { background: var(--ca-primary-soft); color: var(--ca-primary-dark); }
.ca-tab.is-active {
	background: linear-gradient(135deg, var(--ca-primary), var(--ca-primary-dark));
	color: #fff;
	box-shadow: 0 8px 18px -8px rgba(12, 76, 102, .7);
}
.ca-tab--end { margin-inline-start: auto; }
.ca-tab--end:hover { background: #fdecec; color: var(--ca-danger); }

/* ---- כרטיסי פניות ---- */
.ca-tickets {
	display: grid;
	gap: 16px;
}
.ca-ticket {
	position: relative;
	background: #fff;
	border: 1px solid var(--ca-line);
	border-radius: 18px;
	padding: 24px 26px;
	box-shadow: 0 14px 36px -26px rgba(20, 45, 95, .4);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ca-ticket:hover {
	transform: translateY(-2px);
	border-color: #d4deea;
	box-shadow: 0 20px 44px -24px rgba(20, 45, 95, .45);
}
.ca-ticket::before {
	content: "";
	position: absolute;
	inset-block: 18px;
	inset-inline-start: 0;
	width: 4px;
	border-radius: 0 4px 4px 0;
	background: var(--green);
}
.ca-ticket.is-closed::before { background: #c2ccd8; }

.ca-ticket__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.ca-ticket__id {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}
.ca-ticket__id-label {
	font-size: .85rem;
	color: var(--ca-muted);
}
.ca-ticket__id-num {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--ca-primary-dark);
}

/* ---- תגית סטטוס ---- */
.ca-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 13px;
	font-size: .85rem;
	font-weight: 600;
	border-radius: 999px;
	white-space: nowrap;
}
.ca-badge__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}
.ca-badge--open { color: var(--ca-success); background: #e7f6ee; }
.ca-badge--closed { color: #64748b; background: #eef1f5; }

.ca-ticket__subject {
	margin: 0 0 14px;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ca-ink);
}
.ca-ticket__muted { color: #aeb8c7; font-weight: 500; font-style: normal; }

.ca-ticket__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.ca-ticket__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .92rem;
	color: var(--ca-muted);
}
.ca-ticket__meta-item svg { width: 17px; height: 17px; }

.ca-ticket__desc {
	padding-top: 18px;
	border-top: 1px solid var(--ca-line);
}
.ca-ticket__desc-label {
	display: block;
	margin-bottom: 7px;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--ca-muted);
}
.ca-ticket__desc-body {
	font-size: .98rem;
	line-height: 1.6;
	color: #3a475a;
}
.ca-ticket__desc-body p:last-child { margin-bottom: 0; }

.ca-ticket__foot {
	margin-top: 18px;
}

/* ---- כפתורים ---- */
.ca-area .ca-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: auto;
	width: auto;
	padding: 11px 20px;
	margin: 0;
	font-size: .96rem;
	font-weight: 600;
	font-family: inherit;
	border-radius: 12px;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .06s, box-shadow .2s;
}
.ca-area .ca-btn svg { width: 18px; height: 18px; }
.ca-area .ca-btn:active { transform: translateY(1px); }

.ca-btn--solid {
	color: #fff;
	background: linear-gradient(135deg, var(--ca-primary), var(--ca-primary-dark));
	box-shadow: 0 12px 24px -12px rgba(12, 76, 102, .7);
}
.ca-btn--solid:hover { filter: brightness(1.06); color: #fff; }

.ca-btn--ghost {
	color: var(--ca-primary-dark);
	background: var(--ca-primary-soft);
}
.ca-btn--ghost:hover { background: #d8ebf3; color: var(--ca-primary-dark); }

/* ---- מצב ריק ---- */
.ca-empty {
	text-align: center;
	background: #fff;
	border: 1px solid var(--ca-line);
	border-radius: 18px;
	padding: 56px 30px;
	box-shadow: 0 14px 36px -26px rgba(20, 45, 95, .4);
}
.ca-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin-bottom: 18px;
	border-radius: 50%;
	color: var(--ca-primary-dark);
	background: var(--ca-primary-soft);
}
.ca-empty__icon svg { width: 38px; height: 38px; }
.ca-empty__title {
	margin: 0 0 8px;
	font-size: 1.5rem;
	font-weight: 700;
}
.ca-empty__desc {
	margin: 0 auto 24px;
	max-width: 380px;
	color: var(--ca-muted);
	line-height: 1.6;
}

/* ---- רספונסיב ---- */
@media (max-width: 600px) {
	.ca-area { padding: 32px 14px 56px; }
	.ca-hero__title { font-size: 1.9rem; }
	.ca-ticket { padding: 20px 18px; }
	.ca-ticket__head { flex-wrap: wrap; }
	.ca-tab { flex: 1; justify-content: center; padding: 10px 12px; }
	.ca-tab--end { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.ca-ticket:hover { transform: none; }
}


.brand-bar-wrap {
	margin: 30px auto;
	width: 40%;
}