/* Boststar: tasli7at dyal telephone (ta7t skin.min.css) */

/* 1) 7ta 3onsor ma ykbar 3la l-écran: grid/flex items kay9blo ytsgharo */
.bs-hero__grid > *, .bs-container > *, .bs-glass, .bs-form, .bs-field { min-width: 0; }
.bs-field input { min-width: 0; width: 100%; }
@media (max-width: 860px) {
	.bs-hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* 1b) "≈ DH" (PC w telephone): kan kayakhod l-khalfiya dyal l-carte "Help" (nafs smiya .bs-dh) */
.body small.bs-dh { display: block !important; background: none !important; padding: 0 !important; border: 0 !important; gap: 0 !important; box-shadow: none !important; font-size: 12px; font-weight: 600; line-height: 1.3; color: #6ee7b7 !important; }
.body .bs-no__total { padding-bottom: 26px !important; }
.body .bs-no__total small.bs-dh { position: absolute; right: 18px; bottom: 8px; }

/* 1c) Tickets: l-messages kayban fihom s-stour (bach message dyal mar7ba ykoun m9ad) */
.body .bs-tk__bubble { white-space: pre-line; }

/* 1d) Tickets: "Other" f star bo7do (bach l-kartat ykounou mstfin m3a "Game") */
.body .bs-tk__type.is-wide { grid-column: 1 / -1; }
.body .bs-tk__type.is-wide span { flex-direction: row; align-items: center; gap: 12px; }
.body .bs-tk__type.is-wide span i { margin-bottom: 0; }
.body .bs-tk__type.is-wide small { margin-inline-start: auto; }

/* 2) Services (New order): l-khana katkbar m3a smiya twila bla ma l-kteba tkhrej */
.body .bs-no .select2-container--default .select2-selection--single { height: auto !important; }
.body .bs-no .select2-container--default .select2-selection--single .select2-selection__rendered { word-break: break-word; }

/* 3) Add funds: jouj méthodes f kol star bla ma ykhorjo mn l-carte */
.body .bs-af .bs-method { min-width: 0; }
@media (max-width: 600px) {
	.body .bs-af .bs-methods { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* 5) Telephone: l-menu (☰) kaytl3 mn jnb fo9 l-page, w l-page tb9a f blastha */
.bs-nav-close { display: none; }
.body .sidebar-block__top .bs-nav-brand { display: none !important; }
@media (max-width: 991px) {
	/* backdrop-filter kaykhlli position:fixed dyal l-menu ytsedd west l-header */
	.body .component-navbar__navbar-private { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
	.body .sidebar-block__top .navbar-collapse {
		display: block !important; position: fixed !important; top: 0; bottom: 0; left: 0; z-index: 1080;
		width: min(86vw, 360px) !important; max-width: 86vw !important; height: 100% !important; max-height: none !important; margin: 0 !important;
		padding: 76px 16px 28px !important; overflow-y: auto !important; overscroll-behavior: contain;
		background: #12122a !important; background-color: #12122a !important; opacity: 1 !important;
		border-right: 1px solid var(--bs-line, #2a2a4d) !important;
		box-shadow: 0 0 0 100vmax rgba(5, 5, 14, 0) !important;
		transform: translateX(-105%) !important; visibility: hidden !important;
		transition: transform .25s ease, box-shadow .25s ease, visibility 0s linear .25s !important;
	}
	html.bs-nav-open .body .sidebar-block__top .navbar-collapse {
		transform: none !important; visibility: visible !important; box-shadow: 0 0 0 100vmax rgba(5, 5, 14, .7) !important;
		transition: transform .25s ease, box-shadow .25s ease, visibility 0s !important;
	}
	/* l-liens dyal l-menu: kol wa7ed f star, b blasa mzyana */
	.body .sidebar-block__top .navbar-nav-sidebar-menu { display: flex !important; flex-direction: column !important; gap: 2px; margin: 0 !important; padding: 0 !important; }
	.body .sidebar-block__top .navbar-nav-sidebar-menu .component-navbar-nav-link { display: flex !important; align-items: center; gap: 12px; padding: 12px 12px !important; border-radius: 12px; font-size: 15px; background: transparent !important; }
	.body .sidebar-block__top .navbar-nav-sidebar-menu .component-navbar-nav-link-active__navbar-private { background: rgba(168, 85, 247, .16) !important; color: #fff !important; }
	.body .sidebar-block__top .navbar-nav-sidebar-menu .component-navbar-nav-link-icon { width: 22px; text-align: center; }
	.body.body-rtl .sidebar-block__top .navbar-collapse, .body.sidebar-rtl .sidebar-block__top .navbar-collapse, [dir="rtl"] .sidebar-block__top .navbar-collapse {
		left: auto; right: 0; border-right: 0; border-left: 1px solid var(--bs-line, #2a2a4d); transform: translateX(105%);
	}
	/* l-header (w l-menu li fih) fo9 kolchi melli l-menu m7lol */
	html.bs-nav-open .body #block_11, html.bs-nav-open .body .component_private_navbar, html.bs-nav-open .body .component-navbar-private__wrapper,
	html.bs-nav-open .body .sidebar-block__top, html.bs-nav-open .body .sidebar-block__top .navbar { z-index: 1090 !important; }
	html.bs-nav-open .bs-wa, html.bs-nav-open .bs-bot-fab { display: none !important; }
	/* logo f l-fo9 dyal l-menu */
	.body .sidebar-block__top .bs-nav-brand { display: flex !important; align-items: center; gap: 10px; position: absolute; top: 14px; left: 16px; text-decoration: none !important; }
	[dir="rtl"] .bs-nav-brand, .body-rtl .bs-nav-brand, .sidebar-rtl .bs-nav-brand { left: auto !important; right: 16px; }
	/* menu dyal l-compte: kaytl3 fo9 l-liens b l-3rd kamel, ma kaydfe3 walo */
	.body .sidebar-block__top .bs-topbar { position: relative !important; }
	.body .sidebar-block__top .bs-topbar__item--user, .body .sidebar-block__top .bs-topbar__menu { position: static !important; }
	.body .sidebar-block__top .bs-topbar__drop {
		position: absolute !important; top: calc(100% - 6px) !important; left: 0 !important; right: 0 !important; z-index: 20;
		margin: 0 !important; min-width: 0 !important; background: #191936 !important;
		box-shadow: 0 24px 50px -10px rgba(0, 0, 0, .9) !important;
	}
	html.bs-nav-open { overflow: hidden; }
	html.bs-nav-open body { overflow: hidden; }
	.bs-nav-close {
		display: grid; place-items: center; position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
		border-radius: 12px; border: 1px solid var(--bs-line, #2a2a4d); background: var(--bs-card, #16162c);
		color: var(--bs-text, #ecebff); font-size: 18px; cursor: pointer;
	}
	[dir="rtl"] .bs-nav-close, .body-rtl .bs-nav-close, .sidebar-rtl .bs-nav-close { right: auto; left: 14px; }
	.body .sidebar-block__top .component-navbar-collapse-divider { display: none; }
	/* l-compte w l-balance l-fo9, men ba3d l-liens */
	.body .sidebar-block__top .component-navbar-collapse { display: flex !important; flex-direction: column; gap: 6px; }
	.body .sidebar-block__top .component-navbar-collapse > br { display: none; }
	.body .sidebar-block__top .bs-topbar { order: -1; padding: 0 0 14px; margin-bottom: 8px; border-bottom: 1px solid var(--bs-line, #2a2a4d); }
	.body .sidebar-block__top .navbar-nav-sidebar-menu { width: 100%; }
}

/* 6) Telephone: tasli7at dyal les pages (PC ma tbeddel fih walo) */
@media (max-width: 991px) {
	/* 7ta page ma tkhrej l-limin (scroll l-jnb) */
	.body .wrapper-content__body { overflow-x: clip; }

	/* Affiliates (/refer): l-carte w l-lien kanou kaykhorjo mn l-écran */
	.body .bs-rf__hero { grid-template-columns: minmax(0, 1fr) !important; }
	.body .bs-rf__hero > *, .body .bs-rf__link > * { min-width: 0; }
	.body .bs-rf__wallet { width: auto !important; max-width: 100%; }
	.body .bs-rf__link { max-width: 100%; }
	.body .bs-rf__link input { width: 100%; text-overflow: ellipsis; }
	.body .bs-rf__stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }

	/* API: l-boutons (Services / Add order...) ma b9awch kayl9o fo9 l-contenu */
	.body .bs-api__nav { position: static !important; background: transparent !important; }

	/* Blog: l-image dyal l-article kamla, ma tt9te3ch */
	.body .bs-blog__cover, .body .bs-blog__featured .bs-blog__cover { min-height: 0 !important; aspect-ratio: 1.91 / 1; background-size: cover; background-position: center; }

	/* Services: smiya dyal l-khidma ma tt9te3ch f west l-kelma */
	.body .table-service { word-break: normal !important; overflow-wrap: break-word; }
	.body .services-category { font-size: 22px !important; line-height: 1.25 !important; }

	/* Tickets: l-status sghir chwiya */
	.body .bs-tk__st { font-size: 11px; padding: 4px 9px; }
}
@media (max-width: 600px) {
	/* Add funds: smiya dyal l-méthode tban kamla (jouj stour) bla "..." */
	.body .bs-af .bs-method .bs-method__txt b { white-space: normal !important; overflow: hidden; text-overflow: clip !important; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	.body .bs-af .bs-method { align-items: center; }
}

/* 4) Telephones sghar (360px): l-3nawin chwiya sghar */
@media (max-width: 400px) {
	.bs-hero .bs-title, h1.bs-title { font-size: 32px !important; }
	.bs-hero__badges { font-size: 13.5px; gap: 6px; }
	.bs-hero__trust a { font-size: 12.5px; }
	.bs-glass { padding: 16px; }
}
