/* Kiss Empire — studio dashboard */

.ke-studio-dash {
	max-width: 960px;
	margin: 0 auto;
	font-size: 15px;
}

.ke-dash-title {
	margin: 0 0 16px;
}

.ke-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 18px;
}
.ke-notice.is-ok { background: #e6f6ec; color: #0a5a2a; }
.ke-notice.is-error { background: #fbeaea; color: #8a1f1f; }
.ke-notice.is-info { background: #eef2fb; color: #22386e; }

.ke-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
	margin-bottom: 28px;
}
/* Piani: numero di colonne scelto per responsive (var --pcols-*, default 1/2/3);
   .ke-plans-scope--full = larghezza piena, altrimenti centrato con max-width. */
.ke-plans { grid-template-columns: repeat(var(--pcols-m, 1), 1fr); align-items: stretch; }
@media (min-width: 680px)  { .ke-plans { grid-template-columns: repeat(var(--pcols-t, 2), 1fr); } }
@media (min-width: 1024px) { .ke-plans { grid-template-columns: repeat(var(--pcols-d, 3), 1fr); } }
.ke-plans-scope:not(.ke-plans-scope--full) { max-width: 1180px; margin-left: auto; margin-right: auto; }
.ke-plans-scope--full { max-width: none; } /* fullsize: scavalca il cap 960 di .ke-studio-dash */
.ke-card {
	background: linear-gradient(180deg, #1c1626 0%, #141019 100%);
	color: #fff;
	border: 1px solid #2c2438;
	border-radius: 16px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.ke-card-label { display: block; margin-bottom: 8px; font-size: 12px; opacity: .55; text-transform: uppercase; letter-spacing: .06em; }
.ke-card-value { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }

/* Offline / bank-transfer payment instructions (pending subscription) */
.ke-offline-pay { margin: 18px 0; }
.ke-offline-pay h3 { margin: 0 0 4px; }
.ke-offline-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 10px 0 4px; }
.ke-offline-details dt { font-weight: 600; opacity: .75; }
.ke-offline-details dd { margin: 0; word-break: break-all; }
.ke-offline-pay code { background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.ke-offline-note { opacity: .85; margin: 8px 0 0; white-space: pre-line; }

.ke-table {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0 28px;
}
.ke-table th, .ke-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #e2e2e6;
}
.ke-table th { font-size: 12px; text-transform: uppercase; opacity: .6; }

.ke-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}
.ke-status--pending { background: #fff3cd; color: #7a5900; }
.ke-status--publish { background: #d6f5e0; color: #0a5a2a; }
.ke-status--draft { background: #f3d6d6; color: #8a1f1f; }
.ke-status--future { background: #e0e7ff; color: #2a3a8a; }

.ke-form { background: #f7f7f9; border-radius: 12px; padding: 20px; }
.ke-field { margin-bottom: 14px; }
.ke-field label { display: block; font-weight: 600; margin-bottom: 5px; }
.ke-field input[type=text],
.ke-field input[type=email],
.ke-field input[type=password],
.ke-field input[type=number],
.ke-field input[type=tel],
.ke-field input[type=search],
.ke-field input[type=url],
.ke-field input[type=date],
.ke-field input[type=datetime-local],
.ke-field select,
.ke-field textarea { width: 100%; padding: 9px 11px; border: 1px solid #ccced2; border-radius: 6px; box-sizing: border-box; }
.ke-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ke-check label { font-weight: 400; }

.ke-btn {
	display: inline-block;
	padding: 13px 28px;
	border-radius: 10px;
	background: #2c2440;
	color: #fff;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.ke-btn--primary { background: var(--ke-accent,#e50914); box-shadow: 0 4px 14px rgba(229, 9, 20, .30); }
.ke-btn:hover { transform: translateY(-1px); }
.ke-btn--primary:hover { background: #f5111d; box-shadow: 0 7px 20px rgba(229, 9, 20, .45); }

/* Pricing / plan cards */
.ke-plan { padding: 22px 20px; }
.ke-plan .ke-card-label { opacity: .5; margin-bottom: 12px; }
/* prezzo responsivo: non va più a capo nelle colonne strette */
.ke-plan .ke-card-value { font-size: clamp(19px, 1.7vw, 27px); margin-bottom: 20px; }
.ke-plan form { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.ke-plan .ke-btn { width: 100%; text-align: center; padding: 14px 20px; }
.ke-plan { transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.ke-plan:hover { transform: translateY(-4px); border-color: var(--ke-accent, #e50914); box-shadow: 0 14px 34px rgba(0, 0, 0, .42); }

/* Token package cards: info on the left, buy button on the right.
   .ke-card.ke-pack raises specificity above the theme's .ke-card{display:block}. */
.ke-card.ke-pack { display: flex; flex-direction: row; align-items: center; gap: 18px; }
.ke-pack-info { display: flex; flex-direction: column; }
.ke-pack .ke-card-label { margin-bottom: 6px; }
.ke-pack form { margin-left: auto; display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 160px; }
/* The price button is a direct child (single shared form), so push IT to the right. */
.ke-card.ke-pack > .ke-btn { margin-left: auto; min-width: 150px; justify-content: center; }
.ke-pack .ke-btn { white-space: nowrap; text-align: center; }
@media (max-width: 480px) {
	.ke-card.ke-pack { flex-direction: column; align-items: flex-start; gap: 14px; }
	.ke-pack form, .ke-card.ke-pack > .ke-btn { margin-left: 0; width: 100%; }
}

/* Gateway select on the plan card */
.ke-gw-select {
	width: 100%;
	padding: 11px 34px 11px 12px;
	text-overflow: ellipsis;
	background: #221b2c;
	color: #fff;
	border: 1px solid #3a2f4a;
	border-radius: 9px;
	font-size: 14px;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23b9a7e6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

/* Compact token wallet bar */
.ke-wallet {
	display: flex;
	align-items: baseline;
	gap: 12px;
	background: #14101a;
	border: 1px solid #2c2438;
	border-radius: 12px;
	padding: 16px 22px;
	margin-bottom: 24px;
}
.ke-wallet-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .55; }
.ke-wallet-value { font-size: 26px; font-weight: 800; margin-left: auto; }

/* Active-subscription panel on the account page */
.ke-sub-panel {
	background: linear-gradient(180deg, #1c1626 0%, #141019 100%);
	border: 1px solid #2c2438;
	border-radius: 16px;
	padding: 22px 24px;
	margin-bottom: 24px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.ke-sub-panel h3 { margin: 0 0 12px; font-size: 20px; }
.ke-sub-panel p { margin: 5px 0; opacity: .85; }
.ke-sub-panel form { margin-top: 18px; }
.ke-sub-meta { display: inline-block; margin-left: 6px; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #2e7d46; color: #fff; vertical-align: middle; }
.ke-sub-meta--cancelled { background: #5b5566; }
.ke-sub-meta--on_hold { background: #c2601b; }
.ke-sub-meta--expired { background: #8a1f2b; }
.ke-sub-meta--pending { background: #b7791f; }

/* Earnings chart */
.ke-chart-wrap { width: 100%; overflow: hidden; margin: 4px 0 8px; }
.ke-chart { display: block; width: 100%; height: auto; }
.ke-chart-bar { fill: var(--ke-accent, #e50914); transition: opacity .15s; }
.ke-chart-bar:hover { opacity: .8; }
.ke-chart-axis { stroke: rgba(128,128,128,.35); stroke-width: 1; }
.ke-chart-val { fill: currentColor; opacity: .65; font-size: 11px; font-variant-numeric: tabular-nums; }
.ke-chart-x { fill: currentColor; opacity: .55; font-size: 11px; }

@media (max-width: 640px) {
	.ke-field-row { grid-template-columns: 1fr; }
}

/* token recharge: shared payment options (dark, no white selects) */
.ke-pay-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 4px 0 16px; }
.ke-pay-gw { display: inline-flex; align-items: center; gap: 8px; color: #cdc3e0; font-size: 14px; }
.ke-pay-gw > span { white-space: nowrap; }
.ke-gw-select, .ke-pay-gw select { background: #221b2c; color: #fff; border: 1px solid #3a2f4a; border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.ke-tokens-form .ke-pack button { min-width: 150px; }

/* Save-card accordion (Stripe Elements) below the recharge cards */
/* card salva-carta: sempre aperta, non collassabile, larghezza piena */
.ke-savecard { margin-top: 28px; }
.ke-savecard-head { background: #1b1526; border: 1px solid #3a2f4a; border-radius: 12px 12px 0 0; padding: 15px 18px; color: #cdc3e0; font-size: 15px; font-weight: 700; }
.ke-savecard-panel { background: #1b1526; border: 1px solid #3a2f4a; border-top: 0; border-radius: 0 0 12px 12px; padding: 18px; margin-top: -1px; }
.ke-savecard-note { color: #8a7ca8; font-size: 13px; margin: 0 0 14px; }
.ke-savecard-field { background: #221b2c; border: 1px solid #3a2f4a; border-radius: 8px; padding: 13px 12px; margin-bottom: 12px; }
/* Gateway chooser */
.ke-savecard-gw-row { display: flex; align-items: center; gap: 8px; color: #cdc3e0; font-size: 14px; margin-bottom: 14px; }
.ke-savecard-gw { flex: 1; min-width: 0; background: #221b2c; color: #fff; border: 1px solid #3a2f4a; border-radius: 8px; padding: 9px 11px; font-size: 14px; }
.ke-savecard-intent.is-active { background: #234c30; box-shadow: none; }
.ke-savecard-current { margin: 0 0 14px; color: #cdc3e0; }
.ke-savecard-current strong { color: #fff; }
.ke-savecard-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ke-savecard-remove { background: #2c2440; }
.ke-savecard-msg { display: block; margin-top: 12px; font-size: 13px; color: #8a7ca8; }
.ke-savecard-msg.is-ok { color: #5fd08a; font-weight: 700; }
.ke-savecard-msg.is-err { color: #ff6b6b; }

/* --------------------------------------------------------------------------
   Hub Account: menu laterale + sezione attiva
   -------------------------------------------------------------------------- */
.ke-studio-dash.ke-account { max-width: 1080px; display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.ke-account-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 90px; }
.ke-account-nav-link { display: block; padding: 11px 14px; border-radius: 10px; color: #cfc8db; text-decoration: none; font-weight: 600; border-left: 3px solid transparent; transition: background .15s ease, color .15s ease; }
.ke-account-nav-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.ke-account-nav-link.is-active { background: #241c33; color: #fff; border-left-color: var(--ke-accent, #e50914); }
.ke-account-nav-out { margin-top: 14px; padding-top: 15px; border-top: 1px solid #2c2438; color: #c98; opacity: .85; }
.ke-account-nav-out:hover { color: #fff; opacity: 1; }
.ke-account-main { min-width: 0; }
.ke-account-title { margin: 0 0 18px; font-size: 1.55rem; }
/* form profilo: input scuri coerenti col resto (niente sfondo chiaro) */
.ke-account-form .ke-field input,
.ke-account-form .ke-field select { background: #221b2c; color: #fff; border-color: #3a2f4a; }
.ke-account-form .ke-field input:disabled { opacity: .55; }
/* select uniformati agli input (niente freccia nativa doppia): stessa altezza,
   freccia custom singola a destra */
.ke-account-form .ke-field select {
	appearance: none; -webkit-appearance: none; padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23b9a7e6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
}
.ke-field-note { display: block; margin-top: 5px; font-size: 12px; color: #8a7ca8; }
.ke-account-sep { border: 0; border-top: 1px solid #2c2438; margin: 24px 0 16px; }
.ke-account-subhead { font-weight: 700; margin: 0 0 12px; }
/* cronologia token */
.ke-token-log th, .ke-token-log td { border-bottom-color: #2c2438; }
.ke-token-log .ke-tok-pos { color: #3ad07a; font-weight: 700; }
.ke-token-log .ke-tok-neg { color: #f0616b; font-weight: 700; }
@media (max-width: 780px) {
	.ke-studio-dash.ke-account { grid-template-columns: 1fr; gap: 18px; }
	.ke-account-nav { flex-direction: row; flex-wrap: wrap; position: static; top: auto; }
	.ke-account-nav-link { border-left: 0; border-bottom: 3px solid transparent; }
	.ke-account-nav-link.is-active { border-left: 0; border-bottom-color: var(--ke-accent, #e50914); }
	.ke-account-nav-out { margin-top: 0; padding-top: 11px; border-top: 0; }
}
/* descrizione salva-carta (sezione Token) */
.ke-savecard-desc { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: #9a8cb8; }

/* --------------------------------------------------------------------------
   Feed notifiche (account → Notifiche)
   -------------------------------------------------------------------------- */
.ke-notif-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ke-notif { position: relative; padding: 14px 16px; border-radius: 12px; background: #1c1626; border: 1px solid #2c2438; overflow: hidden; }
.ke-notif::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #6b6480; }
.ke-notif--success::before { background: #3ad07a; }
.ke-notif--warning::before { background: #f0b429; }
.ke-notif--info::before { background: #4a90d9; }
.ke-notif--announce::before { background: var(--ke-accent, #e50914); }
.ke-notif.is-unread { border-color: #4a3f63; background: #221a30; }
.ke-notif.is-unread .ke-notif-title::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ke-accent, #e50914); margin-left: 8px; vertical-align: middle; }
.ke-notif-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ke-notif-title { font-weight: 700; }
.ke-notif-time { font-size: 12px; color: #8a7ca8; white-space: nowrap; }
.ke-notif-body { margin-top: 5px; font-size: 14px; color: #cfc8db; }
.ke-notif-body p { margin: 0 0 6px; }
.ke-notif-body p:last-child { margin-bottom: 0; }
.ke-notif-link { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--ke-accent-2, #ff5a5f); text-decoration: none; }

/* Piani embeddati nella tab Abbonamento dell'account */
.ke-sub-change-title { margin: 4px 0 6px; font-size: 1.2rem; }
.ke-sub-change-hint { margin: 0 0 16px; font-size: 13px; color: #9a8cb8; }
.ke-account-main .ke-plans-scope { max-width: none; margin: 0; }

/* asterisco campo obbligatorio */
.ke-req { color: var(--ke-accent, #e50914); font-weight: 700; }
