
/* Tier accent colors - moved from .sub-shell (originally scoped to the "Nadzor naročnine" page
   only) to body, so the paywall sheet/lock badges on other pages (song page, accessories,
   nav dropdown) can use var(--sub-accent-supporter) etc. too. Safe to move: they only reference
   --text-grey/--primary-color, which are themselves always declared on body/body.light/body.dark
   (see main_white.css), so resolution still picks up the right light/dark value per page. */
body {
	--sub-accent-free: var(--text-grey);
	--sub-accent-supporter: #e1bc5f;
	--sub-accent-premium: var(--primary-color);
	--sub-danger: #c36572;
}

.sub-shell {
	/* the design uses Poppins for headings (already loaded site-wide) and Inter for everything else
	   (also already loaded, just for a different page - see main.css - only missing weight 600,
	   added there). Headings below set Poppins explicitly and so override this. */
	font-family: 'Inter', sans-serif;
}

.sub-success-banner {
	background: var(--box-background);
	border: 1px solid var(--main-border-color);
	border-radius: 12px;
	padding: 20px;
	color: var(--main-title-color);
}

.sub-error-banner {
	background: var(--box-background);
	border: 1px solid var(--sub-danger);
	border-radius: 12px;
	padding: 20px;
	color: var(--main-title-color);
}

.sub-view {
	display: none;
}

.sub-view.is-active {
	padding-top: 30px;
	display: block;
	animation: sub-fade-in 0.3s ease-out;
}

@keyframes sub-fade-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.sub-view-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 32px;
}

.sub-view-header h1 {
	font-family: 'Poppins', sans-serif;
	font-size: 30px;
	font-weight: 700;
	color: var(--main-title-color);
	margin-bottom: 10px;
}

.sub-view-header p {
	font-size: 15px;
	color: var(--text-grey);
	line-height: 1.5;
}

/* "Nadzor naročnine" (status dashboard) uses its own compact, left-aligned header instead of the
   centered marketing-style header the landing/comparison grid uses - matches the design's
   .package-page-head (this is now the default view for every user, including free/guest, so it
   needs to read as a normal account subpage header, not a pitch). */
.sub-view-header--left {
	text-align: left;
	max-width: none;
	margin: 0 0 22px;
}

.sub-view-header--left h1 {
	font-size: 24px;
	margin-bottom: 6px;
}

.sub-view-header--left p {
	font-size: 13px;
}

.sub-view-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--main-border-color);
	padding-bottom: 18px;
	margin-bottom: 26px;
	flex-wrap: wrap;
	gap: 16px;
}

.sub-view-header-row h1 {
	font-family: 'Poppins', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--main-title-color);
}

.sub-back-link {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text-grey);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sub-back-link:hover {
	color: var(--primary-color);
}

/* LANDING — comparison grid */
.sub-plans-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: stretch;
	margin-bottom: 40px;
}

.sub-plan-card {
	position: relative;
	background: var(--box-background);
	border: 2px solid var(--main-border-color);
	border-radius: 20px;
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.sub-plan-card.free { --plan-accent: var(--sub-accent-free); }
.sub-plan-card.supporter { --plan-accent: var(--sub-accent-supporter); }
.sub-plan-card.premium { --plan-accent: var(--sub-accent-premium); }

.sub-plan-card:hover {
	transform: translateY(-6px);
	border-color: var(--plan-accent);
}

.sub-plan-card.popular {
	border-color: var(--plan-accent);
}

.sub-plan-card.current-active {
	border-color: var(--plan-accent);
	background: linear-gradient(180deg, color-mix(in srgb, var(--plan-accent), transparent 92%) 0%, var(--box-background) 140px);
}

.sub-badge {
	position: absolute;
	top: 20px;
	right: 20px;
	background: color-mix(in srgb, var(--plan-accent), transparent 82%);
	color: var(--plan-accent);
	border: 1px solid color-mix(in srgb, var(--plan-accent), transparent 65%);
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sub-badge--current {
	background: var(--plan-accent);
	color: #fff;
	border-color: var(--plan-accent);
}

.sub-plan-top {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sub-plan-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: color-mix(in srgb, var(--plan-accent), transparent 88%);
	color: var(--plan-accent);
	font-size: 22px;
}

.plan-lottie {
	display: block;
	width: 58%;
	height: 58%;
	/* width: 66px; */
}

.lottie-change{
	width: 75%;
	height: 75%;
}

@media (max-width: 1200px) {
    .plan-lottie {
        
        height: 52px;
        font-size: calc(28px * var(--text-scale, 1));
    }
}

.sub-plan-card h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--main-title-color);
}

.sub-plan-subtitle {
	font-size: 13px;
	color: var(--text-grey);
	line-height: 1.4;
}

.sub-plan-features {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	flex: 1;
	margin: 0;
	padding: 0;
}

.sub-plan-features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13.5px;
	color: var(--main-title-color);
	line-height: 1.35;
}

.sub-plan-features li i {
	color: var(--plan-accent);
	margin-top: 2px;
	flex-shrink: 0;
}

.sub-plan-bottom {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: auto;
}

.sub-billing-switch {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	background: var(--body-background);
	border: 1px solid var(--main-border-color);
	border-radius: 10px;
	padding: 3px;
}

.sub-billing-switch button {
	padding: 7px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 7px;
	color: var(--text-grey);
	background: transparent;
	border: none;
	cursor: pointer;
}

.sub-billing-switch button.active {
	background: var(--box-background);
	color: var(--main-title-color);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.sub-price-display {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px;
}

.sub-price-number {
	font-family: 'Poppins', sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: var(--main-title-color);
}

.sub-price-unit {
	font-size: 13px;
	color: var(--text-grey);
	font-weight: 500;
}

.sub-price-note {
	font-size: 12px;
	color: var(--text-grey);
	min-height: 16px;
}

.sub-price-note del {
	color: var(--sub-danger);
	margin-right: 4px;
}

.sub-cta-button {
	display: block;
	width: 100%;
	min-height: 46px;
	line-height: 46px;
	text-align: center;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	background: var(--plan-accent);
	color: #000;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.sub-cta-button:hover {
	filter: brightness(1.08);
	/* color: #fff; */
	transform: translateY(0px);
}

.sub-cta-button.ghost {
	background: transparent;
	border: 1px solid var(--main-border-color);
	color: var(--text-grey);
	cursor: default;
	pointer-events: none;
}

.sub-store-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 11px;
	color: var(--text-grey);
}

/* STATUS DASHBOARD */
.sub-status-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 460px;
	gap: 22px;
	align-items: start;
}

.sub-status-hero {
	position: relative;
	background: var(--box-background);
	/* background: radial-gradient(circle at 100% 0%,
 	color-mix(in srgb, var(--plan-accent), transparent 90%), transparent 20rem); */
	border: 1px solid var(--main-border-color);
	border-radius: 22px;
	padding: 34px 30px;
	height: 100%;
	box-sizing: border-box;
}

.sub-status-hero.free { --plan-accent: var(--sub-accent-free); }
.sub-status-hero.supporter { --plan-accent: var(--sub-accent-supporter); }
.sub-status-hero.premium { --plan-accent: var(--sub-accent-premium); }
.sub-status-hero { border-color: color-mix(in srgb, var(--plan-accent), var(--main-border-color) 50%); }


.sub-status-main {
	padding-right: 150px;
}

.sub-kicker {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--plan-accent);
	margin-bottom: 6px;
	display: block;
}

.sub-status-hero h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 33px;
	font-weight: 700;
	color: var(--main-title-color);
	line-height: 1.1;
	margin-bottom: 0;
}

.sub-status-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
}

.sub-status-price strong {
	font-family: 'Poppins', sans-serif;
	font-size: 29px;
	font-weight: 600;
	color: var(--main-title-color);
}

.sub-status-price span {
	font-size: 13px;
	color: var(--text-grey);
}

.sub-status-date {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
	font-size: 13px;
	color: #9aa4ac;
	line-height: 1.5;
	margin-bottom: 0.4rem;
}

.sub-status-date i {
	color: var(--plan-accent);
}

.sub-status-pending-change {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--plan-accent), transparent 90%);
	color: var(--main-title-color);
	font-size: 13px;
	line-height: 1.5;
}

.sub-pending-cancel-link {
	margin-left: auto;
	color: var(--sub-danger);
	text-decoration: underline;
	white-space: nowrap;
}

.plan-badge-row {
	margin-top: 12px;
}

.sub-status-highlight {
	/* margin: 6px 0 0; */
	color: var(--text-grey);
	font-size: 13.5px;
	line-height: 1;
	margin-bottom: 0;
}

/* Pulled out of flow entirely and vertically centered on the whole card (see .sub-status-hero's
   position:relative + .sub-status-main's padding-right above) instead of sitting inline next to
   the text - matches the design's floating .status-orb exactly. */
.sub-status-icon {
	position: absolute;
	top: 50%;
	right: 26px;
	transform: translateY(-50%);
	width: 118px;
	height: 118px;
	flex-shrink: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--plan-accent), var(--body-background) 88%);
	border: 2px solid color-mix(in srgb, var(--plan-accent), transparent 25%);
	color: var(--plan-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	overflow: hidden;
}

.sub-status-actions {
	display: grid;
	gap: 12px;
	align-content: start;
}

.sub-action-btn {
	min-height: 76px;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 20px;
	align-items: center;
	gap: 12px;
	background: var(--box-background);
	border: 1px solid #32383f;
	padding: 12px 16px;
	border-radius: 18px;
	text-align: left;
	color: var(--main-title-color);
	box-sizing: border-box;
}

.sub-action-btn:hover {
	/* border-color: var(--primary-color); */
	background: var(--box-hover-background);
	color: var(--main-title-color);
	/* transform: translateX(4px); */
}

.sub-action-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 16px;
}

.sub-action-icon.teal { background: color-mix(in srgb, var(--primary-color), transparent 85%); color: var(--primary-color); }
.sub-action-icon.teal.supporter { background: color-mix(in srgb, var(--sub-accent-supporter), transparent 85%); color: var(--sub-accent-supporter); }
.sub-action-icon.teal.premium { background: color-mix(in srgb, var(--sub-accent-premium), transparent 85%); color: var(--sub-accent-premium); }
.sub-action-icon.danger { background: color-mix(in srgb, var(--sub-danger), transparent 85%); color: var(--sub-danger); }
.sub-action-icon.neutral { background: color-mix(in srgb, #9aa4ac, transparent 85%); color: #9aa4ac; }

.sub-action-text {
	flex-direction: column;
    justify-content: center;
    display: flex;
}

.sub-action-text strong {
	font-size: 14.5px;
	color: var(--main-title-color);
	display: block;
	margin-bottom: 3px;
}

.sub-action-text span {
	font-size: 11.5px;
	color: var(--text-grey);
	line-height: 1.35;
}

.sub-chevron {
	justify-self: end;
	color: var(--text-grey);
}

.sub-action-btn:hover .sub-chevron {
	color: var(--primary-color);
}

.sub-action-btn.is-disabled {
	opacity: 0.45;
	pointer-events: none;
	cursor: not-allowed;
}

.sub-action-btn.is-disabled:hover {
	background: var(--box-background);
}

.sub-store-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 11.5px;
	color: var(--text-grey);
	padding-top: 6px;
}

/* CHANGE PACKAGE - sizes/borders/icons ported 1:1 from the design's .change-plan-* (see
   C:\Users\Korisnik\Desktop\Subscription\index.html, changePlanRowHTML/renderChangePlanView),
   values mapped onto this site's own CSS variables so the color scheme stays whatever the current
   theme is (dark/light/auto) instead of the design's own hardcoded dark palette. */
.sub-change-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.sub-change-choices {
	display: grid;
	gap: 14px;
}

@media (min-width: 1201px) {
	.sub-change-choices { gap: 24px; }
	.sub-change-option { padding: 27px 20px; }
}

.sub-change-option {
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	width: 100%;
	text-align: left;
	border: 1.5px solid var(--main-border-color);
	border-radius: 18px;
	padding: 18px 20px;
	background: var(--box-background);
	color: var(--main-title-color);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.2s ease;
}

.sub-change-option.free { --plan-accent: var(--sub-accent-free); }
.sub-change-option.supporter { --plan-accent: var(--sub-accent-supporter); }
.sub-change-option.premium { --plan-accent: var(--sub-accent-premium); }

.sub-change-option:hover {
	border-color: color-mix(in srgb, var(--plan-accent), transparent 45%);
}

.sub-change-option.is-selected {
	border-color: var(--plan-accent);
	border-width: 2px;
	background: color-mix(in srgb, var(--plan-accent), var(--box-background) 92%);
}

.sub-option-current {
	position: absolute;
	top: -11px;
	right: 20px;
	background: color-mix(in srgb, var(--plan-accent), var(--box-background) 78%);
	border: 1px solid color-mix(in srgb, var(--plan-accent), transparent 55%);
	color: var(--plan-accent);
	font-size: 10px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 8px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sub-option-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--plan-accent), var(--body-background) 88%);
	border: 2px solid color-mix(in srgb, var(--plan-accent), transparent 25%);
	color: var(--plan-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 15px;
	overflow: hidden;
}

.sub-option-icon.plan-lottie {
	width: 38px;
	display: block;
}

.sub-option-meta {
	flex: 1;
	display: flex;
	flex-direction: column;
	/* gap: 2px; */
	min-width: 0;
}

.sub-option-title {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.sub-option-title strong {
	font-family: 'Poppins', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--main-title-color);
}

.sub-option-badge {
	font-style: normal;
	background: color-mix(in srgb, var(--plan-accent), var(--box-background) 78%);
	color: var(--plan-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 9px;
	min-height: 22px;
}

.regular-color {
	background: color-mix(in srgb, #20252a, var(--box-background) 78%);
	color: #9aa4ac;
}

.chage-plan-badge {
	font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2.5px 7px;
    border-radius: 9px;
    min-height: 16px;
}

.sub-option-subtitle {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	color: var(--text-grey);
}

.sub-option-price {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-self: end;
}

.sub-option-radio {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1.5px solid var(--main-border-color);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #fff;
	font-size: 11px;
}

.sub-option-radio i {
	opacity: 0;
}

.sub-option-radio.selected {
	background: var(--plan-accent);
	border-color: var(--plan-accent);
}

.sub-option-radio.selected i {
	opacity: 1;
}

.sub-option-price-text {
	text-align: right;
}

.sub-option-price-text strong {
	font-family: 'Poppins', sans-serif;
	font-size: 19px;
	font-weight: 600;
	color: var(--main-title-color);
	display: block;
	line-height: 1;
}

.sub-option-price-text small {
	display: block;
	font-size: 11px;
	color: var(--text-grey);
	margin-top: 2px;
	text-align: right;
}

.sub-change-detail {
	background: var(--box-background);
	border: 1px solid var(--main-border-color);
	border-radius: 20px;
	padding: 26px 24px;
}

.sub-change-detail-panel {
	display: none;
	flex-direction: column;
}

.sub-change-detail-panel.free { --plan-accent: var(--sub-accent-free); }
.sub-change-detail-panel.supporter { --plan-accent: var(--sub-accent-supporter); }
.sub-change-detail-panel.premium { --plan-accent: var(--sub-accent-premium); }

.sub-change-detail-panel.is-active {
	display: flex;
}

.sub-change-detail-panel h3 {
	font-family: 'Poppins', sans-serif;
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 4px;
	text-align: center;
	color: var(--main-title-color);
}

.sub-trial-note {
	margin: 0 0 16px;
	text-align: center;
	color: var(--text-grey);
	font-size: 12.5px;
}

.sub-detail-features {
	display: grid;
	gap: 0;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.sub-detail-features li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--main-title-color);
	font-size: 14px;
	font-weight: 450;
	padding: 11px 2px;
	min-height: 48px;
	border-bottom: 1px solid var(--main-border-color);
}

.sub-detail-features li:last-child {
	border-bottom: none;
}

.sub-feature-check {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 1.5px solid var(--plan-accent);
	color: var(--plan-accent);
	font-size: 11px;
	font-weight: 800;
}

/* Animated flame badge on the two most attention-grabbing Premium features (see the isHotFeature
   check in subscription.tpl) - ported from the design's .change-plan-feature-fire. */
.sub-feature-fire {
	display: inline-flex;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	margin-left: -8px;
}

.sub-feature-fire lottie-player {
	width: 100%;
	height: 100%;
	display: block;
}

/* "Vse iz paketa X" bundle row + "+" separator, standing in for everything already covered by the
   tier below (see the ownFeatures-only loop in subscription.tpl) instead of listing every feature
   flat. The bundle row is a link (selects that tier in the list on the left, see
   [data-select-plan-link] in subscription-plans.js). */
.sub-feature-bundle-link {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.sub-feature-bundle-link:hover {
	text-decoration: underline;
	color: var(--plan-accent);
}

/* the bundle row ("Vse iz paketa X") always sits directly above the "+" separator - without this its
   own border-bottom would draw a divider line immediately above the "+", which reads as belonging to
   the wrong row. */
.sub-detail-features li.sub-feature-bundle {
	border-bottom: none;
}

.sub-detail-features li.sub-feature-plus {
	justify-content: flex-start;
	padding: 6px 2px;
	border-bottom: none;
	opacity: 0.85;
	min-height: 0;
}

.sub-feature-plus-mark {
	width: 20px;
	flex-shrink: 0;
	text-align: center;
	color: var(--plan-accent);
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
}

.sub-summary-divider {
	height: 1px;
	margin: 0 0 20px;
	background: var(--main-border-color);
}

/* inline annual/monthly toggle - lives once per plan panel (each panel keeps its own selected
   period independently, since only one panel is ever visible at a time) instead of the separate
   "pick a period" modal step this used to open. */
.sub-billing-toggle {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px;
	margin: 0 0 18px;
	border-radius: 14px;
	padding: 4px;
	background: var(--body-background);
	box-shadow: inset 0 0 0 1px var(--main-border-color);
}

.sub-billing-toggle button {
	display: flex;
	flex-direction: column;
	align-items: center;
	border: none;
	border-radius: 11px;
	padding: 9px 6px;
	background: transparent;
	color: var(--text-grey);
	font-size: 14px;
	font-weight: 650;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.sub-billing-toggle button.active {
	background: color-mix(in srgb, var(--plan-accent), var(--box-background) 74%);
	color: var(--main-title-color);
}

.sub-billing-toggle button small {
	font-size: 10px;
	font-weight: 600;
	opacity: 0.75;
}

.sub-billing-label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.sub-billing-price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: 3px;
	font-size: 18px;
	font-weight: 700;
}

.sub-billing-price .unit {
	font-size: 10px;
	font-weight: 600;
	opacity: 0.7;
}

.sub-save-badge {
	background: var(--sub-danger);
	color: #fff;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.2px;
	padding: 2px 6px;
	border-radius: 999px;
	line-height: 1.3;
}

.sub-summary-price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}

.sub-summary-price b {
	color: var(--main-title-color);
	font-size: 27px;
	font-weight: 700;
}

.sub-summary-price b del {
	margin-right: 5px;
	color: var(--text-grey);
	font-size: 15px;
	font-weight: 600;
	text-decoration: line-through;
}

.sub-summary-price span {
	color: var(--text-grey);
	font-size: 12.5px;
}

.sub-summary-price-note {
	margin: 2px 0 18px;
	color: var(--text-grey);
	font-size: 11.5px;
	text-align: center;
}

.sub-summary-price-note del {
	margin-right: 6px;
	text-decoration: line-through;
}

.sub-change-checkout {
	margin-top: auto;
}

.sub-confirm-cta {
	display: block;
	width: 100%;
	min-height: 48px;
	line-height: 48px;
	text-align: center;
	border-radius: 14px;
	font-size: 14px;
	font-weight: 700;
	background: var(--plan-accent);
	color: #000;
}

.sub-confirm-cta:hover {
	filter: brightness(1.08);
	color: #000 !important;
}

.sub-confirm-cta.ghost {
	background: color-mix(in srgb, var(--plan-accent), transparent 82%);
	border: 1px solid var(--main-border-color);
	color: #000;
	cursor: default;
	pointer-events: none;
}

.sub-change-note {
	text-align: center;
	font-size: 11.5px;
	color: var(--text-grey);
	margin-top: 12px;
}

/* "Koda za popust" (Stripe promotion code) - colored by the current plan's accent (--plan-accent,
   set on .sub-change-detail-panel), matching the design exactly rather than a fixed site color. */
.sub-promo-code {
	margin: 0 0 18px;
}

.sub-promo-row {
	display: flex;
	gap: 10px;
}

.sub-promo-row input {
	flex: 1;
	min-width: 0;
	padding: 15px 18px;
	border-radius: 16px;
	border: none;
	background: var(--body-background);
	color: var(--main-title-color);
	font-size: 14px;
	outline: none;
	box-shadow: inset 0 0 0 1px var(--main-border-color);
}

.sub-promo-row input::placeholder {
	color: var(--text-grey);
}

.sub-promo-row input:focus {
	box-shadow: inset 0 0 0 1.5px var(--plan-accent);
}

.sub-promo-row input.invalid {
	box-shadow: inset 0 0 0 1.5px var(--sub-danger);
}

.sub-promo-apply {
	flex-shrink: 0;
	border: none;
	border-radius: 16px;
	padding: 0 26px;
	background: var(--plan-accent);
	color: #000;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}

.sub-promo-apply:hover {
	filter: brightness(1.08);
}

.sub-promo-apply:disabled {
	opacity: 0.6;
	cursor: default;
}

.sub-promo-applied {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--plan-accent), var(--box-background) 82%);
	border: 1px solid color-mix(in srgb, var(--plan-accent), transparent 40%);
	color: var(--main-title-color);
	font-size: 13px;
	font-weight: 600;
}

.sub-promo-applied i {
	color: var(--plan-accent);
}

.sub-promo-applied button {
	margin-left: auto;
	background: none;
	border: none;
	color: var(--text-grey);
	cursor: pointer;
	display: flex;
}

.sub-promo-applied button:hover {
	color: var(--main-title-color);
}

/* CANCEL SUBSCRIPTION */
/* CANCEL SUBSCRIPTION - a popup sheet (.sub-cancel-modal-backdrop, opened via
   data-cancel-modal-open/close in subscription-plans.js), not its own full-page view. Single
   narrow centered card - icon, title/copy, "what you lose" list, then keep/confirm buttons
   stacked in that order - matching the design reference's CancelSubscriptionScreen /
   #cancel-subscription-sheet-overlay, same shape as .sub-modal below (the billing/proration
   popup) rather than the old wide two-column layout with a vertical divider. */
.sub-cancel-modal-backdrop .sub-cancel-card {
	position: relative;
	width: calc(100% - 40px);
	max-width: 480px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	margin: 0 auto;
	padding: 44px 40px 38px;
	background: var(--box-background);
	border: 1px solid var(--main-border-color);
	border-radius: 20px;
	text-align: left;
}

.sub-cancel-card.free { --plan-accent: var(--sub-accent-free); }
.sub-cancel-card.supporter { --plan-accent: var(--sub-accent-supporter); }
.sub-cancel-card.premium { --plan-accent: var(--sub-accent-premium); }

.sub-cancel-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--body-background);
	border: 1px solid var(--main-border-color);
	color: var(--main-title-color);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.18s ease;
}

.sub-cancel-close:hover {
	background: var(--box-hover-background, var(--body-background));
}

.sub-cancel-icon {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	background: color-mix(in srgb, var(--plan-accent), transparent 88%);
	color: var(--plan-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	overflow: hidden;
	margin-bottom: 22px;
}

.sub-cancel-card h1 {
	font-family: 'Poppins', sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: var(--main-title-color);
	margin: 0 0 18px;
}

.sub-cancel-card > p {
	font-size: 13.5px;
	color: var(--text-grey);
	line-height: 1.4;
	margin: 0 0 4px;
	
}

.lottie-cancel{
	width: 100%;
    height: 100%;
}

.sub-cancel-date {
	font-size: 22px;
	font-weight: 700;
	color: var(--main-title-color);
	margin: 2px 0 14px;
	display: block;
}

.sub-cancel-notice {
	font-size: 14px !important;
	margin-bottom: 30px !important;
}

.sub-cancel-divider {
	height: 1px;
	background: var(--main-border-color);
	margin: 26px 0;
}

.sub-cancel-losses h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--main-title-color);
	margin: 0 0 20px;
}

.sub-lost-features {
	display: grid;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
	margin-bottom: 30px;
}

.sub-lost-features li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: var(--text-grey);
}

.sub-lost-features li i {
	width: 20px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sub-danger);
	font-size: 13px;
}

.sub-cancel-actions {
	display: flex;
	gap: 14px;
}

.sub-btn-keep,
.sub-btn-confirm-cancel {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 12px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
}

.sub-btn-keep {
	border: 1.5px solid var(--main-border-color);
	background: var(--body-background);
	color: var(--main-title-color);
}

.sub-btn-keep:hover {
	background: var(--box-hover-background, var(--body-background));
}

.sub-btn-confirm-cancel {
	border: 1px solid color-mix(in srgb, var(--sub-danger), transparent 60%);
	background: color-mix(in srgb, var(--sub-danger), transparent 94%);
	color: var(--sub-danger);
}

.sub-btn-confirm-cancel:hover {
	background: color-mix(in srgb, var(--sub-danger), transparent 88%);
	color: var(--sub-danger);
}

/* BILLING PERIOD MODAL */
.sub-modal-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(3px);
	z-index: 1050;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.sub-modal-backdrop.is-open {
	display: flex;
	animation: sub-fade-in 0.2s ease-out;
}

.sub-modal {
	--plan-accent: var(--primary-color);
	width: 100%;
	max-width: 440px;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--box-background);
	border: 1px solid var(--main-border-color);
	border-radius: 20px;
	padding: 36px;
	text-align: center;
}

.sub-modal.free { --plan-accent: var(--sub-accent-free); }
.sub-modal.supporter { --plan-accent: var(--sub-accent-supporter); }
.sub-modal.premium { --plan-accent: var(--sub-accent-premium); }

.sub-modal-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--plan-accent), transparent 88%);
	color: var(--plan-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

.sub-modal h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--main-title-color);
	margin-bottom: 10px;
}

.sub-modal-description {
	font-size: 13.5px;
	color: var(--text-grey);
	line-height: 1.5;
	margin-bottom: 24px;
}

.sub-modal-billing-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.sub-modal-billing-option {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	background: var(--body-background);
	border: 2px solid var(--main-border-color);
	border-radius: 14px;
	padding: 14px 16px;
	text-align: left;
	cursor: pointer;
}

.sub-modal-billing-option.is-selected {
	border-color: var(--plan-accent);
	background: color-mix(in srgb, var(--plan-accent), transparent 93%);
}

.sub-modal-option-radio {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border-radius: 50%;
	border: 2px solid var(--main-border-color);
	position: relative;
}

.sub-modal-billing-option.is-selected .sub-modal-option-radio {
	border-color: var(--plan-accent);
}

.sub-modal-billing-option.is-selected .sub-modal-option-radio::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--plan-accent);
}

.sub-modal-option-text {
	flex: 1;
}

.sub-modal-option-text strong {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--main-title-color);
	margin-bottom: 3px;
}

.sub-modal-option-text small {
	font-size: 11.5px;
	color: var(--text-grey);
}

.sub-modal-option-text .sub-modal-save-badge {
	color: var(--plan-accent);
	font-weight: 700;
}

.sub-modal-option-price {
	text-align: right;
	flex-shrink: 0;
}

.sub-modal-option-price strong {
	display: block;
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--main-title-color);
	line-height: 1;
}

.sub-modal-option-price small {
	font-size: 10.5px;
	color: var(--text-grey);
}

.sub-modal-terms {
	font-size: 11px;
	color: var(--text-grey);
	line-height: 1.5;
	margin-bottom: 22px;
}

.sub-modal-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sub-modal-actions .sub-cta-button {
	background: var(--plan-accent);
}

.sub-modal-back {
	background: transparent;
	border: none;
	color: var(--text-grey);
	font-size: 13px;
	font-weight: 600;
	padding: 8px;
	cursor: pointer;
}

.sub-modal-back:hover {
	color: var(--main-title-color);
}

.sub-modal-step {
	display: none;
}

.sub-modal-step.is-active-step {
	display: block;
}

.sub-modal-confirm-title {
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: var(--main-title-color);
	text-align: center;
	margin-bottom: 18px;
}

/* Two-column "label left, value right" rows for the proration/plan-change confirm popup, matching
   the design reference's .proration-row/.proration-label/.proration-value. */
.sub-confirm-rows {
	margin: 4px 0 20px;
	text-align: left;
}

.sub-confirm-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 2px;
	border-bottom: 1px solid var(--main-border-color);
}

.sub-confirm-row:last-child {
	border-bottom: none;
}

.sub-confirm-row-label {
	color: var(--text-grey);
	font-size: 13.5px;
}

.sub-confirm-row-value {
	color: var(--main-title-color);
	font-weight: 700;
	font-size: 13.5px;
	text-align: right;
}

.sub-confirm-row--highlight .sub-confirm-row-label {
	color: var(--main-title-color);
	font-weight: 700;
}

.sub-confirm-row--highlight .sub-confirm-row-value {
	color: var(--plan-accent);
	font-size: 19px;
	font-weight: 800;
}

.sub-modal-step[data-billing-modal-step="confirm"] .sub-modal-actions {
	margin-top: 24px;
}

.sub-cta-button.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* FEATURE PAYWALL (locked accessories/limitation modals - reuses the .sub-* tokens above so it
   matches the "Nadzor naročnine" page, but sits inside the existing Bootstrap .modal-content
   instead of the custom .sub-modal overlay, so it only borrows the icon/text/button pieces). */
.feature-paywall-body {
	text-align: center;
	padding: 4px 4px 20px;
}

.feature-paywall-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--plan-accent, var(--primary-color)), transparent 88%);
	color: var(--plan-accent, var(--primary-color));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

/* Hero icon is now the same padlock SVG as the lock badges (see lock-badge.tpl) instead of a
   Font Awesome gem, sized down to fit the 56px circle above. */
.feature-paywall-icon svg {
	width: 26px;
	height: 26px;
}

.feature-paywall-body h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--main-title-color);
	margin-bottom: 10px;
}

.feature-paywall-body p {
	font-size: 13.5px;
	color: var(--text-grey);
	line-height: 1.5;
	margin-bottom: 24px;
}

/* PAYWALL PLAN ROWS - shown inside .feature-paywall-body when a locked feature is unlocked by one
   or two specific paid tiers (see paywall-sheet.tpl). Mirrors the design's .change-plan-row, using
   this site's real (light/dark-aware) tokens instead of the design's hardcoded dark palette - see
   the token mapping notes in subscription-plans.css's top-of-file plan comment. */
.paywall-plan-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 4px;
	text-align: left;
}

.paywall-plan-row {
	position: relative;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	width: 100%;
	border: 1.5px solid var(--main-border-color);
	border-radius: 16px;
	padding: 14px 16px;
	background: var(--box-background);
	color: var(--main-title-color);
	text-decoration: none;
	cursor: pointer;
	transition: border-color .15s ease, background .2s ease;
}

.paywall-plan-row:hover {
	border-color: color-mix(in srgb, var(--plan-accent), transparent 45%);
}

/* Subscription is billed through the App Store/Google Play, not Stripe - the row still shows
   its plan info/price (see paywall-sheet.tpl), it just isn't a link into checkout anymore. */
.paywall-plan-row.is-locked {
	cursor: default;
	pointer-events: none;
}

.paywall-plan-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--plan-accent), var(--body-background) 88%);
	border: 2px solid color-mix(in srgb, var(--plan-accent), transparent 25%);
	color: var(--plan-accent);
	font-size: 18px;
}

.paywall-plan-title-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.paywall-plan-title-row strong {
	color: var(--main-title-color);
	font-size: 15.5px;
	font-weight: 700;
}

.paywall-plan-title-row em {
	font-style: normal;
	background: var(--body-background);
	color: var(--text-grey);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 7px;
}

.paywall-plan-row.premium .paywall-plan-title-row em.paywall-save-badge {
	background: rgba(241, 195, 79, .15);
	color: #f1c34f;
}

.paywall-plan-desc {
	display: block;
	margin-top: 4px;
	color: var(--text-grey);
	font-size: 12.5px;
}

.paywall-plan-price {
	display: block;
	margin-top: 8px;
}

.paywall-plan-price-annual {
	display: block;
	color: var(--plan-accent);
	font-size: 15.5px;
	font-weight: 800;
}

.paywall-plan-price-monthly {
	display: block;
	margin-top: 2px;
	color: var(--main-title-color);
	font-size: 11.5px;
	font-weight: 700;
}

.paywall-plan-price-alt {
	display: block;
	margin-top: 2px;
	color: var(--text-grey);
	font-size: 10.5px;
}

.paywall-plan-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 36px;
	margin-top: 10px;
	border-radius: 12px;
	background: var(--plan-accent);
	color: #06231d;
	font-size: 12.5px;
	font-weight: 700;
}

/* Small lock badge pinned to the corner of a feature's icon - shared across the nav dropdown
   (main_white.css .tool-tile-lock, deliberately dark-only there, see that rule's comment),
   accessories tiles and any other icon (see lock-badge.tpl). */
.tool-icon {
	position: relative;
}

.feature-lock-corner {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--box-background);
	border: 2px solid var(--box-background);
	color: var(--text-grey);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	box-sizing: border-box;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.feature-lock-corner svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Small inline lock badge next to a text label (account menu items, tab labels, toggle labels -
   see lock-badge.tpl variant="inline"). */
.feature-lock {
	display: inline-flex !important;
	position: relative !important;
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	color: var(--text-grey) !important;
	background: none !important;
	margin-left: 6px;
	vertical-align: middle;
}

.feature-lock svg {
	width: 100%;
	height: 100%;
	display: block;
}

.acc-row-lbl .feature-lock{
	width:25px !important;
	height:25px !important;
}

/* Locked "Vzorci brenkanja" tab panel (ChordsStrummingTabs in ChordDisplay/index.jsx) - was
   completely unstyled plain text before this redesign. */
.strumming-locked {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
	padding: 32px 20px;
	color: var(--text-grey);
	font-size: 13.5px;
}

.strumming-locked-icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--sub-accent-premium), transparent 88%);
	color: var(--sub-accent-premium);
}

.strumming-locked-icon svg {
	width: 22px;
	height: 22px;
}

.strumming-locked .paywall-plan-cta {
	width: auto;
	padding: 0 20px;
	margin-top: 0;
	--plan-accent: var(--sub-accent-premium);
}

/* POST-PURCHASE CELEBRATION - full-screen takeover, ported from the design's .unlock-* (see
   C:\Users\Korisnik\Desktop\Subscription\index.html, celebratePackageUnlock/.unlock-overlay).
   Two adaptations from the design: (1) it hardcodes a near-black background with a separate
   html[data-theme="light"] override; this site's theme system is already exposed as CSS vars
   everywhere else on this page, so the backdrop uses var(--body-background) + a themed glow
   instead of replicating the design's own two-value override. (2) its particle glyphs mix
   Bootstrap Icons (a font this site doesn't load) with emoji - swapped for this site's existing
   Font Awesome set (see UNLOCK_PARTICLE_GLYPHS in subscription-plans.js). */
.unlock-overlay {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 24px 48px;
	text-align: center;
	background: var(--body-background);
	background-image: radial-gradient(ellipse 60% 42% at 50% 60%, color-mix(in srgb, var(--sub-accent-premium), transparent 78%), transparent 70%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.unlock-overlay.show {
	opacity: 1;
	pointer-events: auto;
}

.unlock-overlay.tone-gold {
	background-image: radial-gradient(ellipse 60% 42% at 50% 60%, color-mix(in srgb, var(--sub-accent-supporter), transparent 76%), transparent 70%);
}

.unlock-close {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 5;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--box-background);
	border: 1px solid var(--main-border-color);
	color: var(--main-title-color);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.18s ease;
}

.unlock-close:hover {
	background: var(--box-hover-background, var(--body-background));
}

.unlock-stage {
	position: relative;
	width: 260px;
	height: 260px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ~3s staged sequence: flash/ring burst (0-1s) -> particles fly out (from ~0.48s, see
   UNLOCK_PARTICLE_BASE_DELAY in subscription-plans.js) -> the lottie badge bounces in (1.1s) ->
   title/subtitle/divider/CTA fade up last (2.3s). .unlock-glow pulses ambiently throughout. */
.unlock-glow {
	position: absolute;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--sub-accent-premium), transparent 45%), transparent 72%);
	filter: blur(6px);
	animation: unlockGlowPulse 2.2s ease-in-out infinite;
}

.unlock-overlay.tone-gold .unlock-glow {
	background: radial-gradient(circle, color-mix(in srgb, var(--sub-accent-supporter), transparent 45%), transparent 72%);
}

@keyframes unlockGlowPulse {
	0%, 100% { transform: scale(0.9); opacity: 0.7; }
	50% { transform: scale(1.15); opacity: 1; }
}

.unlock-flash {
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	z-index: 1;
	pointer-events: none;
	background: radial-gradient(circle, #fff 0%, var(--sub-accent-premium) 32%, transparent 70%);
	opacity: 0;
	transform: scale(0.12);
	animation: unlockFlashBurst 0.9s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
}

.unlock-overlay.tone-gold .unlock-flash {
	background: radial-gradient(circle, #fff 0%, var(--sub-accent-supporter) 32%, transparent 70%);
}

@keyframes unlockFlashBurst {
	0% { opacity: 0; transform: scale(0.1); }
	22% { opacity: 1; transform: scale(0.9); }
	45% { opacity: 0.85; transform: scale(1.2); }
	100% { opacity: 0; transform: scale(2); }
}

.unlock-ring {
	position: absolute;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	z-index: 1;
	pointer-events: none;
	border: 2px solid var(--sub-accent-premium);
	opacity: 0;
	transform: scale(0.3);
	animation: unlockRingExpand 1.05s cubic-bezier(0.16, 0.84, 0.44, 1) 0.05s forwards;
}

.unlock-overlay.tone-gold .unlock-ring {
	border-color: var(--sub-accent-supporter);
}

@keyframes unlockRingExpand {
	0% { opacity: 0; transform: scale(0.3); }
	16% { opacity: 0.9; }
	100% { opacity: 0; transform: scale(3.4); }
}

.unlock-diamond-wrap {
	position: relative;
	z-index: 2;
	width: 150px;
	height: 150px;
	opacity: 0;
	animation: unlockBounceIn 0.9s cubic-bezier(0.2, 0.85, 0.32, 1.2) 1.1s forwards;
}

.unlock-diamond-wrap .unlock-lottie-diamond,
.unlock-diamond-wrap .unlock-lottie-heart {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: none;
	align-items: center;
	justify-content: center;
}

.unlock-diamond-wrap .unlock-lottie-diamond { transform: scale(1.6); }
.unlock-diamond-wrap .unlock-lottie-heart { transform: scale(0.82); }
.unlock-diamond-wrap .unlock-lottie-diamond.show,
.unlock-diamond-wrap .unlock-lottie-heart.show {
	display: flex;
}
.unlock-diamond-wrap .unlock-lottie-diamond svg,
.unlock-diamond-wrap .unlock-lottie-heart svg {
	width: 100% !important;
	height: 100% !important;
}

@keyframes unlockBounceIn {
	0% { opacity: 0; transform: scale(0.35); }
	55% { opacity: 1; transform: scale(1.1); }
	75% { transform: scale(0.95); }
	100% { opacity: 1; transform: scale(1); }
}

.unlock-particles {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	z-index: 1;
}

.unlock-particle {
	position: absolute;
	top: 0;
	left: 0;
	font-size: var(--size, 18px);
	line-height: 1;
	opacity: 0;
	animation: unlockParticleBurst var(--dur, 1100ms) var(--delay, 0ms) cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
}

@keyframes unlockParticleBurst {
	0% { transform: translate(-50%, -50%) translate(0, 0) scale(0.3) rotate(0deg); opacity: 0; }
	18% { opacity: 1; }
	100% { transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1) rotate(var(--rot)); opacity: 0; }
}

.unlock-textbox {
	opacity: 0;
	max-width: 360px;
	animation: unlockTextIn 0.6s ease-out 2.3s forwards;
}

@keyframes unlockTextIn {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

.unlock-textbox h2 {
	font-family: 'Poppins', sans-serif;
	color: var(--main-title-color);
	font-size: 26px;
	font-weight: 800;
	margin-bottom: 10px;
}

.unlock-textbox .sub {
	color: var(--text-grey);
	font-size: 14.5px;
	line-height: 1.5;
	margin-bottom: 18px;
}

.unlock-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
}

.unlock-divider span {
	flex: 1;
	height: 1px;
	background: #ffffff24;
}

.unlock-divider i {
	color: var(--sub-accent-premium);
	font-size: 13px;
}

.unlock-overlay.tone-gold .unlock-divider i {
	color: var(--sub-accent-supporter);
}

.unlock-cta {
	width: 100%;
	padding: 15px 0;
	border-radius: 999px;
	border: none;
	background: var(--sub-accent-premium);
	color: #06231d;
	font-size: 15.5px;
	font-weight: 800;
	cursor: pointer;
	transition: filter 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.unlock-cta:hover {
	filter: brightness(1.06);
}

.unlock-overlay.tone-gold .unlock-cta {
	background: var(--sub-accent-supporter);
	color: #241a06;
}

.unlock-thanks {
	color: var(--text-grey);
	font-size: 12.5px;
	margin-top: 16px;
}

@media (max-width: 480px) {
	.unlock-stage { width: 210px; height: 210px; }
	.unlock-diamond-wrap { width: 120px; height: 120px; }
	.unlock-ring { width: 55px; height: 55px; }
	.unlock-textbox h2 { font-size: 22px; }
}

/* COMPARE PLANS - desktop table + a mobile-only swipe carousel (see .compare-plan-card/
   .compare-plans-grid-mobile further below). */
.compare-table-wrap {
	overflow-x: auto;
	margin-bottom: 8px;
}

.compare-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--box-background);
	border: 1px solid var(--main-border-color);
	border-radius: 20px;
	overflow: hidden;
}

.compare-table th,
.compare-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--main-border-color);
	text-align: center;
}

.compare-table thead th {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--main-title-color);
	background: var(--body-background);
	padding: 20px 18px;
}

.compare-table thead th.free { --plan-accent: var(--sub-accent-free); }
.compare-table thead th.supporter { --plan-accent: var(--sub-accent-supporter); }
.compare-table thead th.premium { --plan-accent: var(--sub-accent-premium); }

/* Icon circle + colored pill above each tier's name in the compare table header - ported from the
   design's .compare-table-tier-icon/.compare-table-pill, same color-mix formula already used for
   .sub-status-icon/.sub-option-icon elsewhere on this page. */
.compare-table-tier-icon {
	width: 38px;
	height: 38px;
	margin: 0 auto 10px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: color-mix(in srgb, var(--plan-accent), var(--body-background) 88%);
	border: 1.5px solid color-mix(in srgb, var(--plan-accent), transparent 25%);
}

.compare-table-tier-icon lottie-player {
	width: 60%;
	height: 60%;
}

.compare-table-pill {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	border-radius: 8px;
	padding: 0 12px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--plan-accent);
	background: color-mix(in srgb, var(--plan-accent), transparent 83%);
}

.compare-table-pill-neutral {
	color: var(--text-grey);
	background: var(--body-background);
}

.compare-table-feature-head,
.compare-table-feature {
	text-align: left;
	font-size: 13.5px;
	color: var(--main-title-color);
	white-space: nowrap;
}

.compare-table tbody tr:last-child td {
	border-bottom: none;
}

.compare-table-check {
	display: inline-flex;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	background: color-mix(in srgb, var(--plan-accent), transparent 85%);
	color: var(--plan-accent);
}

.compare-table-check.free { --plan-accent: var(--sub-accent-free); }
.compare-table-check.supporter { --plan-accent: var(--sub-accent-supporter); }
.compare-table-check.premium { --plan-accent: var(--sub-accent-premium); }

.compare-table-cross {
	color: var(--text-grey);
	opacity: 0.5;
	font-size: 11px;
}

/* Highlights the user's current-tier column across the whole table (header + every row) - the
   table is always feature-name column first, then free/supporter/premium in that order (matches
   how $plans is built in MyAccount::buildSubscriptionPlans()), so the tier columns are always
   2nd/3rd/4th - ported from the design's .compare-table.current-* nth-child rules. */
.compare-table.current-free td:nth-child(2), .compare-table.current-free th:nth-child(2) { background: color-mix(in srgb, var(--sub-accent-free), var(--body-background) 92%); }
.compare-table.current-supporter td:nth-child(3), .compare-table.current-supporter th:nth-child(3) { background: color-mix(in srgb, var(--sub-accent-supporter), var(--body-background) 92%); }
.compare-table.current-premium td:nth-child(4), .compare-table.current-premium th:nth-child(4) { background: color-mix(in srgb, var(--sub-accent-premium), var(--body-background) 92%); }

/* Per-column "buy this plan" row at the bottom of the table - reuses the same .sub-cta-button the
   landing cards and mobile compare fallback already use. */
.compare-table tfoot td.free { --plan-accent: var(--sub-accent-free); }
.compare-table tfoot td.supporter { --plan-accent: var(--sub-accent-supporter); }
.compare-table tfoot td.premium { --plan-accent: var(--sub-accent-premium); }

.compare-table tfoot td {
	border-bottom: none;
	border-top: 1px solid var(--main-border-color);
	padding: 18px 18px 20px;
}

/* Mobile compare card - one plan's full feature list in a swipeable card, ported from the design
   reference's .compare-plan-card/comparePlansCardHTML (see .compare-plans-grid-mobile below for the
   swipe carousel it lives in). Reuses .sub-option-icon/.sub-detail-features/.sub-cta-button rather
   than introducing parallel icon/feature-list/button styles. */
.compare-plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1.5px solid var(--main-border-color);
	border-radius: 20px;
	padding: 30px 24px 24px;
	background: var(--box-background);
	text-align: center;
}

.compare-plan-card.free { --plan-accent: var(--sub-accent-free); }
.compare-plan-card.supporter { --plan-accent: var(--sub-accent-supporter); }
.compare-plan-card.premium { --plan-accent: var(--sub-accent-premium); }

.compare-plan-card.is-current {
	border-color: var(--plan-accent);
}

.compare-plan-popular-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	font-style: normal;
	background: var(--plan-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 999px;
	white-space: nowrap;
}

.compare-plan-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--main-border-color);
}

.compare-plan-head .sub-option-icon {
	margin-bottom: 6px;
}

.compare-plan-head h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 19px;
	font-weight: 800;
	margin: 0;
	color: var(--main-title-color);
}

.compare-plan-desc {
	color: var(--text-grey);
	font-size: 12.5px;
	margin: 0;
}

.compare-plan-card .sub-detail-features {
	text-align: left;
	flex: 1;
	/* .sub-detail-features is a CSS grid (see the shared rule above) - without this, a card whose
	   flex-grown ul has leftover height (any tier with noticeably fewer features than the tallest
	   card in the row, e.g. Brezplačno next to Premium) stretches its auto-sized row tracks to fill
	   that space instead of leaving it blank below the last row, ballooning every <li> (bundle "+"
	   row included) to an equal share of the leftover height. */
	align-content: start;
}

/* Horizontal swipeable "one card at a time" carousel - only shown under 1200px (see @media below),
   the table (.compare-table-wrap) handles wide screens. A card is deliberately narrower than the
   full width (82%, not 100%) so the next card's edge always peeks in from the right, signaling that
   the row scrolls - and a clone of the last/first card is appended on each end (see
   compare-plan-card.tpl includes in subscription.tpl) so the swipe loops around instead of dead-
   ending, matching the design reference 1:1. */
.compare-plans-grid-mobile {
	display: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
	.sub-plans-grid {
		grid-template-columns: 1fr;
	}

	.sub-status-layout,
	.sub-change-layout {
		grid-template-columns: 1fr;
	}

	/* Once the columns stack, the icon moves to a small badge in the card's top-right corner
	   instead of floating vertically centered against a now much-shorter card - matches the
	   design's narrow-screen .status-orb/.status-hero rules. */
	.sub-status-main {
		padding-right: 54px;
	}

	.sub-status-icon {
		top: 14px;
		right: 14px;
		bottom: auto;
		transform: none;
		width: 52px;
		height: 52px;
		font-size: 22px;
	}

	.sub-status-hero h2 {
		font-size: 26px;
	}
}

/* Compare view breaks to the mobile carousel at 1200px, not the 992px every other section on this
   page uses - ported straight from the design reference, where the dense multi-column table stops
   being readable well before the rest of the page needs to stack. */
@media (max-width: 1200px) {
	.compare-table-wrap {
		display: none;
	}

	.compare-plans-grid-mobile {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 14px;
		/* -15px cancels Bootstrap's .container gutter (15px, confirmed via computed style - .row's
		   -15px margin and .col-12's 15px padding already cancel each other out, so that 15px is the
		   only net inset .sub-shell inherits) so the carousel bleeds to the screen edge like the
		   design reference instead of sitting inset inside the page's normal content padding; the 4px
		   padding then matches the design's own small edge margin so cards don't touch the glass. */
		margin: 16px -15px 0;
		padding: 16px 4px 6px;
		-webkit-overflow-scrolling: touch;
		cursor: grab;
		scrollbar-width: thin;
		scrollbar-color: var(--main-border-color) transparent;
	}

	.compare-plans-grid-mobile::-webkit-scrollbar {
		height: 6px;
	}

	.compare-plans-grid-mobile::-webkit-scrollbar-thumb {
		background: var(--main-border-color);
		border-radius: 10px;
	}

	.compare-plans-grid-mobile::-webkit-scrollbar-track {
		background: transparent;
	}

	.compare-plans-grid-mobile.dragging {
		cursor: grabbing;
		scroll-snap-type: none;
		user-select: none;
	}

	.compare-plan-card {
		flex: 0 0 82%;
		scroll-snap-align: center;
	}
}
