/* ═══════════════════════════════════════════════════════════════════
   KA Customer — public CSS
   - /clenstvo/ hero + features + payment + videos + CTA
   - /moj-ucet/ tabs (Kurzy / Hodiny / Videá) + photo upload
   - Mobile PWA install button
   ═══════════════════════════════════════════════════════════════════ */

/* ── /clenstvo/ HERO ── */
.ka-clen-hero {
	background:
		radial-gradient(900px 700px at 12% -10%, rgba(212,175,55,0.18), transparent 60%),
		radial-gradient(900px 700px at 110% 110%, rgba(107,15,26,0.22), transparent 55%),
		linear-gradient(135deg, #0D0D0D 0%, #1a0a2e 50%, #2D1B69 100%);
	color: #fff;
	padding: 80px 24px 70px;
	text-align: center;
}
.ka-clen-hero-inner { max-width: 760px; margin: 0 auto; }
.ka-clen-eyebrow {
	display: inline-block;
	color: #F0C040;
	font-family: 'DM Sans', sans-serif;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 12px; font-weight: 600;
	margin-bottom: 16px;
}
.ka-clen-title {
	font-family: 'Playfair Display', serif;
	font-style: italic; font-weight: 600;
	font-size: clamp(32px, 5vw, 56px);
	line-height: 1.15;
	margin: 0 0 22px;
	color: #fff;
}
.ka-clen-title span { color: #F0C040; }
.ka-clen-sub {
	color: rgba(255,255,255,0.78);
	font-size: clamp(16px, 1.4vw, 18px);
	line-height: 1.6;
	margin: 0 auto;
	max-width: 580px;
}

/* ── FEATURES GRID ── */
.ka-clen-features { background: #fbfbfb; }
.ka-clen-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	max-width: 1100px;
	margin: 30px auto 0;
}
.ka-clen-card {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 18px;
	padding: 26px 22px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.04);
	transition: transform 0.18s, box-shadow 0.18s;
}
.ka-clen-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(212,175,55,0.18);
}
.ka-clen-icon { font-size: 38px; line-height: 1; margin-bottom: 14px; }
.ka-clen-card h3 {
	font-family: 'Playfair Display', serif; font-weight: 600;
	font-size: 1.25rem; margin: 0 0 10px; color: #1a0a2e;
}
.ka-clen-card p { color: #555; font-size: 0.95rem; line-height: 1.55; margin: 0; }

/* ── PAYMENT ── */
.ka-clen-payment { color: #fff; }
.ka-clen-payment-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px; max-width: 900px; margin: 30px auto 0;
}
.ka-clen-pay-card {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(212,175,55,0.3);
	border-radius: 16px;
	padding: 26px 24px;
	position: relative;
}
.ka-clen-pay-num {
	width: 38px; height: 38px; border-radius: 50%;
	background: linear-gradient(135deg, #F0C040, #D4AF37);
	color: #1a0a2e;
	display: flex; align-items: center; justify-content: center;
	font-family: 'Playfair Display', serif; font-weight: 700; font-size: 20px;
	margin-bottom: 16px;
}
.ka-clen-pay-card h3 {
	font-family: 'Playfair Display', serif; font-style: italic;
	font-size: 1.25rem; margin: 0 0 10px; color: #F0C040;
}
.ka-clen-pay-card p { color: rgba(255,255,255,0.78); font-size: 0.95rem; line-height: 1.55; margin: 0; }
.ka-clen-pay-note {
	text-align: center; color: rgba(255,255,255,0.6);
	font-style: italic; font-size: 0.92rem;
	max-width: 720px; margin: 28px auto 0;
}

/* ── VIDEOS ── */
.ka-clen-video-grid { max-width: 900px; margin: 30px auto 0; display: flex; flex-direction: column; gap: 16px; }
.ka-clen-vid-row {
	display: flex; gap: 18px; align-items: flex-start;
	background: #fff; border: 1px solid #ececec; border-radius: 14px;
	padding: 20px;
}
.ka-clen-vid-emoji { font-size: 42px; line-height: 1; flex-shrink: 0; }
.ka-clen-vid-row h4 {
	font-family: 'Playfair Display', serif; font-weight: 600;
	font-size: 1.15rem; margin: 0 0 6px; color: #1a0a2e;
}
.ka-clen-vid-row p { color: #555; font-size: 0.92rem; line-height: 1.5; margin: 0; }

/* ── CTA ── */
.ka-clen-cta {
	background: linear-gradient(135deg, #6b0f1a 0%, #2D1B69 100%);
	color: #fff;
	padding: 60px 24px;
	text-align: center;
}
.ka-clen-cta-inner { max-width: 600px; margin: 0 auto; }
.ka-clen-cta h2 {
	font-family: 'Playfair Display', serif; font-style: italic;
	font-size: clamp(26px, 3.5vw, 38px); margin: 0 0 14px; color: #F0C040;
}
.ka-clen-cta p { color: rgba(255,255,255,0.85); font-size: 1.02rem; line-height: 1.6; margin: 0 0 28px; }
.ka-clen-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ka-clen-cta .ka-btn { padding: 13px 26px; }
.ka-btn-outline {
	background: transparent; color: #F0C040 !important;
	border: 1.5px solid rgba(240,192,64,0.6);
	padding: 13px 26px; border-radius: 50px;
	font-weight: 600; text-decoration: none;
	transition: background 0.18s;
}
.ka-btn-outline:hover { background: rgba(240,192,64,0.12); }

/* ── /moj-ucet/ TAB CONTENT ── */
.ka-cust-tab { padding: 0; }
.ka-cust-tab-head { margin-bottom: 20px; }
.ka-cust-tab-head h2 {
	font-family: 'Playfair Display', serif; font-weight: 600;
	margin: 0 0 6px; color: #1a0a2e;
}
.ka-cust-sub { color: #666; font-size: 0.92rem; margin: 0; line-height: 1.5; }

.ka-cust-empty {
	background: #fbfbfb; border: 1px dashed #ddd; border-radius: 14px;
	padding: 50px 24px; text-align: center;
}
.ka-cust-empty-icon { font-size: 48px; margin-bottom: 14px; opacity: 0.55; }
.ka-cust-empty h3 {
	font-family: 'Playfair Display', serif; font-weight: 600;
	margin: 0 0 8px; color: #333; font-size: 1.25rem;
}
.ka-cust-empty p { color: #777; margin: 0 0 18px; }
.ka-cust-empty small { color: #999; font-size: 0.8rem; display: block; margin-top: 10px; }

/* ── HODINY LIST ── */
.ka-cust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ka-cust-row {
	display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center;
	background: #fff; border: 1px solid #ececec; border-radius: 12px;
	padding: 14px 18px;
	transition: border-color 0.15s;
}
.ka-cust-row:hover { border-color: #D4AF37; }
.ka-cust-row-date {
	text-align: center;
	padding: 8px;
	background: #2D1B69; color: #fff; border-radius: 8px;
}
.ka-cust-row-date strong { display: block; font-size: 1rem; font-weight: 700; line-height: 1.1; }
.ka-cust-row-date small { font-size: 0.7rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.06em; }
.ka-cust-row-title { font-weight: 700; color: #1a0a2e; font-size: 0.98rem; }
.ka-cust-row-meta { color: #666; font-size: 0.82rem; margin-top: 3px; }
.ka-cust-row-status {
	font-size: 0.78rem; color: #555; white-space: nowrap;
	padding: 4px 10px; background: #f4f4f4; border-radius: 50px;
}

/* ── LEAD FORM (ukážková / online-kurzy notify) ── */
.ka-lead-form, .ka-online-notify {
	max-width: 720px;
	margin: 28px auto 0;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(212,175,55,0.25);
	border-radius: 18px;
	padding: 26px 26px 28px;
}
.ka-lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ka-lead-form label, .ka-online-notify label {
	display: flex; flex-direction: column;
	gap: 6px;
	font-size: 0.82rem; color: rgba(255,255,255,0.7);
	font-weight: 600; letter-spacing: 0.04em;
}
.ka-lead-form input, .ka-lead-form select, .ka-online-notify input {
	background: rgba(0,0,0,0.35);
	border: 1px solid rgba(255,255,255,0.12);
	color: #fff;
	border-radius: 10px;
	padding: 11px 14px;
	font-family: inherit; font-size: 0.95rem; font-weight: 400;
	letter-spacing: 0.01em;
	outline: none;
	transition: border-color 0.15s;
}
.ka-lead-form input:focus, .ka-lead-form select:focus, .ka-online-notify input:focus {
	border-color: var(--ka-gold-light);
}
.ka-lead-form select { cursor: pointer; }
.ka-lead-btn { display: block; width: 100%; padding: 14px; font-size: 0.95rem; }
.ka-lead-note {
	margin-top: 14px; text-align: center;
	color: rgba(255,255,255,0.5); font-size: 0.78rem; font-style: italic;
}
.ka-lead-msg.ok {
	max-width: 720px; margin: 0 auto 18px;
	padding: 14px 18px;
	background: rgba(74,222,128,0.15); border: 1px solid rgba(74,222,128,0.4);
	color: #4ade80; border-radius: 12px;
	text-align: center; font-weight: 600;
}
.ka-lead-msg.duplicate {
	max-width: 720px; margin: 0 auto 18px;
	padding: 18px 22px;
	background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(251,191,36,0.08));
	border: 1px solid rgba(251,191,36,0.5);
	color: #fcd34d; border-radius: 14px;
	text-align: center; font-weight: 500; line-height: 1.55;
}

.ka-online-notify {
	display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center;
	max-width: 540px;
}
.ka-online-notify input { flex: 1; min-width: 220px; }
.ka-online-msg { width: 100%; text-align: center; color: #4ade80; font-weight: 600; margin-top: 8px; }

@media (max-width: 600px) {
	.ka-lead-row { grid-template-columns: 1fr; }
	.ka-lead-form { padding: 20px 18px; }
}

/* ── BACS THANK-YOU QR ── */
.ka-bacs-qr-wrap {
	margin: 24px auto 32px;
	max-width: 760px;
	background: linear-gradient(135deg, #fbf9ef, #f5efd9);
	border: 1px solid rgba(212,175,55,0.4);
	border-radius: 16px;
	padding: 28px;
}
.ka-bacs-qr-head h3 {
	margin: 0 0 8px;
	font-family: 'Playfair Display', serif; font-weight: 600; font-style: italic;
	color: var(--ka-dark-purple, #2D1B69); font-size: 1.45rem;
}
.ka-bacs-qr-head p { color: #555; line-height: 1.55; margin: 0 0 18px; font-size: 0.95rem; }
.ka-bacs-qr-grid {
	display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center;
}
.ka-bacs-qr-img img {
	display: block; border-radius: 12px;
	background: #fff; padding: 12px;
	box-shadow: 0 6px 22px rgba(0,0,0,0.15);
}
.ka-bacs-qr-dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 14px; margin: 0; font-size: 0.92rem; }
.ka-bacs-qr-dl dt { color: #777; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ka-bacs-qr-dl dd { margin: 0; color: #1a0a2e; }
.ka-bacs-qr-dl code {
	background: #fff; padding: 3px 8px; border-radius: 4px;
	font-family: 'Monaco', monospace; font-size: 0.88rem;
	border: 1px solid #ececec; word-break: break-all;
}
.ka-bacs-qr-note {
	margin: 22px 0 0; color: #666; font-size: 0.92rem; line-height: 1.5;
	padding-top: 18px; border-top: 1px dashed rgba(212,175,55,0.3);
}
@media (max-width: 600px) {
	.ka-bacs-qr-grid { grid-template-columns: 1fr; text-align: center; }
	.ka-bacs-qr-dl { grid-template-columns: 1fr; text-align: left; }
}

/* ── ONLINE KURZY INTEREST FORM (4 styles + name + email) ── */
.ka-online-interest-wrap { max-width: 880px; }
.ka-online-interest { margin-top: 24px; }
.ka-online-style-pick {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px; margin-bottom: 22px;
}
.ka-online-style { cursor: pointer; display: block; }
.ka-online-style input { position: absolute; opacity: 0; pointer-events: none; }
.ka-online-style-card {
	background: rgba(255,255,255,0.04);
	border: 2px solid rgba(255,255,255,0.12);
	border-radius: 14px;
	padding: 18px 12px 14px;
	text-align: center;
	transition: transform 0.18s, border-color 0.18s, background 0.18s;
	position: relative;
}
.ka-online-style:hover .ka-online-style-card {
	border-color: rgba(212,175,55,0.5);
	background: rgba(212,175,55,0.08);
	transform: translateY(-2px);
}
.ka-online-style input:checked + .ka-online-style-card {
	border-color: var(--ka-gold-light, #F0C040);
	background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(45,27,105,0.4));
	box-shadow: 0 6px 18px rgba(212,175,55,0.25);
}
.ka-online-style-soon .ka-online-style-card {
	opacity: 0.42; cursor: not-allowed; pointer-events: none;
}
.ka-online-style-soon { cursor: not-allowed; }
.ka-online-style-soon .ka-online-style-card::after {
	content: '🔒'; position: absolute; top: 8px; right: 10px; font-size: 13px;
}
.ka-online-style-emoji { font-size: 32px; line-height: 1; margin-bottom: 8px; }
.ka-online-style-name {
	font-family: 'Playfair Display', serif; font-weight: 600; font-style: italic;
	color: #fff; font-size: 1.15rem; margin-bottom: 4px;
}
.ka-online-style-status {
	font-size: 0.72rem; color: rgba(255,255,255,0.55);
	letter-spacing: 0.06em; text-transform: uppercase;
}
.ka-online-style input:checked + .ka-online-style-card .ka-online-style-status {
	color: var(--ka-gold-light); font-weight: 700;
}

.ka-online-fields {
	display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
.ka-online-fields input {
	background: rgba(0,0,0,0.35);
	border: 1px solid rgba(255,255,255,0.12);
	color: #fff;
	border-radius: 10px;
	padding: 12px 14px; font-family: inherit; font-size: 0.95rem;
	outline: none;
}
.ka-online-fields input:focus { border-color: var(--ka-gold-light); }
.ka-online-interest-btn {
	width: 100%; padding: 14px; font-size: 0.95rem;
}
@media (max-width: 600px) {
	.ka-online-fields { grid-template-columns: 1fr; }
	.ka-online-style-pick { grid-template-columns: repeat(2, 1fr); }
}

/* ── VIDEO BLOCKS (Videá tab) ── */
.ka-cust-videoblock {
	margin-bottom: 32px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 14px;
	padding: 20px 22px;
}
.ka-cust-vb-head { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
.ka-cust-vb-head h3 {
	font-family: 'Playfair Display', serif; font-weight: 600; font-style: italic;
	margin: 0 0 4px; color: #1a0a2e; font-size: 1.4rem;
}
.ka-cust-vb-meta { font-size: 0.85rem; color: #777; }
.ka-cust-vid-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}
.ka-cust-vid {
	background: #fbfbfb;
	border: 1px solid #ececec;
	border-radius: 10px;
	overflow: hidden;
	display: flex; flex-direction: column;
}
.ka-cust-vid video {
	width: 100%;
	height: 220px;
	object-fit: contain;        /* default landscape: fit s padding */
	background: #000;
	display: block;
	-webkit-user-select: none; user-select: none;
	-webkit-touch-callout: none;
}
/* Detect portrait → tall card aby video bolo dobre proporčné */
.ka-cust-vid.is-portrait video {
	height: auto;
	aspect-ratio: 9 / 16;
	max-height: 520px;
	object-fit: cover;
}

/* Fullscreen: portrait videa NESMÚ byť cropnuté — povolíme čierne pruhy na bokoch */
.ka-cust-vid video:fullscreen,
.ka-cust-vid video:-webkit-full-screen {
	object-fit: contain !important;
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	background: #000;
}
/* Aspect ratio resetnúť aby browser nechal video v originálnom pomere */
.ka-cust-vid.is-portrait video:fullscreen,
.ka-cust-vid.is-portrait video:-webkit-full-screen,
.ka-cust-vid.is-landscape video:fullscreen,
.ka-cust-vid.is-landscape video:-webkit-full-screen {
	aspect-ratio: auto !important;
}
.ka-cust-vid.is-landscape video {
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: contain;
}
/* Mobile: dať portrait video viac vertikálneho priestoru */
@media (max-width: 720px) {
	.ka-cust-vid.is-portrait video { max-height: 70vh; }
}
.ka-cust-vid-info {
	display: flex; gap: 10px; align-items: flex-start;
	padding: 12px 14px;
}
.ka-cust-vid-num {
	flex-shrink: 0;
	width: 32px; height: 32px;
	background: linear-gradient(135deg, #F0C040, #D4AF37);
	color: #1a0a2e;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-family: 'Playfair Display', serif; font-weight: 700;
	font-size: 0.95rem;
}
.ka-cust-vid-title { font-weight: 600; color: #1a0a2e; font-size: 0.92rem; line-height: 1.3; }
.ka-cust-vid-date { color: #888; font-size: 0.74rem; margin-top: 3px; }

/* ── AVATAR UPLOAD ── */
.ka-cust-avatar-fs {
	margin: 16px 0 24px; padding: 18px;
	background: #fbfbfb; border: 1px solid #ececec; border-radius: 12px;
}
.ka-cust-avatar-fs legend {
	font-family: 'Playfair Display', serif; font-weight: 600;
	color: #1a0a2e; padding: 0 8px;
}
.ka-cust-avatar-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ka-cust-avatar-preview { border: 2px solid #D4AF37; }
.ka-cust-avatar-placeholder {
	width: 88px; height: 88px; border-radius: 50%;
	background: #f0f0f0; display: flex; align-items: center; justify-content: center;
	font-size: 40px; opacity: 0.4;
}
.ka-cust-avatar-controls { display: flex; flex-direction: column; gap: 8px; }
.ka-cust-avatar-upload-label { cursor: pointer; display: inline-block; }
.ka-cust-avatar-remove {
	background: none; border: none; color: #b5435a; font-size: 0.85rem;
	cursor: pointer; padding: 4px 0; text-align: left;
}
.ka-cust-avatar-controls small { color: #888; font-size: 0.78rem; }

/* ── PWA INSTALL BUTTON v topbar (vedľa radio noty, PC aj mobile) ── */
.ka-tb-install {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 12px 5px 10px;
	background: linear-gradient(135deg, #F0C040 0%, #D4AF37 100%);
	color: #1a0a2e !important;
	border-radius: 50px;
	text-decoration: none !important;
	font-family: 'DM Sans', sans-serif;
	font-weight: 700; font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	box-shadow: 0 2px 8px rgba(212,175,55,0.4);
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
	margin-right: 4px;
	white-space: nowrap;
	cursor: pointer;
}
.ka-tb-install:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(212,175,55,0.55);
	color: #1a0a2e !important;
}
.ka-tb-install svg { width: 14px; height: 14px; flex-shrink: 0; }
.ka-tb-install-label { line-height: 1; }
.ka-tb-install.is-installed {
	background: #4ade80;
	box-shadow: none;
	pointer-events: none;
}
.ka-tb-install.is-installed::after { content: ' ✓'; }
@media (max-width: 540px) {
	.ka-tb-install-label { display: none; }
	.ka-tb-install { padding: 5px 9px; }
}

/* ── Avatar msg + heading ── */
.ka-cust-avatar-h {
	margin: 0 0 14px;
	font-family: 'Playfair Display', serif; font-weight: 600;
	color: #1a0a2e; font-size: 1.15rem;
}
.ka-avatar-msg {
	margin-top: 8px;
	font-size: 0.85rem;
	padding: 6px 10px;
	border-radius: 6px;
}
.ka-avatar-msg.ok  { background: #ecfdf3; color: #047857; border: 1px solid #a7f3d0; }
.ka-avatar-msg.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ── Password toggle (skryté pod button kým user neklikne) ── */
.ka-pw-toggle {
	display: inline-block;
	background: none;
	border: 1px solid #ddd;
	color: #555;
	padding: 8px 16px;
	border-radius: 50px;
	font-family: inherit;
	font-size: 0.85rem;
	cursor: pointer;
	margin: 18px 0 6px;
	transition: background 0.15s, border-color 0.15s;
}
.ka-pw-toggle:hover {
	background: rgba(212,175,55,0.08);
	border-color: #D4AF37;
}
.ka-pw-section {
	background: #fbfbfb;
	border: 1px solid #ececec;
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 16px;
}

/* ── Mobile tweaks ── */
@media (max-width: 720px) {
	.ka-clen-hero { padding: 60px 18px 50px; }
	.ka-clen-grid { gap: 14px; }
	.ka-clen-card { padding: 22px 18px; }
	.ka-cust-row { grid-template-columns: 60px 1fr; gap: 10px; padding: 12px; }
	.ka-cust-row-status { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
}
