:root {
	--ssm-primary: #4f46e5;
	--ssm-secondary: #0ea5e9;
	--ssm-text: #0f172a;
	--ssm-muted: #64748b;
	--ssm-bg: #ffffff;
	--ssm-surface: #f8fafc;
	--ssm-border: #e2e8f0;
	--ssm-success: #16a34a;
	--ssm-danger: #dc2626;
	--ssm-radius: 16px;
	--ssm-radius-sm: 10px;
	--ssm-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
}

.ssm-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}
.ssm-total-label { display: inline-flex; align-items: baseline; gap: 6px; }
.ssm-total-qty-hint { font-size: 13px; color: var(--ssm-muted); font-weight: 400; }
.ssm-total-qty { font-weight: 600; color: var(--ssm-text); }
.ssm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}
.ssm-field__optional {
	font-weight: 400;
	font-size: 13px;
	color: var(--ssm-muted);
	margin-left: 4px;
}
.ssm-grid--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Cards */
.ssm-card {
	background: var(--ssm-bg);
	border: 1px solid var(--ssm-border);
	border-radius: var(--ssm-radius);
	padding: 24px;
	box-shadow: var(--ssm-shadow);
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: transform .18s ease, box-shadow .18s ease;
}
.ssm-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,23,42,.10); }
.ssm-card__icon { font-size: 26px; line-height: 1; }
.ssm-card__platform { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ssm-muted); font-weight: 600; }
.ssm-card__title { margin: 0; font-size: 18px; line-height: 1.3; }
.ssm-card__title a { color: var(--ssm-text); text-decoration: none; }
.ssm-card__title a:hover { color: var(--ssm-primary); }
.ssm-card__excerpt { color: var(--ssm-muted); font-size: 14px; margin: 0; flex: 1; }
.ssm-card__meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.ssm-card__price { font-weight: 700; color: var(--ssm-text); }
.ssm-card__min { color: var(--ssm-muted); }

/* Buttons */
.ssm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: var(--ssm-radius-sm);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background .15s ease, opacity .15s ease;
}
.ssm-btn--primary { background: var(--ssm-primary); color: #fff; }
.ssm-btn--primary:hover { background: #4338ca; color: #fff; }
.ssm-btn--block { width: 100%; }
.ssm-btn:focus-visible { outline: 3px solid var(--ssm-secondary); outline-offset: 2px; }

/* ==============================================================
 * SERVICE PAGE LAYOUT
 * --------------------------------------------------------------
 * Mobile-first: single column. DOM order = visual order:
 *   breadcrumbs, hero, sidebar (order form), main, CTA.
 * On desktop the grid pulls the sidebar into a right-hand column.
 * ============================================================== */

.ssm-service-page {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.ssm-service-page > .ssm-breadcrumbs  { grid-column: 1; }
.ssm-service-page > .ssm-service-hero { grid-column: 1; }
.ssm-service-page > .ssm-service-sidebar { grid-column: 1; }
.ssm-service-page > .ssm-service-main     { grid-column: 1; }
.ssm-service-page > .ssm-cta              { grid-column: 1; margin-top: 32px; }

/* Padding lives on the sidebar wrapper only, so nothing else shifts. */
.ssm-service-sidebar {
	padding: 20px 0 8px;
}
.ssm-service-sidebar .ssm-order-card {
	position: static;
}

/* Desktop: two columns. */
@media (min-width: 981px) {
	.ssm-service-page {
		grid-template-columns: minmax(0, 1fr) 380px;
		column-gap: 40px;
	}

	.ssm-service-page > .ssm-breadcrumbs  { grid-column: 1 / -1; }
	.ssm-service-page > .ssm-service-hero { grid-column: 1 / -1; }

	/* Sidebar on the right, main content on the left, both start on the
	   same row (row 3, since breadcrumbs and hero are rows 1–2). */
	.ssm-service-page > .ssm-service-sidebar {
		grid-column: 2;
		grid-row: 3;
		padding: 32px 0 0;
	}
	.ssm-service-page > .ssm-service-main {
		grid-column: 1;
		grid-row: 3;
		padding: 32px 0 0;
	}
	.ssm-service-page > .ssm-cta {
		grid-column: 1 / -1;
		margin-top: 48px;
	}

}

.ssm-service-hero { padding: 24px 0 8px; }
.ssm-service-hero__platform { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--ssm-primary); margin: 0 0 6px; }
.ssm-service-hero__title { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 12px; }
.ssm-service-hero__intro { font-size: 18px; color: var(--ssm-muted); max-width: 720px; margin: 0; }

.ssm-section { margin-bottom: 36px; }
.ssm-section h2 { font-size: 22px; margin: 0 0 14px; }
.ssm-section--notice { background: #fff7ed; border-left: 4px solid #f59e0b; padding: 18px 20px; border-radius: var(--ssm-radius-sm); }

.ssm-steps { counter-reset: ssm; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ssm-steps li { counter-increment: ssm; padding-left: 44px; position: relative; }
.ssm-steps li::before {
	content: counter(ssm);
	position: absolute; left: 0; top: 0;
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--ssm-primary); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 14px;
}

.ssm-benefits { list-style: none; padding: 0; display: grid; gap: 10px; }
.ssm-benefits li { padding-left: 26px; position: relative; }
.ssm-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--ssm-success); font-weight: 700; }

.ssm-info-list { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; margin: 0; }
.ssm-info-list dt { font-weight: 600; color: var(--ssm-muted); }
.ssm-info-list dd { margin: 0; }

/* FAQ */
.ssm-faq__item { border: 1px solid var(--ssm-border); border-radius: var(--ssm-radius-sm); margin-bottom: 10px; background: #fff; }
.ssm-faq__item summary { cursor: pointer; padding: 14px 18px; font-weight: 600; }
.ssm-faq__item[open] summary { border-bottom: 1px solid var(--ssm-border); }
.ssm-faq__item > div { padding: 14px 18px; color: var(--ssm-muted); }

/* Order card */
.ssm-order-card {
	top: 24px;
	background: #fff;
	border: 1px solid var(--ssm-border);
	border-radius: var(--ssm-radius);
	box-shadow: var(--ssm-shadow);
	padding: 24px;
}
@media (max-width: 980px) { .ssm-order-card { position: static; } }

.ssm-order-form__head { margin-bottom: 18px; }
.ssm-order-form__head h3 { margin: 0 0 4px; font-size: 18px; }
.ssm-order-form__rate { color: var(--ssm-muted); font-size: 14px; }

.ssm-field { margin-bottom: 16px; }
.ssm-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ssm-field input[type="text"],
.ssm-field input[type="url"],
.ssm-field input[type="number"],
.ssm-field select,
.ssm-field textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--ssm-border);
	border-radius: var(--ssm-radius-sm);
	font-size: 15px;
	background: #fff;
	color: var(--ssm-text);
	box-sizing: border-box;
}
.ssm-field input:focus, .ssm-field select:focus, .ssm-field textarea:focus {
	outline: none; border-color: var(--ssm-primary); box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.ssm-field__hint { font-size: 12px; color: var(--ssm-muted); margin: 6px 0 0; }

.ssm-qty { display: flex; align-items: stretch; }
.ssm-qty__btn {
	width: 44px; border: 1px solid var(--ssm-border); background: var(--ssm-surface);
	font-size: 18px; cursor: pointer; color: var(--ssm-text) !important;
}
.ssm-qty__btn:first-child { border-radius: var(--ssm-radius-sm) 0 0 var(--ssm-radius-sm); }
.ssm-qty__btn:last-child { border-radius: 0 var(--ssm-radius-sm) var(--ssm-radius-sm) 0; }
.ssm-qty__input { border-radius: 0 !important; text-align: center; border-left: 0 !important; border-right: 0 !important; }

.ssm-order-form__total {
	display: flex; justify-content: space-between; align-items: center;
	padding: 14px 0; border-top: 1px solid var(--ssm-border); margin-top: 8px; font-size: 16px;
}
.ssm-order-form__total strong { font-size: 22px; }

.ssm-order-form__error { color: var(--ssm-danger); font-size: 14px; margin: 8px 0; min-height: 1em; }
.ssm-error { color: var(--ssm-danger); }

/* Breadcrumbs */
.ssm-breadcrumbs { font-size: 14px; color: var(--ssm-muted); padding: 18px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.ssm-breadcrumbs a { color: var(--ssm-muted); text-decoration: none; }
.ssm-breadcrumbs a:hover { color: var(--ssm-primary); }

/* Platform grid */
.ssm-platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.ssm-platform-card {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	padding: 22px 12px; border: 1px solid var(--ssm-border); border-radius: var(--ssm-radius);
	text-decoration: none; color: var(--ssm-text); background: #fff; transition: border-color .15s ease;
}
.ssm-platform-card:hover { border-color: var(--ssm-primary); }
.ssm-platform-card__icon { font-size: 26px; }
.ssm-platform-card__name { font-weight: 600; font-size: 14px; text-align: center; }

/* CTA */
.ssm-cta {
	background: linear-gradient(135deg, var(--ssm-primary), var(--ssm-secondary));
	color: #fff; border-radius: var(--ssm-radius); padding: 48px 32px; text-align: center; margin-bottom: 64px;
}
.ssm-cta h2 { color: #fff; margin: 0 0 10px; font-size: 28px; }
.ssm-cta p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 22px; }
.ssm-cta .ssm-btn--primary { background: #fff; color: var(--ssm-primary); }

/* Search */
.ssm-search { position: relative; max-width: 620px; }
.ssm-search__input { width: 100%; padding: 14px 18px; border-radius: var(--ssm-radius-sm); border: 1px solid var(--ssm-border); font-size: 16px; }
.ssm-search__results {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px);
	background: #fff; border: 1px solid var(--ssm-border); border-radius: var(--ssm-radius-sm);
	box-shadow: var(--ssm-shadow); list-style: none; margin: 0; padding: 6px; z-index: 50; max-height: 340px; overflow-y: auto;
}
.ssm-search__results a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; text-decoration: none; color: var(--ssm-text); border-radius: 8px; }
.ssm-search__results a:hover { background: var(--ssm-surface); }

/* Cart display */
.ssm-cart-qty { font-weight: 600; }

@media (max-width: 600px) {
	.ssm-card { padding: 18px; }
	.ssm-info-list { grid-template-columns: 1fr; gap: 4px; }
	.ssm-info-list dt { margin-top: 10px; }
}
/* ==============================================================
 * Sidebar related services + responsive visibility helpers
 * ============================================================== */

.ssm-sidebar-section {
	margin-top: 20px;
	background: #fff;
	border: 1px solid var(--ssm-border);
	border-radius: var(--ssm-radius);
	box-shadow: var(--ssm-shadow);
	padding: 20px;
}

.ssm-sidebar-section h3 {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--ssm-muted);
}

.ssm-related-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 2px;
}

.ssm-related-list li { margin: 0; }

.ssm-related-list a {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 6px 10px;
	padding: 10px 8px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--ssm-text);
	font-size: 14px;
	line-height: 1.35;
	transition: background .15s ease;
}

.ssm-related-list a:hover,
.ssm-related-list a:focus-visible {
	background: var(--ssm-surface);
	color: var(--ssm-primary);
	outline: none;
}

.ssm-related-list__name {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ssm-related-list__price {
	grid-column: 1 / -1;
	font-size: 12px;
	font-weight: 500;
	color: var(--ssm-muted);
}

.ssm-sidebar-section__more {
	display: inline-block;
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ssm-primary);
	text-decoration: none;
}
.ssm-sidebar-section__more:hover { text-decoration: underline; }

/* Responsive visibility ----------------------------------------- */
.ssm-hide-mobile  { display: block; }
.ssm-hide-desktop { display: none;  }

@media (max-width: 980px) {
	.ssm-hide-mobile  { display: none !important; }
	.ssm-hide-desktop { display: block; }
}
/* ==============================================================
 * PLATFORM GRID — brand icons
 * --------------------------------------------------------------
 * The generic clock icon lives on the BASE class, so its specificity
 * is (0,1,0). Every brand rule is `.ssm-platform-card--x .icon`
 * with specificity (0,2,0), so the brand always wins.
 * ============================================================== */

.ssm-platform-card__icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background-color: #eef2ff;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 26px 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	transition: transform .2s ease, background-color .2s ease;

	/* Fallback icon for platforms that have no brand rule yet. */
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>");
}

.ssm-platform-card:hover .ssm-platform-card__icon {
	transform: scale(1.06);
}

/* Custom emoji override — if the admin typed an icon in the term editor. */
.ssm-platform-card__icon--custom {
	background-image: none !important;
	font-size: 26px;
	line-height: 1;
}

/* --- Instagram ------------------------------------------------- */
.ssm-platform-card--instagram .ssm-platform-card__icon {
	background-color: #fce7f3;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23db2777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='5'/><circle cx='12' cy='12' r='4'/><circle cx='17.5' cy='6.5' r='1.2' fill='%23db2777' stroke='none'/></svg>");
}

/* --- Facebook -------------------------------------------------- */
.ssm-platform-card--facebook .ssm-platform-card__icon {
	background-color: #dbeafe;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22 12a10 10 0 1 0-11.56 9.88v-6.99H7.9V12h2.54V9.8c0-2.51 1.49-3.89 3.77-3.89 1.09 0 2.24.19 2.24.19v2.46h-1.26c-1.24 0-1.63.77-1.63 1.56V12h2.78l-.44 2.89h-2.34v6.99A10 10 0 0 0 22 12z' fill='%231d4ed8'/></svg>");
}

/* --- YouTube --------------------------------------------------- */
.ssm-platform-card--youtube .ssm-platform-card__icon {
	background-color: #fee2e2;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M21.58 7.19a2.5 2.5 0 0 0-1.77-1.77C18.25 5 12 5 12 5s-6.25 0-7.81.42A2.5 2.5 0 0 0 2.42 7.19 26.2 26.2 0 0 0 2 12a26.2 26.2 0 0 0 .42 4.81 2.5 2.5 0 0 0 1.77 1.77C5.75 19 12 19 12 19s6.25 0 7.81-.42a2.5 2.5 0 0 0 1.77-1.77A26.2 26.2 0 0 0 22 12a26.2 26.2 0 0 0-.42-4.81z' fill='%23dc2626'/><polygon points='10,15 15,12 10,9' fill='white'/></svg>");
}

/* --- TikTok ---------------------------------------------------- */
.ssm-platform-card--tiktok .ssm-platform-card__icon {
	background-color: #f1f5f9;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f172a'><path d='M20.5 7.5a5.5 5.5 0 0 1-3.5-1.26v7.51a5.75 5.75 0 1 1-5.75-5.75c.3 0 .6.02.88.07v3.02a2.75 2.75 0 1 0 1.87 2.6V2h3a5.5 5.5 0 0 0 3.5 5.5v3z'/></svg>");
	background-size: 22px 22px;
}

/* --- Twitter / X ----------------------------------------------- */
.ssm-platform-card--twitter .ssm-platform-card__icon {
	background-color: #f1f5f9;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18.9 2H22l-6.9 7.9L23.2 22h-6.3l-4.9-6.4L6.4 22H3.2l7.3-8.3L1.2 2h6.4l4.4 5.9L18.9 2zm-1.1 18h1.7L7.3 3.8H5.5L17.8 20z' fill='%230f172a'/></svg>");
	background-size: 22px 22px;
}

/* --- Spotify --------------------------------------------------- */
.ssm-platform-card--spotify .ssm-platform-card__icon {
	background-color: #dcfce7;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='%2316a34a'/><path d='M7.2 9.5c3-.7 6.3-.35 8.7 1.05M7.6 12.4c2.5-.55 5.2-.25 7.2.9M8 15.2c2-.4 4.2-.15 5.8.75' stroke='white' stroke-width='1.6' stroke-linecap='round' fill='none'/></svg>");
	background-size: 26px 26px;
}

/* --- Telegram -------------------------------------------------- */
.ssm-platform-card--telegram .ssm-platform-card__icon {
	background-color: #dbeafe;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='%232563eb'/><path d='M6.8 12.3l9.2-3.7c.5-.2 1 .1.8.7l-1.5 7.2c-.1.6-.6.7-1 .4l-2.5-1.8-1.2 1.1c-.2.2-.5.2-.6-.1l-.4-2.3-2.8-.9c-.5-.2-.5-.5 0-.6z' fill='white'/></svg>");
}

/* --- LinkedIn -------------------------------------------------- */
.ssm-platform-card--linkedin .ssm-platform-card__icon {
	background-color: #dbeafe;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='2.5' y='2.5' width='19' height='19' rx='3' fill='%230a66c2'/><rect x='5.6' y='9.7' width='2.7' height='8.4' fill='white'/><circle cx='6.95' cy='7' r='1.55' fill='white'/><path d='M11 9.7h2.55v1.15h.04c.36-.65 1.22-1.35 2.5-1.35 2.68 0 3.17 1.76 3.17 4.05v4.55h-2.65v-4.03c0-.96-.02-2.2-1.34-2.2-1.34 0-1.55 1.04-1.55 2.12v4.11H11z' fill='white'/></svg>");
}

/* --- Twitch ---------------------------------------------------- */
.ssm-platform-card--twitch .ssm-platform-card__icon {
	background-color: #ede9fe;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3.5 2.5L2 6v13h4v2.5h3.5L12.5 19h4.5L22 14.5v-12z' fill='%238b5cf6'/><path d='M5.5 4.5v10h3.5v3l3-3h4.5l3-3V4.5z' fill='white'/><rect x='10.2' y='7' width='1.6' height='5' fill='%238b5cf6'/><rect x='14.6' y='7' width='1.6' height='5' fill='%238b5cf6'/></svg>");
	background-size: 24px 24px;
}

/* --- Website Traffic ------------------------------------------- */
.ssm-platform-card--website-traffic .ssm-platform-card__icon {
	background-color: #e0f2fe;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9.5'/><path d='M2.5 12h19'/><path d='M12 2.5c2.6 2.7 4 6 4 9.5s-1.4 6.8-4 9.5c-2.6-2.7-4-6-4-9.5s1.4-6.8 4-9.5z'/></svg>");
	background-size: 24px 24px;
}
.ssm-platform-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 24px 14px;
}

.ssm-platform-card__name {
	font-weight: 600;
	font-size: 14px;
	text-align: center;
	line-height: 1.3;
}