:root {
	--ss-bg: #121212;
	--ss-bg-elevated: #1e1e1e;
	--ss-bg-card: #2a2a2a;
	--ss-text: #ffffff;
	--ss-text-muted: rgba(255, 255, 255, 0.72);
	--ss-red: #e53935;
	--ss-red-dark: #c62828;
	--ss-green: #25d366;
	--ss-border: rgba(255, 255, 255, 0.08);
	--ss-radius-sm: 12px;
	--ss-radius-md: 18px;
	--ss-radius-lg: 22px;
	--ss-radius-pill: 999px;
	--ss-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	--ss-nav-height: 72px;
	--ss-max-width: 480px;
}

.ss-app--light {
	--ss-bg: #f5f5f5;
	--ss-bg-elevated: #ffffff;
	--ss-bg-card: #ececec;
	--ss-text: #111111;
	--ss-text-muted: rgba(0, 0, 0, 0.65);
	--ss-border: rgba(0, 0, 0, 0.08);
}

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

html,
body.ss-app {
	margin: 0;
	padding: 0;
	min-height: 100%;
	background: var(--ss-bg);
	color: var(--ss-text);
	font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
	-webkit-font-smoothing: antialiased;
}

body.ss-app {
	overflow-x: hidden;
}

.ss-app-shell {
	max-width: var(--ss-max-width);
	margin: 0 auto;
	min-height: 100vh;
	padding-bottom: calc(var(--ss-nav-height) + 24px);
	background: var(--ss-bg);
	position: relative;
}

/* Header */
.ss-app-header {
	padding: 16px 16px 12px;
	position: sticky;
	top: 0;
	z-index: 20;
	background: linear-gradient(to bottom, var(--ss-bg) 75%, transparent);
}

.ss-app-header__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.ss-app-theme-toggle {
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: var(--ss-bg-elevated);
	color: var(--ss-text);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

.ss-app-theme-toggle:active {
	transform: scale(0.95);
}

.ss-app-theme-toggle__icon--moon {
	display: none;
}

.ss-app--light .ss-app-theme-toggle__icon--sun {
	display: none;
}

.ss-app--light .ss-app-theme-toggle__icon--moon {
	display: block;
}

.ss-app-logo {
	display: inline-flex;
	line-height: 0;
}

/* Search */
.ss-app-search {
	position: relative;
}

.ss-app-search__icon {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	color: var(--ss-text-muted);
	pointer-events: none;
	display: flex;
}

.ss-app-search__input {
	width: 100%;
	height: 52px;
	border: 1px solid var(--ss-border);
	border-radius: var(--ss-radius-pill);
	background: var(--ss-bg-elevated);
	color: var(--ss-text);
	padding: 0 48px 0 18px;
	font: inherit;
	font-size: 15px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ss-app-search__input::placeholder {
	color: var(--ss-text-muted);
}

.ss-app-search__input:focus {
	border-color: rgba(229, 57, 53, 0.5);
	box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

/* Filters */
.ss-app-filters {
	padding: 8px 0 4px;
}

.ss-app-filters__scroll {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 0 16px 8px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.ss-app-filters__scroll::-webkit-scrollbar {
	display: none;
}

.ss-app-filter {
	flex: 0 0 auto;
	border: none;
	border-radius: var(--ss-radius-pill);
	padding: 10px 18px;
	background: var(--ss-bg-elevated);
	color: var(--ss-text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
	white-space: nowrap;
}

.ss-app-filter.is-active {
	background: var(--ss-red);
	color: #fff;
}

.ss-app-filter:active {
	transform: scale(0.97);
}

/* Section header */
.ss-app-main {
	padding: 8px 16px 24px;
}

.ss-app-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.ss-app-section-head__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
}

.ss-app-section-head__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--ss-text-muted);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

/* Package cards */
.ss-app-packages {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ss-app-card {
	border-radius: var(--ss-radius-lg);
	overflow: hidden;
	box-shadow: var(--ss-shadow);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.ss-app-card.is-hidden {
	display: none;
}

.ss-app-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.ss-app-card__media {
	position: relative;
	min-height: 220px;
	background-size: cover;
	background-position: center;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.ss-app-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.88) 0%,
		rgba(0, 0, 0, 0.45) 45%,
		rgba(0, 0, 0, 0.15) 100%
	);
}

.ss-app-card__badge {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.ss-app-card__badge--featured {
	top: 14px;
	right: 14px;
	background: var(--ss-red);
	color: #fff;
	padding: 8px 12px;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

.ss-app-card__badge--points {
	bottom: 88px;
	left: 14px;
	background: rgba(40, 40, 40, 0.75);
	backdrop-filter: blur(6px);
	color: #fff;
	padding: 7px 12px;
	border-radius: var(--ss-radius-pill);
}

.ss-app-card__content {
	position: relative;
	z-index: 2;
	padding: 18px 16px 16px;
	text-align: right;
}

.ss-app-card__title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 800;
	color: #fff;
}

.ss-app-card__desc {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
}

.ss-app-card__price {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	color: var(--ss-red);
}

/* Empty / no results */
.ss-app-empty,
.ss-app-no-results {
	text-align: center;
	padding: 32px 16px;
	color: var(--ss-text-muted);
	font-size: 15px;
}

/* WhatsApp FAB */
.ss-app-fab {
	position: fixed;
	left: 16px;
	bottom: calc(var(--ss-nav-height) + 16px);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ss-green);
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
	z-index: 30;
	text-decoration: none;
	transition: transform 0.2s ease;
}

.ss-app-fab:active {
	transform: scale(0.94);
}

/* Bottom navigation */
.ss-app-bottom-nav {
	position: fixed;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 100%;
	max-width: var(--ss-max-width);
	height: var(--ss-nav-height);
	background: var(--ss-bg-elevated);
	border-top: 1px solid var(--ss-border);
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
	z-index: 40;
}

.ss-app-bottom-nav__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-decoration: none;
	color: var(--ss-text-muted);
	font-size: 11px;
	font-weight: 600;
	transition: color 0.2s ease;
}

.ss-app-bottom-nav__icon {
	display: flex;
	line-height: 0;
}

.ss-app-bottom-nav__item.is-active {
	color: var(--ss-red);
}

.ss-app-bottom-nav__item.is-active .ss-app-bottom-nav__icon svg {
	stroke: var(--ss-red);
}

.ss-app-bottom-nav__item.is-active .ss-app-bottom-nav__icon svg[fill="currentColor"] {
	fill: var(--ss-red);
}

/* Tablet / desktop centering */
@media (min-width: 481px) {
	.ss-app-shell {
		box-shadow: 0 0 0 1px var(--ss-border);
	}

	.ss-app-bottom-nav {
		border-left: 1px solid var(--ss-border);
		border-right: 1px solid var(--ss-border);
		border-radius: 16px 16px 0 0;
	}
}

@media (min-width: 768px) {
	:root {
		--ss-max-width: 420px;
	}

	.ss-app-card__media {
		min-height: 240px;
	}
}

/* Services page header */
.ss-app-page-header {
	margin-bottom: 20px;
}

.ss-app-page-header__title {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
}

.ss-app-page-header__subtitle {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ss-text-muted);
	font-weight: 500;
}

/* Why choose us */
.ss-app-why {
	margin-top: 32px;
	padding-top: 8px;
}

.ss-app-why__title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 800;
}

.ss-app-why__grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ss-app-why-card {
	background: var(--ss-bg-elevated);
	border: 1px solid var(--ss-border);
	border-radius: var(--ss-radius-md);
	padding: 16px;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 14px;
	align-items: start;
}

.ss-app-why-card__icon {
	grid-row: span 2;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(229, 57, 53, 0.12);
	color: var(--ss-red);
	display: grid;
	place-items: center;
}

.ss-app-why-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
}

.ss-app-why-card__desc {
	margin: 0;
	grid-column: 2;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ss-text-muted);
}

/* Booking CTA */
.ss-app-cta {
	margin-top: 24px;
	margin-bottom: 8px;
}

.ss-app-cta__card {
	background: linear-gradient(135deg, rgba(229, 57, 53, 0.18) 0%, var(--ss-bg-elevated) 55%);
	border: 1px solid rgba(229, 57, 53, 0.25);
	border-radius: var(--ss-radius-lg);
	padding: 22px 18px;
	text-align: center;
}

.ss-app-cta__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 800;
}

.ss-app-cta__desc {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ss-text-muted);
}

.ss-app-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border-radius: var(--ss-radius-pill);
	background: var(--ss-red);
	color: #fff !important;
	text-decoration: none;
	font-size: 16px;
	font-weight: 800;
	border: none;
	box-shadow: 0 8px 24px rgba(229, 57, 53, 0.35);
	transition: transform 0.2s ease, background 0.2s ease;
}

.ss-app-cta__button:active {
	transform: scale(0.98);
	background: var(--ss-red-dark);
}

/* Service detail page */
.ss-app-detail__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ss-red);
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 16px;
}

.ss-app-detail__hero {
	position: relative;
	min-height: 240px;
	border-radius: var(--ss-radius-lg);
	overflow: hidden;
	background-size: cover;
	background-position: center;
	margin-bottom: 18px;
}

.ss-app-detail__body {
	padding-bottom: 16px;
}

.ss-app-detail__title {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 800;
}

.ss-app-detail__subtitle {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ss-text-muted);
}

.ss-app-detail__price {
	margin: 0 0 16px;
	font-size: 28px;
	font-weight: 800;
	color: var(--ss-red);
}

.ss-app-detail__content {
	font-size: 15px;
	line-height: 1.7;
	color: var(--ss-text-muted);
	margin-bottom: 20px;
}

.ss-app-detail__content p:first-child {
	margin-top: 0;
}

.ss-app-detail__book {
	width: 100%;
}

/* Bottom sheet (ServiceDetails) */
.ss-app-sheet {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.ss-app-sheet[hidden] {
	display: none;
}

.ss-app-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
}

.ss-app-sheet__panel {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--ss-max-width);
	max-height: 88vh;
	overflow-y: auto;
	background: var(--ss-bg);
	border-radius: var(--ss-radius-lg) var(--ss-radius-lg) 0 0;
	padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
	animation: ss-sheet-up 0.28s ease;
}

@keyframes ss-sheet-up {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
	}
}

.ss-app-sheet__close {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: var(--ss-bg-elevated);
	color: var(--ss-text);
	display: grid;
	place-items: center;
	cursor: pointer;
	z-index: 3;
}

.ss-app-sheet__hero {
	position: relative;
	min-height: 180px;
	border-radius: var(--ss-radius-md);
	overflow: hidden;
	background-size: cover;
	background-position: center;
	margin-bottom: 16px;
}

.ss-app-sheet__title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 800;
	padding-right: 36px;
}

.ss-app-sheet__subtitle {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--ss-text-muted);
	line-height: 1.5;
}

.ss-app-sheet__price {
	margin: 0 0 14px;
	font-size: 24px;
	font-weight: 800;
	color: var(--ss-red);
}

.ss-app-sheet__content {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ss-text-muted);
	margin-bottom: 16px;
}

.ss-app-sheet__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ss-app-sheet__link-full {
	width: 100%;
	text-align: center;
}

body.ss-app-sheet-open {
	overflow: hidden;
}

/* Centered header (More page) */
.ss-app-header--centered .ss-app-header__top {
	display: grid;
	grid-template-columns: 42px 1fr 42px;
	align-items: center;
	gap: 8px;
}

.ss-app-header--centered .ss-app-theme-toggle {
	grid-column: 1;
}

.ss-app-header--centered .ss-app-logo {
	grid-column: 3;
	justify-self: end;
}

.ss-app-header__center {
	grid-column: 2;
	text-align: center;
	min-width: 0;
}

.ss-app-header__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
}

.ss-app-header__subtitle {
	margin: 4px 0 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--ss-text-muted);
	line-height: 1.4;
}

.ss-app-header--centered {
	padding-bottom: 8px;
}

/* More page menu cards */
.ss-app-more {
	padding-top: 4px;
}

.ss-app-more__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ss-app-more__list--secondary {
	margin-top: 0;
}

.ss-app-more__section-title {
	margin: 28px 0 14px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ss-text-muted);
}

.ss-app-menu-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px;
	background: var(--ss-bg-elevated);
	border: 1px solid var(--ss-border);
	border-radius: var(--ss-radius-md);
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.ss-app-menu-card:active,
.ss-app-menu-card.is-pressed {
	transform: scale(0.98);
	background: var(--ss-bg-card);
}

.ss-app-menu-card__icon {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: grid;
	place-items: center;
}

.ss-app-menu-card--blue .ss-app-menu-card__icon {
	background: rgba(66, 133, 244, 0.15);
	color: #5b9ef5;
}

.ss-app-menu-card--red .ss-app-menu-card__icon {
	background: rgba(229, 57, 53, 0.15);
	color: var(--ss-red);
}

.ss-app-menu-card--gold .ss-app-menu-card__icon {
	background: rgba(255, 193, 7, 0.15);
	color: #ffc107;
}

.ss-app-menu-card--green .ss-app-menu-card__icon {
	background: rgba(37, 211, 102, 0.15);
	color: var(--ss-green);
}

.ss-app-menu-card--neutral .ss-app-menu-card__icon {
	background: rgba(255, 255, 255, 0.06);
	color: var(--ss-text-muted);
}

.ss-app--light .ss-app-menu-card--neutral .ss-app-menu-card__icon {
	background: rgba(0, 0, 0, 0.05);
}

.ss-app-menu-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: right;
}

.ss-app-menu-card__title {
	font-size: 17px;
	font-weight: 800;
	line-height: 1.25;
}

.ss-app-menu-card__subtitle {
	font-size: 13px;
	font-weight: 500;
	color: var(--ss-text-muted);
	line-height: 1.35;
}

.ss-app-menu-card__chevron {
	flex: 0 0 auto;
	color: var(--ss-text-muted);
	opacity: 0.55;
	display: flex;
}

/* Bottom nav active pill (More tab) */
.ss-app-bottom-nav__item.is-active .ss-app-bottom-nav__icon {
	background: rgba(229, 57, 53, 0.14);
	border-radius: 14px;
	padding: 6px 10px;
}
