/* YC Push — ön yüz */
:root {
	--ycp-accent: var(--yc-primary, #111827);
	--ycp-ink: #111827;
	--ycp-muted: #5b6472;
	--ycp-line: rgba(17, 24, 39, .1);
	--ycp-bg: #fff;
	--ycp-radius: 14px;
	--ycp-shadow: 0 18px 48px rgba(17, 24, 39, .18), 0 2px 8px rgba(17, 24, 39, .08);
	--ycp-z: 99990;
}

.ycp-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.ycp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px;
	background: var(--ycp-accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
	cursor: pointer; transition: transform .15s ease, opacity .15s ease, background-color .15s ease; -webkit-tap-highlight-color: transparent;
}
.ycp-btn:hover { opacity: .92; }
.ycp-btn:active { transform: scale(.98); }
.ycp-btn:focus-visible, .ycp-link:focus-visible, .ycp-x:focus-visible, .ycp-bell:focus-visible { outline: 2px solid var(--ycp-accent); outline-offset: 2px; }
.ycp-btn[disabled] { opacity: .55; cursor: default; }
.ycp-btn.is-on { background: #0f7a3d; }
.ycp-btn--ghost { background: transparent; color: var(--ycp-ink); box-shadow: inset 0 0 0 1.5px var(--ycp-line); }
.ycp-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ycp-accent); opacity: 1; }
.ycp-btn--ghost.is-on { background: transparent; color: #0f7a3d; box-shadow: inset 0 0 0 1.5px #0f7a3d; }
.ycp-link { background: none; border: 0; padding: 8px 4px; color: var(--ycp-muted); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ycp-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--ycp-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.ycp-x:hover { background: rgba(17, 24, 39, .06); }
.ycp-sc { display: inline-block; }
.ycp-align-center { display: block; text-align: center; }
.ycp-align-right { display: block; text-align: right; }

/* İzin penceresi */
.ycp-prompt {
	position: fixed; z-index: var(--ycp-z); display: flex; gap: 14px; align-items: flex-start;
	width: min(420px, calc(100vw - 24px)); padding: 18px 44px 16px 18px; box-sizing: border-box;
	background: var(--ycp-bg); color: var(--ycp-ink); border-radius: var(--ycp-radius); box-shadow: var(--ycp-shadow);
	opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease; font-size: 14px; line-height: 1.45;
}
.ycp-prompt.is-on { opacity: 1; transform: none; }
.ycp-prompt--bottom-center { left: 50%; bottom: 16px; margin-left: calc(min(420px, calc(100vw - 24px)) / -2); }
.ycp-prompt--bottom-left { left: 16px; bottom: 16px; }
.ycp-prompt--bottom-right { right: 16px; bottom: 16px; }
.ycp-prompt--top-center { left: 50%; top: 16px; margin-left: calc(min(420px, calc(100vw - 24px)) / -2); transform: translateY(-16px); }
.ycp-prompt--bar { width: 100vw; max-width: none; left: 0 !important; right: 0; bottom: 0 !important; top: auto !important; margin: 0 !important; border-radius: 0; align-items: center; padding: 14px 52px 14px 18px; }
.ycp-prompt__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; object-fit: cover; }
.ycp-prompt__icon--bell { display: grid; place-items: center; background: color-mix(in srgb, var(--ycp-accent) 12%, #fff); color: var(--ycp-accent); }
.ycp-prompt__icon--bell .ycp-ico { width: 22px; height: 22px; }
.ycp-prompt__body strong { display: block; font-size: 15px; margin-bottom: 4px; }
.ycp-prompt__body p { margin: 0 0 12px; color: var(--ycp-muted); }
.ycp-prompt__actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
@media (max-width: 600px) {
	.ycp-prompt--bottom-center, .ycp-prompt--bottom-left, .ycp-prompt--bottom-right { left: 12px; right: 12px; margin: 0; width: auto; bottom: calc(12px + env(safe-area-inset-bottom)); }
	.ycp-prompt--top-center { left: 12px; right: 12px; margin: 0; width: auto; }
}

/* Zil */
.ycp-bell {
	position: fixed; z-index: calc(var(--ycp-z) - 2); width: 48px; height: 48px; border: 0; border-radius: 50%;
	display: grid; place-items: center; background: var(--ycp-bg); color: var(--ycp-ink); box-shadow: 0 6px 20px rgba(17, 24, 39, .18);
	cursor: pointer; transition: transform .15s ease; -webkit-tap-highlight-color: transparent;
}
.ycp-bell:hover { transform: scale(1.05); }
.ycp-bell .ycp-ico { width: 22px; height: 22px; }
.ycp-bell__dot { position: absolute; top: 11px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--ycp-accent); box-shadow: 0 0 0 2px var(--ycp-bg); }
.ycp-bell.is-on .ycp-bell__dot { background: #12a150; }
.ycp-bell.is-busy { opacity: .6; }
.ycp-bell-panel {
	position: fixed; z-index: var(--ycp-z); width: 260px; padding: 14px 16px; box-sizing: border-box; background: var(--ycp-bg); color: var(--ycp-ink);
	border-radius: 12px; box-shadow: var(--ycp-shadow); font-size: 14px; line-height: 1.45;
}
.ycp-bell-panel strong { display: block; margin-bottom: 4px; }
.ycp-bell-panel p { margin: 0 0 6px; color: var(--ycp-muted); }

/* Kartlar (teşekkür sayfası, hesabım) */
.ycp-card {
	display: flex; gap: 14px; align-items: center; margin: 0 0 20px; padding: 16px 18px; border-radius: var(--ycp-radius);
	background: color-mix(in srgb, var(--ycp-accent) 6%, #fff); border: 1px solid color-mix(in srgb, var(--ycp-accent) 18%, #fff); color: var(--ycp-ink);
}
.ycp-card[hidden] { display: none; }
.ycp-card__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--ycp-accent); }
.ycp-card__icon .ycp-ico { width: 22px; height: 22px; }
.ycp-card__body { flex: 1; min-width: 0; }
.ycp-card__body strong { display: block; font-size: 15px; }
.ycp-card__body p { margin: 2px 0 0; color: var(--ycp-muted); font-size: 14px; line-height: 1.45; }
.ycp-card.is-on { background: #f0faf4; border-color: #bfe5cd; }
.ycp-card.is-on .ycp-card__icon { color: #0f7a3d; }
.ycp-check { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 14px; cursor: pointer; }
.ycp-check[hidden] { display: none; }
@media (max-width: 600px) { .ycp-card { flex-wrap: wrap; } .ycp-card .ycp-btn { width: 100%; } }

/* Ürün sayfası */
.ycp-watch { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ycp-watch .ycp-btn[hidden] { display: none; }

/* iOS rehberi */
/* Rehber ve uyarı tam ekran katmanıdır: canlı destek gibi yüksek katmanlı araçların da üstünde durmalı. */
.ycp-sheet { position: fixed; inset: 0; z-index: 2147483100; display: flex; align-items: flex-end; justify-content: center; background: rgba(17, 24, 39, .45); opacity: 0; transition: opacity .2s ease; }
.ycp-sheet.is-on { opacity: 1; }
.ycp-sheet__panel { position: relative; width: min(480px, 100%); padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); box-sizing: border-box; background: #fff; color: var(--ycp-ink); border-radius: 18px 18px 0 0; font-size: 15px; line-height: 1.5; }
.ycp-sheet__panel strong { display: block; font-size: 17px; margin: 0 30px 6px 0; }
.ycp-sheet__panel p { margin: 0 0 14px; color: var(--ycp-muted); }
.ycp-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ycp-steps li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.ycp-share { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #f2f4f7; color: #0a66ff; }
.ycp-share svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.ycp-sheet__head { display: flex; gap: 14px; align-items: center; margin: 0 30px 14px 0; }
.ycp-sheet__head strong { margin: 0 0 4px; }
.ycp-sheet__head p { margin: 0; }
.ycp-app { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 72px; }
.ycp-app img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; box-shadow: 0 4px 14px rgba(17, 24, 39, .18); }
.ycp-app span { font-size: 11px; color: var(--ycp-ink); max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ycp-steps li > span:last-child { font-weight: 500; }
.ycp-steps b { color: var(--ycp-accent); }
.ycp-share img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.ycp-btn--block { display: flex; width: 100%; margin-top: 16px; min-height: 48px; text-decoration: none; }
.ycp-sheet__actions { display: grid; gap: 4px; justify-items: center; margin-top: 4px; }
.ycp-sheet__actions .ycp-btn--block { margin-top: 10px; }

/* Paylaş düğmesini gösteren ok (tarayıcı araç çubuğu sayfanın dışında; ok kenara doğru zıplar) */
.ycp-arrow { position: fixed; z-index: 2147483102; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ycp-accent); color: #fff; box-shadow: 0 8px 24px rgba(17, 24, 39, .3); pointer-events: none; animation: ycp-bounce 1s ease-in-out infinite; }
.ycp-arrow svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ycp-arrow--bottom { left: calc(50% - 27px); bottom: calc(10px + env(safe-area-inset-bottom)); }
.ycp-arrow--bottom-right { right: 16px; bottom: calc(10px + env(safe-area-inset-bottom)); }
.ycp-arrow--top { right: 16px; top: calc(10px + env(safe-area-inset-top)); --ycp-dir: -1; }
.ycp-arrow--top svg { transform: rotate(180deg); }
@keyframes ycp-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(8px * var(--ycp-dir, 1))); } }
.ycp-sheet:has(+ .ycp-arrow--bottom) .ycp-sheet__panel, .ycp-sheet:has(~ .ycp-arrow--bottom) .ycp-sheet__panel { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

/* Ana ekrandan ilk açılış: son adım vurgusu */
.ycp-prompt--first { border: 2px solid var(--ycp-accent); }

/* Bildirim */
.ycp-toast {
	position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 2147483101; max-width: min(460px, calc(100vw - 32px));
	padding: 12px 16px; border-radius: 10px; background: #111827; color: #fff; font-size: 14px; line-height: 1.45; box-shadow: var(--ycp-shadow);
	transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.ycp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
	.ycp-prompt, .ycp-toast, .ycp-sheet, .ycp-btn, .ycp-bell { transition: none; }
	.ycp-arrow { animation: none; }
}
