/* Cats Boutique App — οθόνη εφαρμογής (σύνδεση, εγγραφή, Cats Club). */

body.cba-app-screen {
	margin: 0 !important;
	padding-top: 0 !important;
	background: var(--cba-tissue) !important;
	color: var(--cba-ink);
}

.cba-app {
	--cba-display: "GFS Didot", "Didot", "Bodoni 72", Georgia, serif;
	color-scheme: light;
	max-width: 460px;
	margin: 0 auto;
	padding: max(16px, env(safe-area-inset-top)) 20px calc(48px + env(safe-area-inset-bottom));
	color: var(--cba-ink);
	font-family: var(--cba-ui);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.cba-app *,
.cba-app *::before,
.cba-app *::after {
	box-sizing: border-box;
}

.cba-app h1,
.cba-app h2,
.cba-app p,
.cba-app ul,
.cba-app ol {
	margin: 0;
	padding: 0;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.cba-app a {
	color: inherit;
}

.cba-app :focus-visible {
	outline: 2px solid var(--cba-thread);
	outline-offset: 2px;
}

/* ---------- Πάνω μέρος ---------- */
.cba-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
}

.cba-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.cba-logo-img {
	display: block;
	width: auto;
	max-width: 170px;
	max-height: 44px;
	object-fit: contain;
}

.cba-logo-text {
	font-family: var(--cba-display);
	font-size: 22px;
}

.cba-bell {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	text-decoration: none;
}

.cba-bell-count {
	position: absolute;
	top: 5px;
	right: 4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--cba-thread);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

.cba-bell-count[hidden] {
	display: none;
}

/* ---------- Τίτλοι ---------- */
.cba-app .cba-title,
.cba-app .cba-hello {
	margin-top: 36px;
	font-family: var(--cba-display);
	font-weight: 400;
	line-height: 1.02;
	color: var(--cba-ink);
}

.cba-app .cba-title {
	font-size: clamp(46px, 14vw, 60px);
}

.cba-app .cba-hello {
	font-size: clamp(34px, 10vw, 44px);
	margin-bottom: 40px;
}

.cba-app .cba-lede {
	max-width: 34ch;
	margin-top: 14px;
	color: var(--cba-muted);
}

/* ---------- Σύνδεση / Νέος λογαριασμός ---------- */
.cba-switch {
	display: flex;
	gap: 28px;
	margin: 32px 0 24px;
	border-bottom: 1px solid var(--cba-line);
}

.cba-switch button {
	position: relative;
	padding: 10px 0 12px;
	border: 0;
	background: none;
	color: var(--cba-muted);
	font: 500 16px/1.2 var(--cba-ui);
	cursor: pointer;
}

.cba-switch button[aria-selected="true"] {
	color: var(--cba-ink);
	font-weight: 600;
}

.cba-switch button[aria-selected="true"]::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--cba-thread);
}

.cba-panel[hidden] {
	display: none;
}

.cba-form {
	display: grid;
	gap: 16px;
}

.cba-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.cba-field {
	display: grid;
	gap: 6px;
	margin: 0;
}

.cba-field > span {
	color: var(--cba-muted);
	font-size: 13.5px;
	line-height: 1.3;
}

.cba-app .cba-field input,
.cba-app .cba-field select {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--cba-line);
	border-radius: 10px;
	background: var(--cba-paper);
	color: var(--cba-ink);
	font: 400 16px/1.2 var(--cba-ui);
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.cba-app .cba-field select {
	background-image: linear-gradient(45deg, transparent 50%, var(--cba-muted) 50%), linear-gradient(135deg, var(--cba-muted) 50%, transparent 50%);
	background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
	background-size: 5px 5px;
	background-repeat: no-repeat;
}

.cba-app .cba-field input:focus,
.cba-app .cba-field select:focus {
	border-color: var(--cba-ink);
	outline: 2px solid var(--cba-ink);
	outline-offset: -1px;
}

.cba-pass {
	position: relative;
}

.cba-eye {
	position: absolute;
	right: 6px;
	bottom: 6px;
	height: 38px;
	padding: 0 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--cba-muted);
	font: 500 13px/1 var(--cba-ui);
	cursor: pointer;
}

.cba-pass input {
	padding-right: 92px !important;
}

.cba-check {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 10px;
	align-items: start;
	font-size: 14px;
	line-height: 1.45;
}

.cba-check input {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--cba-ink);
}

.cba-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--cba-ink);
	color: #fff !important;
	font: 600 16px/1.2 var(--cba-ui);
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
}

.cba-btn:disabled {
	opacity: 0.6;
}

.cba-btn-small {
	width: auto;
	min-height: 44px;
	padding: 0 18px;
	font-size: 14.5px;
	white-space: nowrap;
}

.cba-link,
.cba-linkbtn {
	justify-self: center;
	padding: 6px;
	border: 0;
	background: none;
	color: var(--cba-ink);
	font: 500 14.5px/1.3 var(--cba-ui);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.cba-skip {
	display: block;
	margin-top: 36px;
	color: var(--cba-muted) !important;
	font-size: 14.5px;
	text-align: center;
	text-underline-offset: 3px;
}

.cba-errors {
	margin-bottom: 20px;
	padding: 12px 14px;
	border-left: 3px solid var(--cba-thread);
	border-radius: 4px 10px 10px 4px;
	background: var(--cba-paper);
	font-size: 14.5px;
}

.cba-errors p + p {
	margin-top: 6px;
}

.cba-perks {
	display: grid;
	gap: 10px;
	margin: 0 0 24px !important;
	list-style: none;
}

.cba-perks li {
	position: relative;
	padding-left: 22px;
	font-size: 15px;
	line-height: 1.45;
}

.cba-perks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.5em;
	width: 8px;
	height: 8px;
	border: 2px solid var(--cba-thread);
	border-radius: 50%;
}

/* ---------- Η καρτέλα-ετικέτα του Cats Club ---------- */
.cba-tag {
	position: relative;
	isolation: isolate;
	margin: 18px 4px 44px;
	padding: 56px 26px 26px;
	transform: rotate(-1.4deg);
}

.cba-tag::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: var(--cba-paper);
	border-radius: 0 0 14px 14px;
	clip-path: polygon(16% 0, 84% 0, 100% 15%, 100% 100%, 0 100%, 0 15%);
	filter: drop-shadow(0 1px 0 var(--cba-line));
}

.cba-tag-hole {
	position: absolute;
	top: 18px;
	left: 50%;
	width: 16px;
	height: 16px;
	margin-left: -8px;
	border-radius: 50%;
	background: var(--cba-tissue);
	box-shadow: inset 0 1px 2px rgba(32, 26, 46, 0.25);
}

.cba-tag-string {
	position: absolute;
	top: -36px;
	left: calc(50% - 2px);
	width: 120px;
	height: 60px;
	color: var(--cba-thread);
	overflow: visible;
}

.cba-tag-name {
	color: var(--cba-muted);
	font-size: 14px;
	letter-spacing: 0.04em;
	text-align: center;
}

.cba-tag-amount {
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 8px 0 18px !important;
}

.cba-tag-now {
	font-family: var(--cba-display);
	font-size: clamp(48px, 15vw, 64px);
	line-height: 1;
}

.cba-tag-of {
	color: var(--cba-muted);
	font-size: 15px;
}

.cba-thread {
	position: relative;
	height: 3px;
	background: repeating-linear-gradient(90deg, var(--cba-line) 0 7px, transparent 7px 12px);
}

.cba-thread span {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--cba-fill, 0%);
	background: var(--cba-thread);
	border-radius: 2px;
	transform-origin: left center;
	animation: cba-sew 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}

@keyframes cba-sew {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

.cba-tag-note {
	margin-top: 16px !important;
	font-size: 15px;
	line-height: 1.45;
	text-align: center;
}

/* ---------- Ενότητες ---------- */
.cba-block {
	padding: 28px 0;
	border-top: 1px solid var(--cba-line);
}

.cba-app .cba-block h2 {
	margin-bottom: 10px;
	font-family: var(--cba-display);
	font-size: 27px;
	font-weight: 400;
	line-height: 1.15;
}

.cba-block > p {
	color: var(--cba-ink);
}

.cba-muted {
	margin-top: 12px !important;
	color: var(--cba-muted) !important;
	font-size: 14.5px;
}

.cba-coupon {
	margin-top: 14px;
	padding: 16px;
	border: 1.5px dashed var(--cba-thread);
	border-radius: 12px;
	background: var(--cba-paper);
}

.cba-coupon-what {
	font-size: 18px;
	font-weight: 600;
}

.cba-coupon-why {
	margin-top: 2px !important;
	color: var(--cba-muted);
	font-size: 14px;
}

.cba-coupon-row,
.cba-linkbox,
.cba-push-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.cba-code {
	flex: 1 1 140px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--cba-line);
	border-radius: 999px;
	background: var(--cba-tissue);
	color: var(--cba-ink);
	font: 600 15px/1 var(--cba-ui);
	letter-spacing: 0.08em;
	cursor: copy;
}

.cba-app .cba-linkbox input {
	flex: 1 1 180px;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--cba-line);
	border-radius: 999px;
	background: var(--cba-paper);
	color: var(--cba-ink);
	font: 400 14px/1 var(--cba-ui);
}

.cba-push-state {
	color: var(--cba-ink);
}

.cba-push-actions .cba-btn {
	width: auto;
}

.cba-push-actions [hidden] {
	display: none;
}

/* ---------- Μηνύματα ---------- */
.cba-messages {
	margin-top: 6px !important;
	list-style: none;
}

.cba-messages li + li {
	border-top: 1px solid var(--cba-line);
}

.cba-messages a {
	position: relative;
	display: flex;
	gap: 12px;
	padding: 14px 0 14px 16px;
	text-decoration: none;
}

.cba-messages li.is-new a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 22px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--cba-thread);
}

.cba-messages img {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
}

.cba-msg {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.cba-msg strong {
	font-weight: 600;
	line-height: 1.35;
}

.cba-msg span {
	color: var(--cba-ink);
	font-size: 14.5px;
	line-height: 1.45;
}

.cba-msg time {
	color: var(--cba-muted);
	font-size: 12.5px;
}

/* ---------- Λογαριασμός ---------- */
.cba-account ul {
	list-style: none;
}

.cba-account li + li {
	border-top: 1px solid var(--cba-line);
}

.cba-account a {
	position: relative;
	display: block;
	padding: 14px 24px 14px 0;
	text-decoration: none;
}

.cba-account a::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-top: 1.5px solid var(--cba-muted);
	border-right: 1.5px solid var(--cba-muted);
	transform: rotate(45deg);
}

.cba-shop {
	margin-top: 8px;
}

/* ---------- Μήνυμα επιβεβαίωσης ---------- */
.cba-toast {
	position: fixed;
	z-index: 99999;
	left: 50%;
	bottom: calc(88px + env(safe-area-inset-bottom));
	max-width: calc(100% - 32px);
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--cba-ink);
	color: #fff;
	font: 500 14.5px/1.3 var(--cba-ui);
	transform: translateX(-50%);
	transition: opacity 0.4s;
}

.cba-toast.is-out {
	opacity: 0;
}

@media (max-width: 360px) {
	.cba-row {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cba-thread span {
		animation: none;
	}
}
