/* MaxFuzion HIMS — Compact High-Density Multilingual (EN / AR RTL / UR RTL / RU) Public Hospital Website */
:root {
	--hims-navy: #0A1D37;
	--hims-navy-2: #112A4C;
	--hims-cyan: #00A8CC;
	--hims-cyan-deep: #008EB0;
	--hims-accent: #0099BE;
	--hims-accent-hover: #007E9E;
	--hims-orange: #EA580C;
	--hims-bg: #F4F8FC;
	--hims-card: #FFFFFF;
	--hims-surface: #EDF4FA;
	--hims-border: #DCE6F0;
	--hims-text: #0F172A;
	--hims-muted: #475569;
	--hims-green: #059669;
	--hims-red: #DC2626;
}

* { box-sizing: border-box; }
html { height: 100%; }

body.hims-site {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
	background: var(--hims-bg);
	color: var(--hims-text);
	font-size: 13.5px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
body.hims-site > main {
	flex: 1 0 auto;
}

html[dir="rtl"] body.hims-site {
	font-family: 'Noto Sans Arabic', 'Tahoma', 'Segoe UI', sans-serif;
	direction: rtl;
	text-align: right;
}

.hims-wrap {
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Thin Utility Strip */
.hims-util {
	background: var(--hims-navy);
	color: rgba(255, 255, 255, 0.86);
	font-size: 11.5px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hims-util-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 5px 0;
	gap: 12px;
	flex-wrap: wrap;
}
.hims-lang-group {
	display: inline-flex;
	background: rgba(255, 255, 255, 0.09);
	border-radius: 6px;
	padding: 2px;
	gap: 2px;
}
.hims-lang-group button {
	background: transparent;
	color: rgba(255, 255, 255, 0.88);
	border: none;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 150ms ease, color 150ms ease;
}
.hims-lang-group button.active {
	background: var(--hims-accent);
	color: #fff;
}

/* Strict 3-Zone Compact Header */
.hims-header {
	background: #fff;
	border-bottom: 1px solid var(--hims-border);
	position: sticky;
	top: 0;
	z-index: 90;
}
.hims-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 54px;
}
.hims-brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
	color: var(--hims-navy);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: -0.015em;
	white-space: nowrap;
	flex-shrink: 0;
}
.hims-brand-mark {
	width: 30px;
	height: 30px;
	border-radius: 7px;
	background: var(--hims-navy);
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 11.5px;
	letter-spacing: 0.03em;
}
.hims-nav {
	display: flex;
	align-items: center;
	gap: 18px;
	overflow-x: auto;
	scrollbar-width: none;
}
.hims-nav::-webkit-scrollbar { display: none; }
.hims-nav a {
	text-decoration: none;
	color: var(--hims-muted);
	font-size: 13px;
	font-weight: 600;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	flex-shrink: 0;
	transition: color 150ms ease, border-color 150ms ease;
}
.hims-nav a:hover { color: var(--hims-navy); }
.hims-nav a.active {
	color: var(--hims-navy);
	border-bottom-color: var(--hims-accent);
}
.hims-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

/* Compact Buttons */
.hims-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 7px;
	font-weight: 600;
	font-size: 12.5px;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.hims-btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.hims-btn-primary { background: var(--hims-accent); color: #fff; }
.hims-btn-primary:hover { background: var(--hims-accent-hover); }
.hims-btn-cyan { background: linear-gradient(135deg, #00A8CC 0%, #008EB0 100%); color: #fff; box-shadow: 0 2px 8px rgba(0, 168, 204, 0.25); }
.hims-btn-cyan:hover { background: linear-gradient(135deg, #0095B8 0%, #007A99 100%); }
.hims-btn-orange { background: var(--hims-orange); color: #fff; }
.hims-btn-orange:hover { background: #C2410C; }
.hims-btn-dark { background: var(--hims-navy); color: #fff; }
.hims-btn-dark:hover { background: var(--hims-navy-2); }
.hims-btn-outline { background: #fff; border-color: #CBD5E1; color: var(--hims-navy); }
.hims-btn-outline:hover { background: var(--hims-surface); }
.hims-btn-logout { background: #FFF1F2; border-color: #FECDD3; color: #BE123C; }
.hims-btn-logout:hover { background: #FFE4E6; border-color: #FDA4AF; }

/* Compact Hero & Page Header */
.hims-hero {
	background: linear-gradient(115deg, #071B36 0%, #0F2B52 60%, #0C4A6E 100%);
	color: #fff;
	padding: 36px 0 34px;
}
.hims-hero-kicker {
	color: #7DD3FC;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 8px;
}
.hims-hero h1 {
	margin: 0 0 10px;
	font-size: clamp(24px, 3vw, 36px);
	line-height: 1.18;
	font-weight: 800;
	max-width: 760px;
	text-wrap: balance;
}
.hims-hero p {
	margin: 0 0 18px;
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.88);
	max-width: 680px;
}
.hims-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hims-page-head {
	background: #fff;
	border-bottom: 1px solid var(--hims-border);
	padding: 16px 0;
}
.hims-page-head-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.hims-page-head h1 {
	margin: 0 0 3px;
	font-size: 20px;
	font-weight: 800;
	color: var(--hims-navy);
	letter-spacing: -0.015em;
}
.hims-page-head p {
	margin: 0;
	font-size: 13px;
	color: var(--hims-muted);
	max-width: 780px;
}

/* Sections & Compact Grids */
.hims-section { padding: 20px 0; }
.hims-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hims-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: start; }
.hims-grid-split { display: grid; grid-template-columns: minmax(340px, 1.05fr) minmax(380px, 1.25fr); gap: 16px; align-items: start; }
@media (max-width: 920px) {
	.hims-grid-split { grid-template-columns: 1fr; }
}

/* Single-Elevation Compact Cards + Vibrant MaxFuzion.com Variants */
.hims-card {
	background: var(--hims-card);
	border: 1px solid var(--hims-border);
	border-radius: 11px;
	padding: 16px;
	box-shadow: 0 2px 10px rgba(10, 29, 55, 0.04);
}
.hims-card-accent-cyan {
	border-top: 3px solid var(--hims-cyan);
}
.hims-card-accent-navy {
	border-top: 3px solid var(--hims-navy);
}
.hims-card-accent-orange {
	border-top: 3px solid var(--hims-orange);
}
.hims-card-accent-green {
	border-top: 3px solid var(--hims-green);
}

/* Vibrant Electric Cyan Form Card (MaxFuzion.com Signature Style) */
.hims-card-cyan {
	background: linear-gradient(145deg, #00A8CC 0%, #008EB0 100%);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff;
	box-shadow: 0 12px 28px rgba(0, 142, 176, 0.22);
}
.hims-card-cyan .hims-card-hd {
	border-bottom-color: rgba(255, 255, 255, 0.24);
}
.hims-card-cyan h2,
.hims-card-cyan h3 {
	color: #fff;
}
.hims-card-cyan .hims-kicker {
	color: rgba(10, 29, 55, 0.85);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 2px;
}
.hims-card-cyan .hims-meta {
	color: rgba(255, 255, 255, 0.88);
}
.hims-card-cyan .hims-form-group label {
	color: #061C34;
	font-weight: 700;
}
.hims-card-cyan .hims-form-group input,
.hims-card-cyan .hims-form-group select,
.hims-card-cyan .hims-form-group textarea {
	border-color: rgba(255, 255, 255, 0.85);
	background: #ffffff;
	color: #0F172A;
	box-shadow: 0 1px 3px rgba(10, 29, 55, 0.08);
}
.hims-card-cyan .hims-form-group input:focus,
.hims-card-cyan .hims-form-group select:focus,
.hims-card-cyan .hims-form-group textarea:focus {
	border-color: var(--hims-navy);
	box-shadow: 0 0 0 2px rgba(10, 29, 55, 0.22);
}
.hims-card-cyan .hims-cal-day {
	background: rgba(255, 255, 255, 0.94);
	border-color: rgba(255, 255, 255, 0.5);
	color: var(--hims-navy);
}
.hims-card-cyan .hims-cal-day.active {
	background: var(--hims-navy);
	border-color: var(--hims-navy);
	color: #fff;
}
.hims-card-cyan .hims-slot-btn {
	background: rgba(255, 255, 255, 0.94);
	border-color: rgba(255, 255, 255, 0.55);
	color: var(--hims-navy);
}
.hims-card-cyan .hims-slot-btn.active {
	background: var(--hims-navy);
	border-color: var(--hims-navy);
	color: #fff;
}
.hims-card-cyan .hims-slot-btn:disabled {
	background: rgba(255, 255, 255, 0.42);
	color: rgba(10, 29, 55, 0.55);
}
.hims-card-cyan .hims-pay-box {
	background: rgba(10, 29, 55, 0.92);
	border-color: rgba(255, 255, 255, 0.16);
	color: #fff;
}
.hims-card-cyan .hims-pay-total {
	color: #38BDF8;
}
.hims-card-cyan .hims-pay-box .hims-meta {
	color: rgba(226, 232, 240, 0.82);
}

/* Deep Navy Contrast Card (MaxFuzion.com Signature Style) */
.hims-card-navy {
	background: linear-gradient(145deg, #0A1D37 0%, #112A4C 100%);
	border: 1px solid rgba(56, 189, 248, 0.22);
	color: #F8FAFC;
	box-shadow: 0 10px 26px rgba(10, 29, 55, 0.18);
}
.hims-card-navy .hims-card-hd {
	border-bottom-color: rgba(255, 255, 255, 0.12);
}
.hims-card-navy h2,
.hims-card-navy h3 {
	color: #fff;
}
.hims-card-navy .hims-meta {
	color: rgba(226, 232, 240, 0.8);
}

.hims-card-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	padding-bottom: 10px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--hims-border);
}
.hims-card h2, .hims-card h3 {
	margin: 0;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--hims-navy);
}
.hims-meta {
	font-size: 12px;
	color: var(--hims-muted);
}

/* Compact High-Density Forms */
.hims-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.hims-form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 600px) {
	.hims-form-grid { grid-template-columns: 1fr; }
}
.hims-form-group { margin-bottom: 0; }
.hims-form-group label {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	margin-bottom: 3px;
	color: var(--hims-navy);
}
.hims-form-group input,
.hims-form-group select,
.hims-form-group textarea {
	width: 100%;
	padding: 6px 9px;
	border: 1px solid #CBD5E1;
	border-radius: 6px;
	font-size: 12.5px;
	font-family: inherit;
	color: var(--hims-text);
	background: #fff;
}
.hims-form-group input:focus,
.hims-form-group select:focus,
.hims-form-group textarea:focus {
	outline: none;
	border-color: var(--hims-accent);
	box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.14);
}

/* Interactive Calendar Strip & Slot Grid */
.hims-cal-strip {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 5px;
}
.hims-cal-day {
	border: 1px solid var(--hims-border);
	background: #fff;
	border-radius: 6px;
	padding: 5px 4px;
	text-align: center;
	cursor: pointer;
	font-family: inherit;
	transition: border-color 150ms ease, background 150ms ease;
}
.hims-cal-day:hover { border-color: var(--hims-accent); }
.hims-cal-day.active {
	background: var(--hims-navy);
	border-color: var(--hims-navy);
	color: #fff;
}
.hims-cal-day .dow { display: block; font-size: 10px; opacity: 0.72; font-weight: 600; }
.hims-cal-day .dom { display: block; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hims-cal-day .mon { display: block; font-size: 9.5px; opacity: 0.72; }

.hims-slot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
	gap: 5px;
}
.hims-slot-btn {
	border: 1px solid #CBD5E1;
	background: #fff;
	color: var(--hims-navy);
	border-radius: 6px;
	padding: 5px 6px;
	font-size: 11.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	text-align: center;
}
.hims-slot-btn:hover:not(:disabled) { border-color: var(--hims-accent); background: #F0F9FF; }
.hims-slot-btn.active { background: var(--hims-accent); border-color: var(--hims-accent); color: #fff; }
.hims-slot-btn:disabled { background: #F1F5F9; color: #94A3B8; text-decoration: line-through; cursor: not-allowed; }

/* Fee & Payment Summary Box */
.hims-pay-box {
	background: var(--hims-surface);
	border: 1px solid var(--hims-border);
	border-radius: 8px;
	padding: 10px 12px;
	margin-top: 10px;
}
.hims-pay-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 12.5px;
}
.hims-pay-total {
	font-size: 16px;
	font-weight: 800;
	color: var(--hims-navy);
	font-variant-numeric: tabular-nums;
}

/* Segmented Tabs (Interactive Controls) */
.hims-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 3px;
	background: var(--hims-surface);
	border: 1px solid var(--hims-border);
	border-radius: 8px;
}
.hims-tab {
	border: none;
	background: transparent;
	color: var(--hims-muted);
	padding: 5px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 150ms ease, color 150ms ease;
}
.hims-tab:hover { color: var(--hims-navy); }
.hims-tab.active {
	background: #fff;
	color: var(--hims-navy);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* Compact High-Density Data Tables */
.hims-table-wrap { overflow-x: auto; }
.hims-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}
.hims-table th, .hims-table td {
	padding: 7px 10px;
	border-bottom: 1px solid var(--hims-border);
	text-align: start;
	vertical-align: middle;
}
.hims-table th {
	background: var(--hims-surface);
	font-size: 11px;
	font-weight: 700;
	color: var(--hims-muted);
	white-space: nowrap;
}
.hims-table tbody tr:hover { background: #F8FAFC; }
.hims-status-ok { color: var(--hims-green); font-weight: 700; }
.hims-status-warn { color: #B45309; font-weight: 700; }
.hims-status-err { color: var(--hims-red); font-weight: 700; }
.hims-num { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Compact Pagination Bar */
.hims-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 10px;
	margin-top: 4px;
	font-size: 12px;
	color: var(--hims-muted);
}
.hims-pager-btns { display: inline-flex; gap: 4px; }
.hims-pager-btns button {
	border: 1px solid #CBD5E1;
	background: #fff;
	color: var(--hims-navy);
	padding: 4px 9px;
	border-radius: 5px;
	font-size: 11.5px;
	font-weight: 600;
	cursor: pointer;
}
.hims-pager-btns button:disabled { opacity: 0.45; cursor: not-allowed; }
.hims-pager-btns button.active { background: var(--hims-navy); color: #fff; border-color: var(--hims-navy); }

/* Modal Overlay (Mobile Sample Booking) */
.hims-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(7, 27, 54, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 200;
}
.hims-modal-backdrop.open { display: flex; }
.hims-modal {
	background: #fff;
	border-radius: 10px;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	border: 1px solid var(--hims-border);
	padding: 18px;
}

/* Alerts & Quiet Footer */
.hims-alert {
	padding: 10px 12px;
	border-radius: 7px;
	background: #ECFDF5;
	border: 1px solid #A7F3D0;
	color: #065F46;
	font-size: 12.5px;
	margin-top: 10px;
}
.hims-alert-warn {
	background: #FFF7ED;
	border-color: #FED7AA;
	color: #9A3412;
}
.hims-footer {
	background: var(--hims-navy);
	color: rgba(255, 255, 255, 0.82);
	padding: 18px 0;
	font-size: 12px;
	margin-top: auto;
	border-top: 2px solid var(--hims-cyan);
	flex-shrink: 0;
}
.hims-footer a { color: #38BDF8; text-decoration: none; }
.hims-footer a:hover { text-decoration: underline; }
