/* ============================================================
 *  ARABJO POOL — App-style theme
 *  Mobile-app aesthetic: fixed top bar, slide-in drawer, fixed
 *  bottom tab bar, full-bleed screens. RTL Arabic. Burgundy/gold
 *  on a deep dark base, with a light mode toggle.
 * ============================================================ */

:root {
	--ap-burgundy: #7d2330;
	--ap-burgundy-dark: #4a141d;
	--ap-burgundy-light: #9a3140;
	--ap-gold: #C8A86A;
	--ap-gold-dark: #d8941a;
	--ap-gold-light: #ffd97a;

	/* Dark theme (default) */
	--ap-bg: #0a0608;
	--ap-bg-2: #140d10;
	--ap-surf: #191215;
	--ap-surf-2: #22191d;
	--ap-border: #2e2025;
	--ap-text: #f3f4f8;
	--ap-text-dim: #c2c7d6;
	--ap-muted: #8b91a5;

	--ap-radius: 16px;
	--ap-radius-lg: 22px;
	--ap-radius-sm: 11px;

	--ap-topbar-h: 58px;
	--ap-tabbar-h: 64px;
	--ap-max: 540px; /* app column width on desktop */

	--ap-font: 'Tajawal', system-ui, sans-serif;
	--ap-font-display: 'Cairo', 'Tajawal', sans-serif;

	--ap-shadow: 0 8px 30px rgba(0,0,0,0.35);
	--ap-shadow-gold: 0 6px 20px rgba(200,168,106,0.4);
}

/* Light theme overrides */
body.ap-light {
	--ap-bg: #f4f5f8;
	--ap-bg-2: #ffffff;
	--ap-surf: #ffffff;
	--ap-surf-2: #f0f2f6;
	--ap-border: #e3e6ee;
	--ap-text: #15192a;
	--ap-text-dim: #3c4257;
	--ap-muted: #6b7280;
	--ap-shadow: 0 8px 30px rgba(20,25,42,0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--ap-font);
	background: var(--ap-bg);
	color: var(--ap-text);
	direction: rtl;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
 *  SHELL
 * ============================================================ */
.ap-shell {
	min-height: 100vh;
	max-width: var(--ap-max);
	margin: 0 auto;
	position: relative;
	background: var(--ap-bg);
	/* subtle side borders on desktop to frame the "app" */
	box-shadow: 0 0 0 1px var(--ap-border);
}

.ap-main {
	padding-top: var(--ap-topbar-h);
	padding-bottom: calc(var(--ap-tabbar-h) + env(safe-area-inset-bottom, 0px));
	min-height: 100vh;
}

/* ============================================================
 *  TOP APP BAR
 * ============================================================ */
.ap-topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	margin-inline: auto;
	width: 100%;
	max-width: var(--ap-max);
	height: var(--ap-topbar-h);
	z-index: 1000;
	background: rgba(10, 6, 8,0.85);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--ap-border);
}
body.ap-light .ap-topbar { background: rgba(255,255,255,0.85); }

.ap-topbar-inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 12px;
}

.ap-icon-btn {
	width: 38px; height: 38px;
	border-radius: 11px;
	background: transparent;
	border: none;
	color: var(--ap-text);
	font-size: 17px;
	display: flex; align-items: center; justify-content: center;
	transition: background 0.15s ease;
	flex-shrink: 0;
}
.ap-icon-btn:hover { background: var(--ap-surf-2); }

.ap-brand {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 1;
	min-width: 0;
}
.ap-brand-mark {
	font-family: var(--ap-font-display);
	font-weight: 900;
	font-size: 21px;
	color: var(--ap-burgundy-light);
	line-height: 1;
	flex-shrink: 0;
}
.ap-brand .custom-logo { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.ap-brand-text { display: flex; flex-direction: column; min-width: 0; }
.ap-brand-title {
	font-family: var(--ap-font-display);
	font-weight: 800;
	font-size: 15px;
	color: var(--ap-text);
	line-height: 1.15;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-brand-sub {
	font-size: 9.5px;
	color: var(--ap-muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ap-topbar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-inline-start: auto; }

.ap-avatar-btn {
	width: 34px; height: 34px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--ap-gold);
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--ap-burgundy), var(--ap-burgundy-dark));
	flex-shrink: 0;
}
.ap-avatar-btn .ap-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.ap-avatar-letter {
	color: #fff; font-weight: 800; font-size: 14px;
	font-family: var(--ap-font-display);
}

.ap-login-btn {
	display: inline-flex; align-items: center; gap: 6px;
	height: 38px; padding: 0 16px;
	background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
	color: #2a1800;
	border-radius: 999px;
	font-weight: 800;
	font-size: 13px;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(200,168,106,0.3);
}
.ap-login-btn i { font-size: 12px; }

/* ============================================================
 *  SLIDE-IN DRAWER
 * ============================================================ */
.ap-drawer-overlay {
	position: fixed; inset: 0;
	background: rgba(0,0,0,0.55);
	z-index: 1100;
	opacity: 0; visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	backdrop-filter: blur(2px);
}
.ap-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.ap-drawer {
	position: fixed;
	top: 0; right: 0;
	height: 100%;
	width: 82%;
	max-width: 320px;
	z-index: 1200;
	background: var(--ap-bg-2);
	border-left: 1px solid var(--ap-border);
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
	display: flex;
	flex-direction: column;
	box-shadow: -10px 0 40px rgba(0,0,0,0.4);
}
.ap-drawer.is-open { transform: translateX(0); }

.ap-drawer-head {
	display: flex; align-items: center; gap: 10px;
	padding: 18px 16px;
	border-bottom: 1px solid var(--ap-border);
}
.ap-drawer-head .ap-brand-mark { font-size: 24px; }
.ap-drawer-title { font-family: var(--ap-font-display); font-weight: 800; font-size: 16px; }
.ap-drawer-sub { font-size: 11px; color: var(--ap-muted); }
.ap-drawer-close { margin-right: auto; }

.ap-drawer-user {
	display: flex; align-items: center; gap: 11px;
	margin: 14px;
	padding: 13px;
	background: linear-gradient(135deg, rgba(142,42,57,0.18), rgba(200,168,106,0.08));
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
}
.ap-drawer-user-av {
	width: 44px; height: 44px; border-radius: 50%;
	overflow: hidden; flex-shrink: 0;
	border: 2px solid var(--ap-gold);
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--ap-burgundy), var(--ap-burgundy-dark));
}
.ap-drawer-user-av .ap-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.ap-drawer-user-info { flex: 1; min-width: 0; }
.ap-drawer-user-name { font-weight: 800; font-size: 14px; display: block; }
.ap-drawer-user-link { font-size: 11px; color: var(--ap-gold); }
.ap-drawer-user i { color: var(--ap-muted); font-size: 13px; }

.ap-drawer-links { flex: 1; overflow-y: auto; padding: 6px 0; }
.ap-drawer-menu { list-style: none; }
.ap-drawer-menu li a {
	display: flex; align-items: center; gap: 13px;
	padding: 13px 18px;
	color: var(--ap-text-dim);
	font-weight: 600;
	font-size: 14.5px;
	transition: background 0.15s ease, color 0.15s ease;
}
.ap-drawer-menu li a:hover {
	background: var(--ap-surf);
	color: var(--ap-text);
}
.ap-drawer-menu li a i {
	width: 22px; text-align: center;
	color: var(--ap-burgundy-light);
	font-size: 16px;
}

.ap-drawer-foot {
	padding: 14px 16px;
	border-top: 1px solid var(--ap-border);
}
.ap-drawer-logout {
	display: flex; align-items: center; gap: 9px;
	padding: 11px 14px;
	background: rgba(142,42,57,0.12);
	border: 1px solid rgba(142,42,57,0.3);
	border-radius: var(--ap-radius-sm);
	color: var(--ap-burgundy-light);
	font-weight: 700;
	font-size: 13.5px;
	justify-content: center;
}
.ap-drawer-credit {
	text-align: center;
	font-size: 11px;
	color: var(--ap-muted);
	margin-top: 12px;
}
.ap-drawer-credit strong { color: var(--ap-gold); }

/* ============================================================
 *  BOTTOM TAB BAR — the signature app element
 * ============================================================ */
.ap-tabbar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	margin-inline: auto;
	width: 100%;
	max-width: var(--ap-max);
	height: calc(var(--ap-tabbar-h) + env(safe-area-inset-bottom, 0px));
	padding-bottom: env(safe-area-inset-bottom, 0px);
	z-index: 1000;
	background: rgba(20, 13, 16,0.92);
	backdrop-filter: saturate(180%) blur(16px);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	border-top: 1px solid var(--ap-border);
	display: flex;
	align-items: stretch;
}
body.ap-light .ap-tabbar { background: rgba(255,255,255,0.92); }

.ap-tab {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	color: var(--ap-muted);
	transition: color 0.15s ease;
	position: relative;
	padding-top: 6px;
}
.ap-tab-ico {
	font-size: 19px;
	line-height: 1;
	transition: transform 0.15s ease;
}
.ap-tab-lbl {
	font-size: 10px;
	font-weight: 700;
}
.ap-tab.is-active {
	color: var(--ap-gold);
}
.ap-tab.is-active .ap-tab-ico {
	transform: translateY(-2px);
}
/* active indicator pill on top */
.ap-tab.is-active::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 26px; height: 3px;
	background: var(--ap-gold);
	border-radius: 0 0 4px 4px;
	box-shadow: 0 0 10px rgba(200,168,106,0.6);
}
.ap-tab:active .ap-tab-ico { transform: scale(0.88); }

/* ============================================================
 *  PAGE WRAPPERS
 * ============================================================ */
.ap-page-app { /* FP shortcode pages render their own styled shell */ }

.ap-page-plain {
	padding: 16px 14px 24px;
}
.ap-page-head { margin-bottom: 16px; }
.ap-page-title {
	font-family: var(--ap-font-display);
	font-weight: 800;
	font-size: 22px;
	color: var(--ap-text);
}
.ap-page-body { color: var(--ap-text-dim); }
.ap-page-body h2 { font-family: var(--ap-font-display); color: var(--ap-text); margin: 18px 0 8px; font-size: 18px; }
.ap-page-body h3 { color: var(--ap-text); margin: 14px 0 6px; font-size: 15px; }
.ap-page-body p { margin-bottom: 12px; }
.ap-page-body ul, .ap-page-body ol { margin: 0 22px 14px; }
.ap-page-body li { margin-bottom: 6px; }
.ap-page-body a { color: var(--ap-gold); }
.ap-page-body hr { border: none; border-top: 1px solid var(--ap-border); margin: 18px 0; }

/* Generic button */
.ap-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px;
	background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
	color: #2a1800;
	border-radius: 999px;
	font-weight: 800;
	border: none;
}

/* Empty / 404 */
.ap-empty { text-align: center; padding: 60px 20px; }
.ap-empty-ico { font-size: 48px; color: var(--ap-muted); margin-bottom: 14px; }
.ap-empty p { color: var(--ap-text-dim); margin-bottom: 18px; }

/* Posts (blog fallback) */
.ap-post-list { display: flex; flex-direction: column; gap: 14px; padding: 16px 14px; }
.ap-post-card { background: var(--ap-surf); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); overflow: hidden; }
.ap-post-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ap-post-body { padding: 14px; }
.ap-post-title { font-size: 16px; font-family: var(--ap-font-display); margin-bottom: 8px; }
.ap-post-excerpt { font-size: 13px; color: var(--ap-text-dim); margin-bottom: 10px; }
.ap-post-more { color: var(--ap-gold); font-weight: 700; font-size: 13px; }
.ap-pagination { padding: 0 14px 24px; text-align: center; }
.ap-pagination .page-numbers {
	display: inline-block; padding: 8px 13px; margin: 0 3px;
	background: var(--ap-surf); border: 1px solid var(--ap-border);
	border-radius: 10px; color: var(--ap-text-dim); font-weight: 700;
}
.ap-pagination .page-numbers.current { background: var(--ap-burgundy); color: #fff; border-color: var(--ap-burgundy); }

/* ============================================================
 *  FRONT PAGE (home screen)
 * ============================================================ */
.ap-home { padding-bottom: 20px; }

/* HERO */
.ap-hero {
	position: relative;
	padding: 30px 20px 34px;
	background:
		radial-gradient(circle at 80% 0%, rgba(200,168,106,0.18), transparent 50%),
		linear-gradient(160deg, var(--ap-burgundy-dark) 0%, #2a0d14 60%, var(--ap-bg) 130%);
	overflow: hidden;
}
.ap-hero-glow {
	position: absolute;
	top: -60px; right: -40px;
	width: 220px; height: 220px;
	background: radial-gradient(circle, rgba(200,168,106,0.35), transparent 70%);
	filter: blur(20px);
	pointer-events: none;
}
.ap-hero-trophy {
	position: absolute;
	left: -20px; bottom: -30px;
	font-size: 150px;
	color: rgba(200,168,106,0.07);
	transform: rotate(-12deg);
	pointer-events: none;
}
.ap-hero-content { position: relative; z-index: 1; }
.ap-hero-badge {
	display: inline-block;
	padding: 6px 14px;
	background: rgba(200,168,106,0.15);
	border: 1px solid var(--ap-gold);
	color: var(--ap-gold);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 14px;
}
.ap-hero-title {
	font-family: var(--ap-font-display);
	font-weight: 900;
	font-size: 34px;
	line-height: 1.1;
	color: #fff;
	margin-bottom: 12px;
}
.ap-hero-title-hl { color: var(--ap-gold); }
.ap-hero-desc {
	font-size: 14.5px;
	color: rgba(255,255,255,0.82);
	line-height: 1.7;
	margin-bottom: 20px;
	max-width: 90%;
}
.ap-hero-cta {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 14px 26px;
	background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
	color: #2a1800;
	border-radius: 999px;
	font-weight: 900;
	font-size: 15px;
	box-shadow: var(--ap-shadow-gold);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ap-hero-cta:active { transform: scale(0.97); }

/* QUICK TILES */
.ap-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 11px;
	padding: 18px 14px;
}
.ap-tile {
	border-radius: var(--ap-radius);
	padding: 16px 14px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-height: 104px;
	justify-content: flex-end;
	position: relative;
	overflow: hidden;
	border: 1px solid transparent;
	transition: transform 0.15s ease;
}
.ap-tile:active { transform: scale(0.97); }
.ap-tile-ico {
	font-size: 24px;
	margin-bottom: auto;
}
.ap-tile-title { font-family: var(--ap-font-display); font-weight: 800; font-size: 16px; }
.ap-tile-sub { font-size: 11.5px; opacity: 0.8; }

.ap-tile.tile-burgundy {
	background: linear-gradient(150deg, var(--ap-burgundy), var(--ap-burgundy-dark));
	color: #fff;
}
.ap-tile.tile-burgundy .ap-tile-ico { color: var(--ap-gold-light); }
.ap-tile.tile-gold {
	background: linear-gradient(150deg, var(--ap-gold), var(--ap-gold-dark));
	color: #2a1800;
}
.ap-tile.tile-dark {
	background: var(--ap-surf);
	border-color: var(--ap-border);
	color: var(--ap-text);
}
.ap-tile.tile-dark .ap-tile-ico { color: var(--ap-gold); }
.ap-tile.tile-outline {
	background: transparent;
	border: 1px dashed var(--ap-border);
	color: var(--ap-text);
}
.ap-tile.tile-outline .ap-tile-ico { color: var(--ap-burgundy-light); }

/* SECTIONS */
.ap-section { padding: 14px 16px 8px; }
.ap-section-title {
	font-family: var(--ap-font-display);
	font-weight: 800;
	font-size: 17px;
	margin-bottom: 14px;
	display: flex; align-items: center; gap: 8px;
}
.ap-section-title i { color: var(--ap-gold); font-size: 15px; }

/* STEPS */
.ap-steps { display: flex; flex-direction: column; gap: 10px; }
.ap-step {
	display: flex; align-items: center; gap: 13px;
	padding: 13px 14px;
	background: var(--ap-surf);
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
}
.ap-step-num {
	width: 30px; height: 30px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ap-burgundy), var(--ap-burgundy-dark));
	color: #fff;
	font-weight: 900;
	font-size: 14px;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
	font-family: var(--ap-font-display);
}
.ap-step-title { font-weight: 800; font-size: 14px; }
.ap-step-desc { font-size: 12px; color: var(--ap-muted); }

/* PRIZES */
.ap-prizes {
	margin: 18px 14px;
	padding: 22px 18px;
	background:
		radial-gradient(circle at 50% 0%, rgba(200,168,106,0.12), transparent 65%),
		linear-gradient(145deg, var(--ap-surf), var(--ap-bg-2));
	border: 1px solid rgba(200,168,106,0.3);
	border-radius: var(--ap-radius-lg);
	position: relative;
	overflow: hidden;
}
.ap-prizes-glow {
	position: absolute; top: -40px; left: 50%;
	transform: translateX(-50%);
	width: 200px; height: 100px;
	background: radial-gradient(ellipse, rgba(200,168,106,0.25), transparent 70%);
	filter: blur(20px);
}
.ap-prizes-head {
	display: flex; align-items: center; gap: 9px;
	justify-content: center;
	margin-bottom: 18px;
	position: relative;
}
.ap-prizes-ico { font-size: 22px; }
.ap-prizes-title { font-family: var(--ap-font-display); font-weight: 900; font-size: 20px; color: var(--ap-gold); }
.ap-prizes-grid { display: flex; flex-direction: column; gap: 11px; }
.ap-prize-card {
	background: var(--ap-bg-2);
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
	padding: 16px;
	text-align: center;
}
.ap-prize-card.ap-prize-grand {
	background: linear-gradient(135deg, rgba(200,168,106,0.16), rgba(142,42,57,0.10));
	border-color: var(--ap-gold);
}
.ap-prize-amount {
	font-family: var(--ap-font-display);
	font-weight: 900;
	font-size: 30px;
	color: var(--ap-gold);
	line-height: 1;
}
.ap-prize-amount span { font-size: 15px; }
.ap-prize-ico { font-size: 30px; margin-bottom: 6px; }
.ap-prize-label { font-size: 13px; color: var(--ap-text-dim); font-weight: 600; margin-top: 5px; }
.ap-prizes-link {
	display: block;
	text-align: center;
	margin-top: 16px;
	color: var(--ap-gold);
	font-weight: 700;
	font-size: 13px;
}

/* FINAL CTA */
.ap-final-cta {
	text-align: center;
	padding: 28px 20px 10px;
}
.ap-final-cta h2 {
	font-family: var(--ap-font-display);
	font-weight: 900;
	font-size: 24px;
	margin-bottom: 6px;
}
.ap-final-cta p {
	color: var(--ap-text-dim);
	font-size: 14px;
	margin-bottom: 18px;
}

/* ============================================================
 *  ENTRANCE ANIMATIONS
 * ============================================================ */
@keyframes ap-fade-up {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}
.ap-hero-content > * { animation: ap-fade-up 0.5s ease backwards; }
.ap-hero-badge { animation-delay: 0.05s; }
.ap-hero-title { animation-delay: 0.12s; }
.ap-hero-desc { animation-delay: 0.2s; }
.ap-hero-cta { animation-delay: 0.28s; }
.ap-tile { animation: ap-fade-up 0.5s ease backwards; }
.ap-tile:nth-child(1) { animation-delay: 0.1s; }
.ap-tile:nth-child(2) { animation-delay: 0.16s; }
.ap-tile:nth-child(3) { animation-delay: 0.22s; }
.ap-tile:nth-child(4) { animation-delay: 0.28s; }

/* ============================================================
 *  DESKTOP REFINEMENT
 * ============================================================ */
@media (min-width: 560px) {
	.ap-shell {
		margin: 16px auto;
		min-height: calc(100vh - 32px);
		border-radius: 28px;
		overflow: hidden;
		box-shadow: 0 20px 60px rgba(0,0,0,0.4);
	}
	.ap-topbar { border-radius: 28px 28px 0 0; }
	.ap-tabbar { border-radius: 0 0 28px 28px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
 *  NOTIFICATION BELL + PANEL
 * ============================================================ */
.ap-notif { position: relative; }
.ap-notif-btn { position: relative; }
.ap-notif-dot {
	position: absolute;
	top: 2px; left: 2px;
	min-width: 17px; height: 17px;
	padding: 0 4px;
	background: var(--ap-burgundy);
	color: #fff;
	font-size: 9.5px; font-weight: 800;
	border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	border: 2px solid var(--ap-bg);
	line-height: 1;
	box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
/* The notification panel drops as a centered sheet under the top bar, so it
   can never overlap the brand or run off-screen. */
.ap-notif-panel {
	position: fixed;
	top: calc(var(--ap-topbar-h) + 6px);
	left: 50%;
	transform: translateX(-50%) translateY(-10px);
	width: calc(min(var(--ap-max), 100vw) - 20px);
	max-width: 440px;
	background: var(--ap-bg-2);
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius-lg);
	box-shadow: var(--ap-shadow);
	opacity: 0; visibility: hidden;
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
	z-index: 1300;
	overflow: hidden;
}
.ap-notif.is-open .ap-notif-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.ap-notif-head {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--ap-border);
	font-weight: 800; font-size: 14px;
	font-family: var(--ap-font-display);
	background: linear-gradient(135deg, rgba(142,42,57,0.10), rgba(200,168,106,0.05));
}
.ap-notif-head > span i { color: var(--ap-gold); }
.ap-notif-readall {
	background: transparent;
	border: 1px solid var(--ap-border);
	color: var(--ap-gold);
	font-family: var(--ap-font);
	font-size: 10.5px; font-weight: 700;
	padding: 5px 10px;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.ap-notif-readall:hover { background: rgba(200,168,106,0.12); border-color: var(--ap-gold); }
.ap-notif-readall i { font-size: 9px; margin-left: 3px; }
.ap-notif-list { max-height: min(60vh, 420px); overflow-y: auto; }
.ap-notif-empty {
	padding: 34px 16px; text-align: center; color: var(--ap-muted); font-size: 13px;
	display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ap-notif-empty i { font-size: 28px; opacity: 0.5; }
.ap-notif-item {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 13px 15px;
	border-bottom: 1px solid var(--ap-border);
	transition: background 0.15s ease;
	position: relative;
}
.ap-notif-item:last-child { border-bottom: none; }
.ap-notif-item:hover { background: var(--ap-surf); }
.ap-notif-item.is-new { background: rgba(200,168,106,0.06); }
.ap-notif-item-ico {
	width: 40px; height: 40px; flex-shrink: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--ap-burgundy), var(--ap-burgundy-dark));
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 16px;
	box-shadow: 0 3px 8px rgba(142,42,57,0.25);
}
.ap-notif-item.is-new .ap-notif-item-ico {
	background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
	color: #2a1800;
	box-shadow: 0 3px 8px rgba(200,168,106,0.3);
}
.ap-notif-item-body { flex: 1; min-width: 0; padding-top: 1px; }
.ap-notif-item-text { display: block; font-size: 13px; font-weight: 700; color: var(--ap-text); line-height: 1.45; }
.ap-notif-item-msg { display: block; font-size: 11.5px; color: var(--ap-text-dim); margin-top: 2px; line-height: 1.4; }
.ap-notif-item-time { display: block; font-size: 10.5px; color: var(--ap-muted); margin-top: 4px; }
.ap-notif-item-time i { font-size: 9px; margin-left: 2px; }
.ap-notif-new-dot {
	width: 8px; height: 8px; border-radius: 50%; margin-top: 6px;
	background: var(--ap-gold); flex-shrink: 0;
	box-shadow: 0 0 8px rgba(200,168,106,0.7);
}

/* ---- Admin broadcast (custom) notifications: highlighted ---- */
.ap-notif-item.is-custom {
	background: linear-gradient(135deg, rgba(200,168,106,0.10), rgba(142,42,57,0.06));
	border-right: 3px solid var(--ap-gold);
}
.ap-notif-item.is-custom .ap-notif-item-ico {
	background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
	color: #2a1800;
}
.ap-notif-item.is-custom.type-important .ap-notif-item-ico { background: linear-gradient(135deg, var(--ap-burgundy-light), var(--ap-burgundy-dark)); color:#fff; }
.ap-notif-item.is-custom.type-info .ap-notif-item-ico { background: linear-gradient(135deg, #4a9fd4, #2f6f9c); color:#fff; }
.ap-notif-item.is-custom.type-success .ap-notif-item-ico { background: linear-gradient(135deg, #43c98e, #2c9466); color:#fff; }
.ap-notif-ribbon {
	flex-shrink: 0;
	font-size: 9px; font-weight: 800;
	background: var(--ap-gold); color: #2a1800;
	padding: 3px 8px; border-radius: 999px;
	letter-spacing: 0.3px;
	align-self: flex-start;
}

/* ============================================================
 *  USER MENU DROPDOWN
 * ============================================================ */
.ap-usermenu { position: relative; }
.ap-usermenu-panel {
	position: absolute;
	top: calc(100% + 8px);
	left: -8px;
	width: 230px;
	background: var(--ap-bg-2);
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
	box-shadow: var(--ap-shadow);
	opacity: 0; visibility: hidden; transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 1300;
	overflow: hidden;
}
.ap-usermenu.is-open .ap-usermenu-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.ap-usermenu-head {
	display: flex; align-items: center; gap: 10px;
	padding: 14px 15px;
	border-bottom: 1px solid var(--ap-border);
	background: linear-gradient(135deg, rgba(142,42,57,0.12), rgba(200,168,106,0.06));
}
.ap-usermenu-av {
	width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
	border: 2px solid var(--ap-gold); flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--ap-burgundy), var(--ap-burgundy-dark));
}
.ap-usermenu-av .ap-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.ap-usermenu-info { min-width: 0; }
.ap-usermenu-name { display: block; font-weight: 800; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-usermenu-mail { display: block; font-size: 10.5px; color: var(--ap-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-usermenu-link {
	display: flex; align-items: center; gap: 11px;
	padding: 12px 15px;
	font-size: 13.5px; font-weight: 600;
	color: var(--ap-text-dim);
	border-bottom: 1px solid var(--ap-border);
	transition: background 0.15s ease, color 0.15s ease;
}
.ap-usermenu-link:last-child { border-bottom: none; }
.ap-usermenu-link:hover { background: var(--ap-surf); color: var(--ap-text); }
.ap-usermenu-link i { width: 18px; text-align: center; color: var(--ap-burgundy-light); }
.ap-usermenu-logout { color: var(--ap-burgundy-light); }
.ap-usermenu-logout i { color: var(--ap-burgundy-light); }

/* ============================================================
 *  MEMBER DASHBOARD — welcome + feed
 * ============================================================ */
.ap-welcome {
	position: relative;
	padding: 26px 18px 24px;
	background: linear-gradient(160deg, var(--ap-burgundy-dark), #2a0d14 70%, var(--ap-bg));
	overflow: hidden;
}
.ap-welcome.has-img {
	background-image: var(--ap-hero-img);
	background-size: cover;
	background-position: center;
}
.ap-welcome-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(160deg, rgba(122,22,38,0.85), rgba(10, 6, 8,0.92));
}
.ap-welcome.has-img .ap-welcome-overlay { background: linear-gradient(160deg, rgba(122,22,38,0.78), rgba(10, 6, 8,0.9)); }
.ap-welcome-content {
	position: relative; z-index: 1;
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px; flex-wrap: wrap;
}
.ap-welcome-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ap-welcome-av {
	width: 48px; height: 48px; flex-shrink: 0;
	border-radius: 50%; overflow: hidden;
	border: 2px solid var(--ap-gold);
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--ap-burgundy), var(--ap-burgundy-dark));
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.ap-welcome-av .ap-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.ap-welcome-av .ap-avatar-letter { color:#fff; font-weight:800; font-size:19px; font-family: var(--ap-font-display); }
.ap-welcome-greet { min-width: 0; }
.ap-welcome-hi { font-size: 12.5px; color: rgba(255,255,255,0.82); display:block; }
.ap-welcome-name {
	font-family: var(--ap-font-display);
	font-weight: 800; font-size: 21px; color: #fff; line-height: 1.15;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	max-width: 52vw;
}
.ap-welcome-cta {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 18px;
	background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
	color: #2a1800; border-radius: 999px; font-weight: 800; font-size: 13.5px;
	box-shadow: var(--ap-shadow-gold);
	white-space: nowrap;
}

/* Feed (what's new) */
.ap-feed { display: flex; flex-direction: column; gap: 9px; }
.ap-feed-item {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 13px 14px;
	background: var(--ap-surf);
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
	transition: transform 0.15s ease, border-color 0.15s ease;
	position: relative;
}
.ap-feed-item:active { transform: scale(0.98); }
.ap-feed-item.is-new { border-color: rgba(200,168,106,0.4); }
.ap-feed-ico {
	width: 42px; height: 42px; flex-shrink: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--ap-burgundy), var(--ap-burgundy-dark));
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 17px;
	box-shadow: 0 3px 8px rgba(142,42,57,0.25);
}
.ap-feed-item.is-new .ap-feed-ico {
	background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
	color: #2a1800;
	box-shadow: 0 3px 8px rgba(200,168,106,0.3);
}
.ap-feed-body { flex: 1; min-width: 0; padding-top: 1px; }
.ap-feed-text { display: block; font-size: 13.5px; font-weight: 700; color: var(--ap-text); line-height: 1.4; }
.ap-feed-msg { display: block; font-size: 11.5px; color: var(--ap-text-dim); margin-top: 2px; line-height: 1.4; }
.ap-feed-time { display: block; font-size: 10.5px; color: var(--ap-muted); margin-top: 4px; }
.ap-feed-time i { font-size: 9px; margin-left: 2px; }
.ap-feed-badge {
	font-size: 9.5px; font-weight: 800;
	background: var(--ap-gold); color: #2a1800;
	padding: 3px 8px; border-radius: 999px; flex-shrink: 0;
	align-self: flex-start;
}
/* Admin broadcast (custom) feed items: highlighted */
.ap-feed-item.is-custom {
	background: linear-gradient(135deg, rgba(200,168,106,0.10), rgba(142,42,57,0.06));
	border-color: rgba(200,168,106,0.5);
	border-right: 3px solid var(--ap-gold);
}
.ap-feed-item.is-custom .ap-feed-ico { background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark)); color:#2a1800; }
.ap-feed-item.is-custom.type-important .ap-feed-ico { background: linear-gradient(135deg, var(--ap-burgundy-light), var(--ap-burgundy-dark)); color:#fff; }
.ap-feed-item.is-custom.type-info .ap-feed-ico { background: linear-gradient(135deg, #4a9fd4, #2f6f9c); color:#fff; }
.ap-feed-item.is-custom.type-success .ap-feed-ico { background: linear-gradient(135deg, #43c98e, #2c9466); color:#fff; }
.ap-feed-ribbon {
	font-size: 9px; font-weight: 800;
	background: var(--ap-gold); color: #2a1800;
	padding: 3px 9px; border-radius: 999px; flex-shrink: 0;
	letter-spacing: 0.3px; align-self: flex-start;
}

/* Compact prizes (member) */
.ap-prizes-compact { padding: 18px; }
.ap-prizes-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ap-prize-mini {
	background: var(--ap-bg-2);
	border: 1px solid var(--ap-border);
	border-radius: 11px;
	padding: 10px 15px;
	font-size: 12.5px; color: var(--ap-text-dim); font-weight: 600;
}
.ap-prize-mini strong { color: var(--ap-gold); font-size: 16px; font-family: var(--ap-font-display); }

/* ============================================================
 *  SOCIAL LOGIN CARD
 * ============================================================ */
.ap-login-card {
	background: linear-gradient(160deg, var(--ap-surf), var(--ap-bg-2));
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius-lg);
	padding: 26px 20px;
	text-align: center;
}
.ap-login-card-ico {
	width: 56px; height: 56px; margin: 0 auto 14px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ap-burgundy), var(--ap-burgundy-dark));
	color: #fff; font-size: 24px;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 20px rgba(142,42,57,0.4);
}
.ap-login-card-title { font-family: var(--ap-font-display); font-weight: 800; font-size: 19px; margin-bottom: 6px; }
.ap-login-card-sub { font-size: 13px; color: var(--ap-text-dim); margin-bottom: 18px; }
.ap-social-login { display: flex; flex-direction: column; gap: 10px; align-items: center; }
/* Nextend renders its own buttons; give them room + center them. */
.ap-social-login .nsl-container { width: 100%; margin: 0 !important; }
.ap-social-login .nsl-container-buttons { display: flex; flex-direction: column; gap: 9px; }
.ap-login-fallback {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 24px;
	background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
	color: #2a1800; border-radius: 999px; font-weight: 800;
}

/* ============================================================
 *  IMAGE-BACKED SECTIONS (hero / prizes / cta with uploaded img)
 * ============================================================ */
.ap-hero.has-img {
	background-image: var(--ap-hero-img);
	background-size: cover;
	background-position: center;
}
.ap-hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(160deg, rgba(122,22,38,0.82) 0%, rgba(10, 6, 8,0.9) 100%);
	z-index: 0;
}
.ap-hero:not(.has-img) .ap-hero-overlay { display: none; }

.ap-prizes.has-img {
	background-image:
		linear-gradient(160deg, rgba(25, 18, 21,0.92), rgba(10, 6, 8,0.95)),
		var(--ap-prizes-img);
	background-size: cover;
	background-position: center;
}

.ap-final-cta { position: relative; overflow: hidden; }
.ap-final-cta.has-img {
	background-image: var(--ap-cta-img);
	background-size: cover; background-position: center;
	padding: 40px 20px;
	border-radius: var(--ap-radius-lg);
	margin: 18px 14px 10px;
}
.ap-final-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(122,22,38,0.85), rgba(10, 6, 8,0.92)); }
.ap-final-cta:not(.has-img) .ap-final-overlay { display: none; }
.ap-final-content { position: relative; z-index: 1; }

/* Close panels by tapping elsewhere — invisible catcher when open */
/* (Outside-click closing is handled by the JS document listener, so no
   full-screen overlay is needed — an overlay trapped above the fixed
   header would block taps on the menu/notification links.) */

/* ============================================================
 *  v1.2 — SPORTS PORTAL HOME (next match, standings, news, footer)
 * ============================================================ */

/* Uploaded brand / icon images */
.ap-brand-img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.ap-icon-img { width: 20px; height: 20px; object-fit: contain; }

/* Section head with "view all" link */
.ap-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ap-section-head .ap-section-title { margin-bottom: 0; }
.ap-section-link { font-size: 12px; font-weight: 700; color: var(--ap-gold); white-space: nowrap; }

/* Hero stat badges */
.ap-hero-stats { display: flex; gap: 10px; margin: 4px 0 20px; flex-wrap: wrap; }
.ap-hstat {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 14px;
	padding: 10px 16px; min-width: 78px;
	backdrop-filter: blur(4px);
}
.ap-hstat-ico { color: var(--ap-gold); font-size: 15px; margin-bottom: 2px; }
.ap-hstat-num { font-family: var(--ap-font-display); font-weight: 900; font-size: 20px; color: #fff; line-height: 1; }
.ap-hstat-lbl { font-size: 10.5px; color: rgba(255,255,255,0.8); }

/* Next match card */
.ap-nextmatch {
	background: linear-gradient(150deg, var(--ap-surf), var(--ap-bg-2));
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius-lg);
	padding: 18px 16px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.ap-nextmatch::before {
	content: ''; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
	width: 200px; height: 90px; background: radial-gradient(ellipse, rgba(200,168,106,0.16), transparent 70%); filter: blur(16px);
}
.ap-nm-round {
	display: inline-block; position: relative;
	font-size: 11px; font-weight: 800; color: var(--ap-gold);
	background: rgba(200,168,106,0.12); border: 1px solid rgba(200,168,106,0.35);
	padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
}
.ap-nm-teams { display: flex; align-items: center; justify-content: center; gap: 14px; position: relative; }
.ap-nm-team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 38%; }
.ap-nm-badge {
	width: 54px; height: 54px; border-radius: 50%;
	background: linear-gradient(135deg, var(--ap-burgundy), var(--ap-burgundy-dark));
	color: var(--ap-gold-light); display: flex; align-items: center; justify-content: center; font-size: 24px;
	box-shadow: 0 4px 14px rgba(142,42,57,0.35);
}
.ap-nm-name { font-family: var(--ap-font-display); font-weight: 800; font-size: 14px; color: var(--ap-text); line-height: 1.2; }
.ap-nm-vs {
	font-family: var(--ap-font-display); font-weight: 900; font-size: 14px; color: #fff;
	background: var(--ap-gold); width: 38px; height: 38px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	color: #2a1800; box-shadow: var(--ap-shadow-gold);
}
.ap-nm-meta { margin: 14px 0 16px; }
.ap-nm-date { font-size: 12.5px; color: var(--ap-text-dim); }
.ap-nm-date i { color: var(--ap-gold); margin-left: 4px; }
.ap-nm-cta {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 24px; background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
	color: #2a1800; border-radius: 999px; font-weight: 800; font-size: 13.5px; box-shadow: var(--ap-shadow-gold);
}

/* Standings table */
.ap-standings { background: var(--ap-surf); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); overflow: hidden; }
.ap-st-head, .ap-st-row { display: grid; grid-template-columns: 44px 1fr 64px; align-items: center; }
.ap-st-head { padding: 11px 14px; background: var(--ap-surf-2); border-bottom: 1px solid var(--ap-border); }
.ap-st-head span { font-size: 11px; font-weight: 700; color: var(--ap-muted); }
.ap-st-head .ap-st-pts, .ap-st-row .ap-st-pts { text-align: center; }
.ap-st-row { padding: 12px 14px; border-bottom: 1px solid var(--ap-border); transition: background 0.15s ease; }
.ap-st-row:last-child { border-bottom: none; }
.ap-st-rank { font-family: var(--ap-font-display); font-weight: 800; font-size: 15px; color: var(--ap-text-dim); }
.ap-st-row.is-top .ap-st-rank { font-size: 18px; }
.ap-st-name { font-size: 13.5px; font-weight: 700; color: var(--ap-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-st-name em { color: var(--ap-gold); font-style: normal; font-size: 11px; font-weight: 700; }
.ap-st-pts { font-family: var(--ap-font-display); font-weight: 900; font-size: 16px; color: var(--ap-gold); }
.ap-st-row.is-me { background: linear-gradient(135deg, rgba(200,168,106,0.12), rgba(142,42,57,0.06)); }
.ap-st-row.is-me .ap-st-name { color: var(--ap-gold-light); }

/* Latest news */
.ap-news { display: flex; flex-direction: column; gap: 10px; }
.ap-news-item {
	display: flex; align-items: center; gap: 12px;
	background: var(--ap-surf); border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius); overflow: hidden; padding: 8px;
	transition: transform 0.15s ease, border-color 0.15s ease;
}
.ap-news-item:active { transform: scale(0.98); }
.ap-news-item:hover { border-color: rgba(200,168,106,0.4); }
.ap-news-thumb {
	width: 76px; height: 60px; flex-shrink: 0; border-radius: 10px;
	background: var(--ap-surf-2) center/cover no-repeat;
	display: flex; align-items: center; justify-content: center; color: var(--ap-muted); font-size: 20px;
}
.ap-news-body { flex: 1; min-width: 0; }
.ap-news-title { display: block; font-size: 13px; font-weight: 700; color: var(--ap-text); line-height: 1.4; max-height: 2.8em; overflow: hidden; }
.ap-news-date { display: block; font-size: 10.5px; color: var(--ap-muted); margin-top: 5px; }
.ap-news-date i { color: var(--ap-gold); margin-left: 3px; }

/* ============================================================
 *  SITE FOOTER
 * ============================================================ */
.ap-footer {
	background: var(--ap-bg-2);
	border-top: 1px solid var(--ap-border);
	padding: 26px 18px 22px;
	text-align: center;
}
.ap-footer-brand { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 10px; }
.ap-footer-logo { height: 38px; width: auto; object-fit: contain; }
.ap-footer-brand .ap-brand-mark { font-size: 24px; }
.ap-footer-name { font-family: var(--ap-font-display); font-weight: 800; font-size: 16px; color: var(--ap-text); }
.ap-footer-desc { font-size: 12.5px; color: var(--ap-text-dim); line-height: 1.8; max-width: 460px; margin: 0 auto 18px; }
.ap-footer-social { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.ap-soc {
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--ap-surf); border: 1px solid var(--ap-border);
	display: flex; align-items: center; justify-content: center;
	color: var(--ap-text-dim); font-size: 16px;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ap-soc:hover { transform: translateY(-2px); background: var(--ap-burgundy); color: #fff; border-color: var(--ap-burgundy); }
.ap-footer-app { margin-bottom: 18px; }
.ap-footer-app-label { display: block; font-size: 11.5px; color: var(--ap-muted); margin-bottom: 9px; }
.ap-footer-app-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ap-footer-app-badges img { height: 42px; width: auto; border-radius: 8px; }
.ap-footer-copy { font-size: 11px; color: var(--ap-muted); padding-top: 16px; border-top: 1px solid var(--ap-border); }

/* The footer sits above the fixed tab bar; give it room. */
.ap-footer { margin-bottom: 0; }

/* ============================================================
 *  v1.3 — logo-only header, matches list, feed read-all
 * ============================================================ */

/* Header brand: logo only (no text). Make the logo a bit larger. */
.ap-brand-logo-only { flex: 0 0 auto; }
.ap-brand-logo-only .ap-brand-img,
.ap-brand-logo-only .custom-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; }
.ap-brand-logo-only .ap-brand-mark { font-size: 23px; }

/* Bottom tab emoji sizing (emoji icons matching the plugin) */
.ap-tab-ico { font-size: 20px; line-height: 1; }

/* "Mark all as read" link styled as a section action */
.ap-feed-readall {
	background: transparent; border: 1px solid var(--ap-border);
	color: var(--ap-gold); font-family: var(--ap-font);
	font-size: 11px; font-weight: 700; padding: 5px 11px;
	border-radius: 999px; cursor: pointer; white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.ap-feed-readall:hover { background: rgba(200,168,106,0.12); border-color: var(--ap-gold); }

/* ---- Upcoming matches list (each row + predict button) ---- */
.ap-matches { display: flex; flex-direction: column; gap: 11px; }
.ap-match {
	background: linear-gradient(150deg, var(--ap-surf), var(--ap-bg-2));
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
	padding: 14px 14px 12px;
	position: relative;
}
.ap-match.is-next { border-color: rgba(200,168,106,0.45); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.ap-match-flag {
	position: absolute; top: -9px; right: 14px;
	background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
	color: #2a1800; font-size: 9.5px; font-weight: 800;
	padding: 3px 11px; border-radius: 999px; box-shadow: var(--ap-shadow-gold);
}
.ap-match-round {
	text-align: center; font-size: 10.5px; font-weight: 700; color: var(--ap-gold);
	margin-bottom: 10px;
}
.ap-match-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ap-match-team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 40%; }
.ap-match-badge {
	width: 42px; height: 42px; border-radius: 50%;
	background: linear-gradient(135deg, var(--ap-burgundy), var(--ap-burgundy-dark));
	color: var(--ap-gold-light); display: flex; align-items: center; justify-content: center; font-size: 18px;
	box-shadow: 0 3px 10px rgba(142,42,57,0.3);
}
.ap-match-name { font-family: var(--ap-font-display); font-weight: 700; font-size: 12.5px; color: var(--ap-text); line-height: 1.2; text-align: center; }
.ap-match-vs {
	width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
	background: var(--ap-gold); color: #2a1800;
	font-family: var(--ap-font-display); font-weight: 900; font-size: 11px;
	display: flex; align-items: center; justify-content: center;
}
.ap-match-foot {
	display: flex; align-items: center; justify-content: space-between;
	margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--ap-border);
}
.ap-match-date { font-size: 11.5px; color: var(--ap-text-dim); }
.ap-match-date i { color: var(--ap-gold); margin-left: 4px; }
.ap-match-predict {
	display: inline-flex; align-items: center; gap: 6px;
	background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
	color: #2a1800; font-weight: 800; font-size: 12px;
	padding: 7px 16px; border-radius: 999px;
}
.ap-match-predict i { font-size: 11px; }

/* ============================================================
 *  v1.4 — Cinematic hero (EUT20 style) + richer member welcome
 * ============================================================ */

/* Page gets a subtle vertical richness behind the dark base */
body.ap-front .ap-main { background:
	radial-gradient(120% 60% at 50% 0%, rgba(142,42,57,0.18), transparent 60%),
	var(--ap-bg);
}

/* ---- GUEST cinematic hero ---- */
.ap-hero2 {
	position: relative;
	min-height: 460px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	isolation: isolate;
}
.ap-hero2-bg { position: absolute; inset: 0; z-index: 0; }
.ap-hero2.has-img .ap-hero2-bg {
	background-image: var(--ap-hero-img);
	background-size: cover; background-position: center top;
}
.ap-hero2.no-img .ap-hero2-bg {
	background:
		radial-gradient(circle at 78% 22%, rgba(200,168,106,0.30), transparent 45%),
		radial-gradient(circle at 20% 80%, rgba(142,42,57,0.55), transparent 55%),
		linear-gradient(160deg, var(--ap-burgundy-dark) 0%, #2a0d14 55%, var(--ap-bg) 120%);
}
/* Readability scrim — strong at the bottom (text), clearer at the top (image) */
.ap-hero2-scrim {
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(to top,
		var(--ap-bg) 0%,
		rgba(10, 6, 8,0.92) 22%,
		rgba(10, 6, 8,0.55) 48%,
		rgba(122,22,38,0.30) 78%,
		rgba(122,22,38,0.15) 100%);
}
/* Decorative motifs when no image */
.ap-hero2-motif { position: absolute; z-index: 1; color: rgba(200,168,106,0.10); pointer-events: none; }
.ap-hero2-motif i { font-size: 150px; }
.ap-hero2-motif { left: -28px; bottom: 84px; transform: rotate(-14deg); }
.ap-hero2-motif2 { left: auto; right: -10px; top: 50px; bottom: auto; transform: rotate(12deg); }
.ap-hero2-motif2 i { font-size: 96px; color: rgba(200,168,106,0.12); }

.ap-hero2-content { position: relative; z-index: 2; padding: 26px 20px 28px; width: 100%; }
.ap-hero2-badge {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 7px 15px; margin-bottom: 14px;
	background: rgba(200,168,106,0.14);
	border: 1px solid var(--ap-gold);
	color: var(--ap-gold);
	border-radius: 999px; font-size: 12px; font-weight: 800;
	backdrop-filter: blur(4px);
}
.ap-hero2-title {
	font-family: var(--ap-font-display);
	font-weight: 900; font-size: 38px; line-height: 1.08; color: #fff;
	margin-bottom: 12px;
	text-shadow: 0 3px 18px rgba(0,0,0,0.5);
}
.ap-hero2-hl { color: var(--ap-gold); }
.ap-hero2-desc {
	font-size: 14px; color: rgba(255,255,255,0.9); line-height: 1.7;
	margin-bottom: 18px; max-width: 92%;
	text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.ap-hero2-stats { display: flex; gap: 9px; margin-bottom: 20px; }
.ap-h2stat {
	flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
	background: rgba(20, 13, 16,0.55);
	border: 1px solid rgba(255,255,255,0.16);
	border-radius: 15px; padding: 12px 6px;
	backdrop-filter: blur(8px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.ap-h2stat-ico { color: var(--ap-gold); font-size: 16px; margin-bottom: 4px; }
.ap-h2stat-num { font-family: var(--ap-font-display); font-weight: 900; font-size: 24px; color: #fff; line-height: 1; }
.ap-h2stat-lbl { font-size: 11px; color: rgba(255,255,255,0.82); margin-top: 3px; }
.ap-hero2-cta {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%; padding: 15px 0;
	background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
	color: #2a1800; border-radius: 16px;
	font-family: var(--ap-font-display); font-weight: 900; font-size: 16px;
	box-shadow: 0 10px 28px rgba(200,168,106,0.45);
	transition: transform 0.15s ease;
}
.ap-hero2-cta:active { transform: scale(0.98); }

/* Entrance */
@keyframes ap-h2-up { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform:none; } }
.ap-hero2-content > * { animation: ap-h2-up 0.5s ease backwards; }
.ap-hero2-badge { animation-delay: 0.05s; }
.ap-hero2-title { animation-delay: 0.12s; }
.ap-hero2-desc { animation-delay: 0.2s; }
.ap-hero2-stats { animation-delay: 0.28s; }
.ap-hero2-cta { animation-delay: 0.36s; }

/* ---- MEMBER richer welcome ---- */
.ap-welcome2 {
	position: relative; overflow: hidden;
	padding: 22px 18px;
	background:
		radial-gradient(circle at 85% 10%, rgba(200,168,106,0.22), transparent 50%),
		linear-gradient(150deg, var(--ap-burgundy) 0%, var(--ap-burgundy-dark) 60%, #2a0d14 120%);
}
.ap-welcome2-overlay { position:absolute; inset:0; background: radial-gradient(circle at 50% 120%, rgba(0,0,0,0.3), transparent 60%); }
.ap-welcome2-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; }
.ap-welcome2-av {
	width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
	border: 2px solid var(--ap-gold);
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--ap-burgundy-light), var(--ap-burgundy-dark));
	box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.ap-welcome2-av .ap-avatar-img { width:100%; height:100%; object-fit:cover; }
.ap-welcome2-av .ap-avatar-letter { color:#fff; font-weight:800; font-size:21px; font-family:var(--ap-font-display); }
.ap-welcome2-greet { flex: 1; min-width: 0; }
.ap-welcome2-hi { display:block; font-size: 12.5px; color: rgba(255,255,255,0.85); }
.ap-welcome2-name {
	font-family: var(--ap-font-display); font-weight: 800; font-size: 22px; color: #fff; line-height: 1.15;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-welcome2-cta {
	flex-shrink: 0;
	display: inline-flex; align-items: center; gap: 7px;
	padding: 10px 16px; background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
	color: #2a1800; border-radius: 999px; font-weight: 800; font-size: 13px;
	box-shadow: 0 6px 16px rgba(200,168,106,0.4);
}

/* Desktop: a touch taller hero */
@media (min-width: 560px) {
	.ap-hero2 { min-height: 520px; }
	.ap-hero2-title { font-size: 42px; }
}

/* ============================================================
 *  v1.5 — embed plugin cards on the home page + stadium hero
 * ============================================================ */

/* Wrapper for plugin-styled blocks embedded in the home page. */
.ap-fp-embed { background: transparent; padding: 0; margin: 0; }
.ap-fp-embed .aj-match-compact { margin: 0 0 9px !important; }
.ap-fp-embed .aj-match-compact:last-child { margin-bottom: 0 !important; }

/* Highlight the next (first) match card. */
.ap-fp-embed .aj-match-compact.ap-match-next {
	border-color: rgba(200,168,106,0.55) !important;
	box-shadow: 0 6px 20px rgba(0,0,0,0.28) !important;
}

/* Our additions to the compact card foot (kickoff time + predict btn). */
.ap-cmp-time {
	display: inline-block; min-width: 46px; text-align: center;
	font-family: var(--ap-font-display); font-weight: 800; font-size: 13px;
	color: var(--ap-red); background: var(--ap-red-soft);
	border: 1px solid rgba(154,47,62,0.35); border-radius: 8px; padding: 5px 6px;
}
.ap-cmp-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ap-cmp-date { font-size: 11.5px; color: var(--ap-text-dim); }
.ap-cmp-predict {
	display: inline-flex; align-items: center; gap: 5px;
	background: linear-gradient(135deg, var(--ap-red), var(--ap-red-dark));
	color: #fff; font-weight: 800; font-size: 11.5px;
	padding: 6px 14px; border-radius: 999px; flex-shrink: 0;
}

/* Member hero variant: a touch shorter, content centered lower. */
.ap-hero2-member { min-height: 300px; }
.ap-hero2-member .ap-hero2-content { padding-bottom: 24px; }
.ap-hero2-member .ap-welcome2-content { margin-bottom: 16px; }
.ap-hero2-member .ap-welcome2-name { font-size: 24px; }
.ap-hero2-member .ap-welcome2-hi { color: rgba(255,255,255,0.9); }

/* ============================================================
 *  v1.6 — profile-style burgundy hero, creative prizes (PS5),
 *         save-all FAB lift, browse-all button
 * ============================================================ */

/* Lift the plugin's "save all" FAB above our bottom tab bar (no overlap). */
.aj-save-all-fab {
	bottom: calc(var(--ap-tabbar-h, 64px) + env(safe-area-inset-bottom, 0px) + 14px) !important;
	z-index: 940 !important;
}

/* ---- Profile-style hero (matches the plugin's burgundy identity) ---- */
.ap-phero {
	position: relative; overflow: hidden; isolation: isolate;
	min-height: 220px; display: flex; align-items: flex-end;
}
.ap-phero-guest { min-height: 440px; }
.ap-phero-img { position: absolute; inset: 0; z-index: 0; background: var(--ap-hero-img) center/cover no-repeat; }
/* Strong burgundy wash so it reads as the plugin's burgundy header. */
.ap-phero-scrim {
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(to top,
		var(--ap-bg) 0%,
		rgba(122,22,38,0.97) 26%,
		rgba(122,22,38,0.80) 52%,
		rgba(142,42,57,0.45) 82%,
		rgba(142,42,57,0.25) 100%);
}
.ap-phero-guest .ap-phero-scrim {
	background: linear-gradient(to top,
		var(--ap-bg) 0%,
		rgba(10, 6, 8,0.92) 20%,
		rgba(122,22,38,0.66) 52%,
		rgba(122,22,38,0.34) 100%);
}
.ap-phero-content { position: relative; z-index: 2; width: 100%; padding: 22px 18px 24px; }

/* Member identity */
.ap-phero-id { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.ap-phero-av {
	width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
	border: 2px solid var(--ap-gold); box-shadow: 0 6px 18px rgba(0,0,0,0.4);
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
}
.ap-phero-av .ap-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.ap-phero-av .ap-avatar-letter { color: #2a1800; font-weight: 800; font-size: 22px; font-family: var(--ap-font-display); }
.ap-phero-hi { display: block; font-size: 13px; color: rgba(255,255,255,0.88); }
.ap-phero-name {
	font-family: var(--ap-font-display); font-weight: 800; font-size: 23px; color: #fff; line-height: 1.15;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw;
	text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.ap-phero-cup {
	display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
	background: rgba(0,0,0,0.28); border: 1px solid rgba(200,168,106,0.5);
	color: var(--ap-gold); border-radius: 999px; padding: 7px 16px;
	font-family: var(--ap-font-display); font-weight: 800; font-size: 13px;
	backdrop-filter: blur(4px);
}
/* Guest hero text */
.ap-phero-title {
	font-family: var(--ap-font-display); font-weight: 900; font-size: 38px; line-height: 1.08; color: #fff;
	margin-bottom: 12px; text-shadow: 0 3px 16px rgba(0,0,0,0.5);
}
.ap-phero-hl { color: var(--ap-gold); }
.ap-phero-desc { font-size: 14px; color: rgba(255,255,255,0.92); line-height: 1.7; margin-bottom: 18px; max-width: 94%; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.ap-phero-cta {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
	padding: 15px 0; background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
	color: #2a1800; border-radius: 16px;
	font-family: var(--ap-font-display); font-weight: 900; font-size: 16px;
	box-shadow: 0 10px 26px rgba(200,168,106,0.45);
}
.ap-phero-cta:active { transform: scale(0.985); }

/* ---- Browse-all button (under the single match) ---- */
.ap-browse-all {
	display: flex; align-items: center; justify-content: center; gap: 9px;
	margin-top: 10px; padding: 13px 0;
	background: var(--ap-surf); border: 1px solid var(--ap-border);
	color: var(--ap-text); border-radius: 14px; font-weight: 700; font-size: 14px;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.ap-browse-all:hover { border-color: var(--ap-gold); background: rgba(200,168,106,0.06); }
.ap-browse-all i { color: var(--ap-gold); }

/* ---- Creative prizes block with PlayStation image ---- */
.ap-prizes2 {
	position: relative; overflow: hidden;
	margin: 4px 14px 18px; padding: 22px 18px 18px;
	border-radius: var(--ap-radius-lg);
	background:
		radial-gradient(120% 80% at 80% 0%, rgba(200,168,106,0.16), transparent 55%),
		linear-gradient(155deg, var(--ap-burgundy) 0%, var(--ap-burgundy-dark) 60%, #2a0d14 120%);
	border: 1px solid rgba(200,168,106,0.28);
}
.ap-prizes2-glow { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(200,168,106,0.3), transparent 70%); filter: blur(20px); }
.ap-prizes2-head { position: relative; z-index: 1; margin-bottom: 16px; }
.ap-prizes2-kicker { font-size: 11px; font-weight: 800; color: var(--ap-gold); letter-spacing: 1px; }
.ap-prizes2-title { font-family: var(--ap-font-display); font-weight: 900; font-size: 24px; color: #fff; line-height: 1.1; margin-top: 2px; }
.ap-prizes2-grand {
	position: relative; z-index: 1;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.12);
	border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; overflow: hidden;
}
.ap-prizes2-tag {
	display: inline-block; font-size: 10px; font-weight: 800; color: #2a1800;
	background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-dark));
	padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.ap-prizes2-grand-name { font-family: var(--ap-font-display); font-weight: 900; font-size: 22px; color: #fff; line-height: 1.1; }
.ap-prizes2-grand-sub { font-size: 12px; color: rgba(255,255,255,0.8); margin-top: 3px; }
.ap-prizes2-ps { width: 120px; height: auto; flex-shrink: 0; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.5)); }
.ap-prizes2-row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-prizes2-card {
	background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.1);
	border-radius: 13px; padding: 14px 12px; text-align: center;
}
.ap-prizes2-amt { font-family: var(--ap-font-display); font-weight: 900; font-size: 26px; color: var(--ap-gold); line-height: 1; }
.ap-prizes2-amt span { font-size: 13px; }
.ap-prizes2-ico { font-size: 22px; }
.ap-prizes2-lbl { font-size: 11.5px; color: rgba(255,255,255,0.85); margin-top: 6px; }
.ap-prizes2-link { position: relative; z-index: 1; display: block; text-align: center; margin-top: 14px; color: var(--ap-gold); font-weight: 700; font-size: 12.5px; }

@media (min-width: 560px) { .ap-phero-guest { min-height: 500px; } }

/* ============================================================
 *  v1.7 — poster hero, tournament facts, tagline, drawer logo
 * ============================================================ */

/* Drawer logo image */
.ap-drawer-logo { width: 40px; height: 40px; border-radius: 9px; object-fit: contain; flex-shrink: 0; }

/* ---- Poster mode (uploaded artwork shown in full) ---- */
.ap-phero-poster { position: relative; padding: 0 0 4px; }
.ap-phero-poster-img {
	display: block; width: 100%; height: auto;
	border-bottom-left-radius: 22px; border-bottom-right-radius: 22px;
	box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}
.ap-phero-poster-cta {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	margin: 14px 16px 0;
}

/* ---- Tournament facts strip (poster-inspired) ---- */
.ap-facts {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
	margin: 16px 14px 0;
}
.ap-fact {
	display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
	padding: 14px 8px;
	border-radius: 16px;
	background:
		radial-gradient(120% 100% at 50% 0%, rgba(200,168,106,0.10), transparent 70%),
		linear-gradient(160deg, var(--ap-burgundy) 0%, var(--ap-burgundy-dark) 75%, #2a0d14 130%);
	border: 1px solid rgba(200,168,106,0.30);
	box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}
.ap-fact-ico { color: var(--ap-gold); font-size: 17px; margin-bottom: 3px; }
.ap-fact-big { font-family: var(--ap-font-display); font-weight: 900; font-size: 19px; color: #fff; line-height: 1.1; }
.ap-fact-sub { font-size: 10.5px; color: rgba(255,255,255,0.82); line-height: 1.25; }

/* ---- Tagline strip ---- */
.ap-tagline {
	display: flex; align-items: center; justify-content: center; gap: 9px;
	margin: 12px 14px 4px; padding: 13px 14px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(200,168,106,0.16), rgba(200,168,106,0.05));
	border: 1px dashed rgba(200,168,106,0.5);
	color: var(--ap-gold-light);
	font-family: var(--ap-font-display); font-weight: 800; font-size: 14.5px; text-align: center;
}
.ap-tagline i { color: var(--ap-gold); }

/* ============================================================
 *  v1.8 — CLEAN DARK HOME (single crimson accent, no gold)
 *  Inspired by elegant app dashboards; matches FP inner pages.
 * ============================================================ */
:root{ --ap-red:#9a3140; --ap-red-dark:#4a141d; --ap-red-soft:rgba(154,47,62,0.14); }

.aph{ padding: 4px 0 26px; }
.aph section{ margin-left: 16px; margin-right: 16px; }

/* ---- Hero (greeting / value) ---- */
.aph-hero{ position: relative; overflow: hidden; padding: 26px 4px 8px; margin: 0 16px; }
.aph-hero-glow{
	position: absolute; top: -70px; inset-inline-start: -40px; width: 230px; height: 230px; z-index: 0;
	background: radial-gradient(circle, rgba(154,47,62,0.30), transparent 70%); filter: blur(8px); pointer-events: none;
}
.aph-hi{ position: relative; z-index: 1; display: block; font-size: 14px; color: rgba(255,255,255,0.62); margin-bottom: 6px; font-weight: 600; }
.aph-title{ position: relative; z-index: 1; font-family: var(--ap-font-display); font-weight: 900; font-size: 30px; line-height: 1.12; color: #fff; margin-bottom: 12px; }
.aph-title-hl{ color: var(--ap-red); }
.aph-desc{ position: relative; z-index: 1; font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; margin: -4px 0 14px; }

/* ---- Primary CTA (crimson) ---- */
.aph-cta{
	position: relative; z-index: 1;
	display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
	padding: 16px 20px; border-radius: 16px;
	background: linear-gradient(135deg, var(--ap-red) 0%, var(--ap-red-dark) 100%);
	color: #fff; font-family: var(--ap-font-display); font-weight: 800; font-size: 16px;
	box-shadow: 0 12px 28px rgba(154,47,62,0.38);
	transition: transform .15s ease, box-shadow .15s ease;
}
.aph-cta span{ display: inline-flex; align-items: center; gap: 9px; }
.aph-cta:active{ transform: scale(0.985); }
.aph-cta .fa-chevron-left{ opacity: 0.9; font-size: 14px; }

/* ---- Quick tiles (4-up) ---- */
.aph-quick{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.aph-q{
	display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center;
	padding: 16px 6px; border-radius: 18px;
	background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08);
	transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.aph-q:active{ transform: scale(0.96); }
.aph-q:hover{ border-color: rgba(154,47,62,0.5); background: var(--ap-red-soft); }
.aph-q-ico{
	width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
	background: var(--ap-red-soft); color: var(--ap-red); font-size: 19px;
}
.aph-q-lbl{ font-size: 12px; font-weight: 700; color: #e9ebf2; }

/* ---- Section headers ---- */
.aph-sec{ margin-top: 26px; }
.aph-sec-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.aph-sec-title{ font-family: var(--ap-font-display); font-weight: 800; font-size: 17px; color: #fff; display: inline-flex; align-items: center; gap: 9px; }
.aph-sec-title i{ color: var(--ap-red); font-size: 16px; }
.aph-sec-link{ font-size: 12.5px; font-weight: 700; color: var(--ap-red); white-space: nowrap; background: none; border: none; cursor: pointer; }

/* ---- Browse-all (outline) ---- */
.aph-browse{
	display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 10px; padding: 13px 0;
	background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09);
	color: #e9ebf2; border-radius: 14px; font-weight: 700; font-size: 13.5px;
	transition: border-color .15s ease, background .15s ease;
}
.aph-browse:hover{ border-color: rgba(154,47,62,0.5); background: var(--ap-red-soft); }
.aph-browse i{ color: var(--ap-red); }

/* ---- Admin notifications feed ---- */
.aph-feed{ display: flex; flex-direction: column; gap: 10px; }
.aph-feed-item{
	display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px;
	background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08); position: relative;
}
.aph-feed-item.is-new{ border-color: rgba(154,47,62,0.45); }
.aph-feed-item.is-new::after{ content: ''; position: absolute; top: 14px; inset-inline-end: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--ap-red); }
.aph-feed-ico{ width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--ap-red-soft); color: var(--ap-red); font-size: 16px; }
.aph-feed-body{ display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.aph-feed-text{ font-weight: 700; font-size: 14px; color: #fff; }
.aph-feed-msg{ font-size: 12.5px; color: rgba(255,255,255,0.62); line-height: 1.5; }
.aph-feed-time{ font-size: 11px; color: rgba(255,255,255,0.45); display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; }
.aph-feed-tag{ align-self: flex-start; font-size: 10px; font-weight: 800; color: var(--ap-red); background: var(--ap-red-soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }

/* ---- Guest facts ---- */
.aph-facts{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.aph-fact{
	display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 16px 8px; border-radius: 16px;
	background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08);
}
.aph-fact-big{ font-family: var(--ap-font-display); font-weight: 900; font-size: 19px; color: var(--ap-red); line-height: 1.1; }
.aph-fact-sub{ font-size: 10.5px; color: rgba(255,255,255,0.62); line-height: 1.25; }

/* ---- Prizes ---- */
.aph-prize{
	border-radius: 20px; overflow: hidden; padding: 18px;
	background:
		radial-gradient(120% 90% at 85% 0%, rgba(154,47,62,0.30), transparent 55%),
		linear-gradient(160deg, #1c1322 0%, #161422 70%, #120e16 130%);
	border: 1px solid rgba(154,47,62,0.30);
}
.aph-prize-main{ display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.aph-prize-ps{ width: 118px; height: auto; flex-shrink: 0; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.5)); }
.aph-prize-tag{ display: inline-block; font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--ap-red), var(--ap-red-dark)); padding: 3px 11px; border-radius: 999px; margin-bottom: 8px; }
.aph-prize-name{ font-family: var(--ap-font-display); font-weight: 900; font-size: 22px; color: #fff; line-height: 1.1; }
.aph-prize-sub{ font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.aph-prize-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aph-prize-mini{ background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.08); border-radius: 13px; padding: 13px 12px; text-align: center; }
.aph-prize-mini-big{ display: block; font-family: var(--ap-font-display); font-weight: 900; font-size: 18px; color: var(--ap-red); line-height: 1.1; }
.aph-prize-mini-lbl{ display: block; font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 5px; }

/* ---- Poster mode ---- */
.aph-poster{ position: relative; margin: 0 16px; }
.aph-poster-img{ display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 14px 36px rgba(0,0,0,0.45); }
.aph-poster-cta{ margin-top: 14px; }

/* ---- App chrome: shift gold accents to crimson for cohesion ---- */
.ap-tab.is-active{ color: var(--ap-red) !important; }
.ap-tab.is-active::before{ background: var(--ap-red) !important; }
.ap-login-btn{
	background: linear-gradient(135deg, var(--ap-red), var(--ap-red-dark)) !important;
	color: #fff !important; box-shadow: 0 6px 16px rgba(154,47,62,0.4) !important;
}
.ap-notif-dot{ background: var(--ap-red) !important; }

/* ============================================================
 *  v2.1 — HOME (مطابق للصورة المرجعية: مسطّح، بوردو غامق،
 *  الذهبي فقط على الميداليات/الكؤوس، رعاة شعارات بسيطة بلا أسماء)
 *  كل أسماء الـ classes محفوظة كما هي — تغيير بصري فقط.
 * ============================================================ */
.aph2{ --acc:#9a3140; --acc-d:#4a141d; padding-bottom: 26px; }
.aph2 *{ box-sizing: border-box; }

/* ---- Immersive branded header (صورة ملعب خلف الكأس) ---- */
.aph2-hero{ position: relative; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; isolation: isolate; }
.aph2-hero-bg{ position: absolute; inset: 0; z-index: 0; background: var(--aph2-bg, radial-gradient(140% 90% at 75% 30%, rgba(212,162,58,.16), transparent 50%), linear-gradient(115deg,#3a1118 0%,#220a10 45%,#120608 100%)) center/cover no-repeat; transform: scale(1.03); }
.aph2-hero-scrim{ position: absolute; inset: 0; z-index: 1;
	background:
		radial-gradient(110% 70% at 70% 25%, rgba(125,35,48,0.28), transparent 55%),
		linear-gradient(to top, #0a0709 3%, rgba(10,7,9,0.84) 32%, rgba(10,7,9,0.42) 64%, rgba(10,7,9,0.25) 100%);
}
.aph2-hero-content{ position: relative; z-index: 2; width: 100%; padding: 26px 18px 24px; text-align: center; }
.aph2-logo{ display: block; max-width: 220px; max-height: 140px; width: auto; height: auto; margin: 0 auto 12px; filter: drop-shadow(0 8px 22px rgba(0,0,0,0.5)); }
.aph2-logo-fallback{ font-family: var(--aj-font, 'Cairo'); font-weight: 900; font-size: 25px; color: #fff; margin-bottom: 12px; text-shadow: 0 3px 14px rgba(0,0,0,0.6); }
.aph2-welcome{ color: #fff; font-size: 15px; margin: 0 0 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.aph2-welcome strong{ color: #f0c0c7; }
.aph2-tagline{ color: rgba(255,255,255,0.92); font-size: 13px; line-height: 1.65; margin: 0 auto 16px; max-width: 300px; text-shadow: 0 2px 8px rgba(0,0,0,0.55); }
.aph2-cta{
	display: inline-flex; align-items: center; gap: 8px; justify-content: center;
	padding: 12px 24px; border-radius: 13px;
	background: linear-gradient(180deg, var(--aj-brand-light,#9a3140), var(--aj-brand,#7d2330));
	color: #fff !important; font-family: var(--aj-font,'Cairo'); font-weight: 800; font-size: 14px;
	box-shadow: 0 10px 24px -8px rgba(125,35,48,0.5); text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.aph2-cta:active{ transform: scale(0.97); }
.aph2-cta:hover{ filter: brightness(1.06); }
.aph2-cta-ico{ font-size: 15px; }
.aph2-cta-arrow{ font-size: 17px; font-weight: 700; opacity: 0.85; line-height: 1; }

/* Google one-click (guest) */
.aph2-google{
	display: inline-flex; align-items: center; gap: 9px; justify-content: center;
	margin-top: 10px; padding: 10px 20px; border-radius: 13px;
	background: #fff; color: #3c4043 !important; font-family: var(--aj-font,'Cairo');
	font-weight: 700; font-size: 13.5px; text-decoration: none !important;
	box-shadow: 0 6px 16px rgba(0,0,0,0.28); transition: transform .15s ease, box-shadow .15s ease;
}
.aph2-google:active{ transform: scale(0.97); }
.aph2-google-g{ display: inline-flex; }
.aph2-google-g svg{ display: block; }

/* ---- Body wrapper ---- */
.aph2-body{ padding: 0 14px; margin-top: 20px; }
.aph2 .aj-quick-links{ padding: 0 0 2px !important; margin-bottom: 22px; }

/* ---- Section scaffold ---- */
.aph2-sec{ margin-bottom: 22px; }
.aph2-sec-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.aph2-sec-title{ font-family: var(--aj-font,'Cairo'); font-weight: 800; font-size: 15px; color: var(--aj-text,#fff); margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.aph2-sec-link{ font-size: 11.5px; font-weight: 700; color: var(--aj-brand-light,#9a3140); white-space: nowrap; background: none; border: none; cursor: pointer; text-decoration: none; }

/* ---- Prize showcase (3 بطاقات، الأولى بارزة في النص — مثل الصورة) ---- */
.aph2-prizes .aph2-sec-head{ justify-content: center; }
.aph2-prizes .aph2-sec-title{ color: var(--aj-brand-light,#9a3140); }
/* صف الجوائز: نحوّل grand + round إلى شبكة 3 أعمدة عبر flex */
.aph2-prizes{ display: block; }
.aph2-grand{
	position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
	padding: 16px 12px; border-radius: 16px; margin: 0 0 12px;
	background: linear-gradient(180deg, var(--aj-brand-dark,#4a141d), #330d14);
	border: 1px solid var(--aj-brand-light,#9a3140);
	box-shadow: 0 0 24px -8px rgba(125,35,48,0.45);
}
.aph2-grand-glow{ position: absolute; inset-inline-end: -30px; top: -40px; width: 140px; height: 140px; background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 70%); filter: blur(12px); z-index: 0; }
.aph2-grand-img{ position: relative; z-index: 1; width: 96px; height: 96px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 12px 20px rgba(0,0,0,0.55)); }
.aph2-grand-emoji{ font-size: 56px; flex-shrink: 0; position: relative; z-index: 1; }
.aph2-grand-body{ position: relative; z-index: 1; }
.aph2-tag{ display: inline-block; font-size: 10px; font-weight: 800; color: #fff; background: rgba(0,0,0,0.30); padding: 3px 11px; border-radius: 999px; margin-bottom: 6px; }
.aph2-tag-soft{ color: #fff; background: rgba(0,0,0,0.25); }
.aph2-grand-name{ font-family: var(--aj-font,'Cairo'); font-weight: 900; font-size: 16px; color: #fff; margin: 0; line-height: 1.18; }
.aph2-grand-sub{ font-size: 11px; color: rgba(255,255,255,0.78); margin: 3px 0 0; }
.aph2-round-prize{ display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 14px 10px; border-radius: 16px; background: var(--aj-surf,rgba(255,255,255,0.04)); border: 1px solid var(--aj-border,rgba(255,255,255,0.06)); }
.aph2-money-img{ width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.4)); }
.aph2-money-emoji{ font-size: 40px; flex-shrink: 0; }
.aph2-round-body{}
.aph2-round-name{ font-family: var(--aj-font,'Cairo'); font-weight: 800; font-size: 13px; color: var(--aj-text,#fff); margin: 0; line-height: 1.2; }
.aph2-round-sub{ font-size: 10px; color: var(--aj-muted,rgba(255,255,255,0.55)); margin: 3px 0 0; line-height: 1.5; }
/* على الشاشات الضيقة الافتراضي عمودي؛ نجعل الجوائز صفاً أفقياً 3 أعمدة */
@media (min-width: 340px){
	.aph2-prizes-grid-row{ display: flex; gap: 9px; align-items: stretch; }
}

/* ---- آخر مباراة + Match tweaks (شرائح بوردو، بلا ذهبي) ---- */
.aph2-match{ margin: 0 !important; }
.aph2-time{ display: inline-block; min-width: 46px; text-align: center; font-family: var(--aj-font,'Cairo'); font-weight: 800; font-size: 13px; color: #fff; background: var(--aj-brand,#7d2330); border-radius: 8px; padding: 5px 8px; }
.aph2-match-foot{ display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.aph2-match-date{ font-size: 11.5px; color: var(--aj-muted,rgba(255,255,255,0.55)); }
.aph2-match-go{ display: inline-flex; align-items: center; gap: 5px; background: var(--aj-brand,#7d2330); color: #fff !important; font-weight: 800; font-size: 11.5px; padding: 7px 16px; border-radius: 10px; text-decoration: none; }

/* ---- Admin notifications ---- */
.aph2-feed{ display: flex; flex-direction: column; gap: 9px; }
.aph2-feed-item{ display: flex; align-items: flex-start; gap: 12px; padding: 13px; border-radius: 14px; background: var(--aj-surf,rgba(255,255,255,0.04)); border: 1px solid var(--aj-border,rgba(255,255,255,0.06)); position: relative; text-decoration: none; }
.aph2-feed-item.is-new{ border-color: rgba(154,49,64,0.45); }
.aph2-feed-item.is-new::after{ content:''; position: absolute; top: 14px; inset-inline-end: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--aj-brand-light,#9a3140); }
.aph2-feed-ico{ width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(125,35,48,0.16); color: var(--aj-brand-light,#9a3140); font-size: 16px; }
.aph2-feed-body{ display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.aph2-feed-text{ font-weight: 700; font-size: 14px; color: var(--aj-text,#fff); }
.aph2-feed-msg{ font-size: 12.5px; color: var(--aj-muted,rgba(255,255,255,0.55)); line-height: 1.5; }
.aph2-feed-time{ font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.aph2-feed-tag{ align-self: flex-start; font-size: 10px; font-weight: 800; color: var(--aj-brand-light,#9a3140); background: rgba(125,35,48,0.16); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }

@media (min-width: 560px){ .aph2-hero{ min-height: 340px; } .aph2-logo{ max-width: 260px; } }

/* ---- Footer v2 ---- */
.apf{ position: relative; overflow: hidden; margin-top: 8px; padding: 30px 20px calc(var(--ap-tabbar-h, 64px) + env(safe-area-inset-bottom, 0px) + 26px); background: linear-gradient(180deg, transparent, rgba(125,35,48,0.06) 40%, rgba(125,35,48,0.11)); border-top: 1px solid rgba(255,255,255,0.06); text-align: center; }
.apf-glow{ position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%); width: 280px; height: 160px; background: radial-gradient(circle, rgba(154,49,64,0.24), transparent 70%); filter: blur(20px); pointer-events: none; }
.apf-inner{ position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }
.apf-logo{ max-width: 150px; max-height: 86px; width: auto; height: auto; margin: 0 auto 12px; display: block; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.4)); }
.apf-logo-fallback{ font-family: var(--ap-font-display); font-weight: 900; font-size: 20px; color: #fff; margin-bottom: 12px; }
.apf-credit{ font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.7; margin: 0 auto 16px; max-width: 320px; }
.apf-links{ display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 16px; }
.apf-links a{ font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.8); text-decoration: none; transition: color .15s ease; }
.apf-links a:hover{ color: var(--ap-red, #9a3140); }
.apf-social{ display: flex; justify-content: center; gap: 11px; margin-bottom: 18px; }
.apf-soc{ width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; font-size: 16px; transition: all .15s ease; text-decoration: none; }
.apf-soc:hover{ background: var(--ap-red, #9a3140); border-color: var(--ap-red, #9a3140); transform: translateY(-2px); }
.apf-app{ display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.apf-app img{ height: 38px; width: auto; }
.apf-divider{ height: 1px; background: rgba(255,255,255,0.08); margin: 4px auto 14px; max-width: 200px; }
.apf-copy{ font-size: 11.5px; color: rgba(255,255,255,0.45); }

/* ---- Countdown ---- */
.aph2-cd{ margin: 0 0 18px; padding: 16px; border-radius: 14px; background: linear-gradient(160deg, rgba(125,35,48,0.16), rgba(125,35,48,0.04)); border: 1px solid rgba(154,49,64,0.3); text-align: center; position: relative; overflow: hidden; }
.aph2-cd.has-img{ background: linear-gradient(105deg, rgba(10,7,9,0.96) 30%, rgba(10,7,9,0.55) 70%, rgba(10,7,9,0.30)), var(--aph2-cd-img) center/cover no-repeat; border-color: rgba(154,49,64,0.4); }
.aph2-cd.has-img .aph2-cd-grid{ position: relative; z-index: 1; }
.aph2-cd-head{ display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.aph2-cd-title{ font-family: var(--aj-font,'Cairo'); font-weight: 800; font-size: 14px; color: var(--aj-text,#fff); }
.aph2-cd-match{ font-size: 12px; color: var(--aj-brand-light,#9a3140); font-weight: 700; }
.aph2-cd-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.aph2-cd-box{ background: rgba(0,0,0,0.25); border: 1px solid var(--aj-border,rgba(255,255,255,0.07)); border-radius: 12px; padding: 11px 4px; display: flex; flex-direction: column; gap: 3px; }
.aph2-cd-num{ font-family: var(--aj-font,'Cairo'); font-weight: 900; font-size: 24px; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.aph2-cd-unit{ font-size: 10.5px; color: var(--aj-muted,rgba(255,255,255,0.55)); }
.aph2-cd-live{ font-family: var(--aj-font,'Cairo'); font-weight: 800; font-size: 16px; color: var(--aj-brand-light,#9a3140); padding: 6px; }

/* ---- Remaining-to-predict ---- */
.aph2-progress-link{ display: block; text-decoration: none; margin-bottom: 20px; }
.aph2-progress-link .aj-progress{ margin: 0 !important; }

/* ---- Featured "match of the round" (بوردو، بلا ذهبي) ---- */
.aph2-featured-sec{ margin-bottom: 22px; }
.aph2-featured{
	position: relative; overflow: hidden; border-radius: 16px; padding: 18px;
	background: linear-gradient(160deg, var(--aj-brand,#7d2330) 0%, var(--aj-brand-dark,#4a141d) 60%, #330d14 125%);
	border: 1px solid var(--aj-brand-light,#9a3140);
	box-shadow: 0 14px 34px -12px rgba(125,35,48,0.5);
}
.aph2-featured.has-img{
	background: linear-gradient(160deg, rgba(125,35,48,0.92) 0%, rgba(74,20,29,0.88) 55%, rgba(51,13,20,0.92) 125%), var(--aph2-feat-img) center/cover no-repeat;
}
.aph2-featured-glow{ position: absolute; top: -55px; inset-inline-start: 50%; transform: translateX(-50%); width: 240px; height: 160px; background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%); filter: blur(16px); z-index: 0; }
.aph2-featured-rays{ display: none; }
.aph2-featured > *:not(.aph2-featured-glow):not(.aph2-featured-rays){ position: relative; z-index: 1; }
.aph2-featured-head{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.aph2-featured-badge{ font-family: var(--aj-font,'Cairo'); font-weight: 800; font-size: 12px; color: #fff; background: rgba(0,0,0,0.28); padding: 6px 14px; border-radius: 999px; }
.aph2-featured-mult{ font-family: var(--aj-font,'Cairo'); font-weight: 900; font-size: 28px; color: #fff; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.4); display: inline-flex; align-items: baseline; gap: 4px; }
.aph2-featured-mult small{ font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.82); }
.aph2-featured-round{ font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.72); margin-bottom: 12px; }
.aph2-featured-teams{ display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.aph2-ft-team{ display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.aph2-ft-flag{ width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.aph2-ft-flag img{ width: 44px; height: 44px; border-radius: 8px; object-fit: cover; box-shadow: 0 3px 8px rgba(0,0,0,0.35); }
.aph2-ft-name{ font-family: var(--aj-font,'Cairo'); font-weight: 800; font-size: 14px; color: #fff; text-align: center; line-height: 1.3; }
.aph2-ft-vs{ flex-shrink: 0; padding-top: 7px; }
.aph2-ft-vs span{ display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,0.30); border: 1px solid rgba(255,255,255,0.18); font-size: 11px; font-weight: 800; color: #fff; }
.aph2-featured-meta{ text-align: center; margin-bottom: 10px; }
.aph2-featured-date{ font-size: 12px; color: rgba(255,255,255,0.85); }
.aph2-featured-text{ font-size: 13px; color: #fff; line-height: 1.6; text-align: center; margin: 0 0 14px; font-weight: 600; opacity: .92; }
.aph2-featured-cta{ display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; background: #fff; color: #4a141d !important; font-family: var(--aj-font,'Cairo'); font-weight: 800; font-size: 14px; text-decoration: none !important; box-shadow: 0 6px 16px rgba(0,0,0,0.28); transition: transform .15s ease; }
.aph2-featured-cta:active{ transform: scale(0.98); }
.aph2-ft-flag .aj-flag-initial{ width: 44px; height: 44px; font-size: 17px; }

/* ---- Sponsors (شعارات بسيطة فقط، بلا أسماء — شبكة 4 مثل الصورة) ---- */
.aph2-sponsors-sec{ margin-bottom: 22px; }
.aph2-sponsors{ position: relative; overflow: hidden; border-radius: 0; background: transparent; border: none; padding: 0; }
.aph2-sponsors.is-marquee::before, .aph2-sponsors.is-marquee::after{ display: none; }
.aph2-sponsors-track{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 0; width: 100%; animation: none !important; }
.aph2-sponsors.is-static .aph2-sponsors-track{ width: 100%; }
.aph2-sponsor{ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; flex: none; min-width: 0; padding: 0; text-decoration: none; }
.aph2-sponsor-logo{ height: 56px; width: 100%; object-fit: contain; background: var(--aj-surf,rgba(255,255,255,0.04)); border: 1px solid var(--aj-border,rgba(255,255,255,0.06)); border-radius: 13px; padding: 10px; box-shadow: none; }
.aph2-sponsor-ph{ width: 100%; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--aj-surf,rgba(255,255,255,0.04)); border: 1px solid var(--aj-border,rgba(255,255,255,0.06)); border-radius: 13px; }
/* إخفاء أسماء الرعاة (الصورة: شعارات فقط) */
.aph2-sponsor-name{ display: none; }
.aph2-sponsor-round-cap{ display: none; }
@media (prefers-reduced-motion: reduce){ .aph2-sponsors.is-marquee .aph2-sponsors-track{ animation: none; } }

/* ---- Official (general) sponsor — شعارات بسيطة بلا أسماء ---- */
.aph2-official-wrap{ position: relative; margin-bottom: 12px; padding: 0; border-radius: 0; background: transparent; border: none; text-align: center; }
.aph2-official-label{ display: none; }
.aph2-official-row{ display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; gap: 9px; }
.aph2-official{ display: flex; flex-direction: column; align-items: center; gap: 0; text-decoration: none; }
.aph2-official-logo{ height: 56px; width: 100%; object-fit: contain; background: var(--aj-surf,rgba(255,255,255,0.04)); border: 1px solid var(--aj-border,rgba(255,255,255,0.06)); border-radius: 13px; padding: 10px; box-shadow: none; }
.aph2-official-ph{ width: 100%; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--aj-surf,rgba(255,255,255,0.04)); border: 1px solid var(--aj-border,rgba(255,255,255,0.06)); border-radius: 13px; }
.aph2-official-name{ display: none; }
.aph2-rounds-label{ display: block; font-size: 11px; font-weight: 700; color: var(--aj-muted,rgba(255,255,255,0.55)); margin: 10px 0 8px 2px; }

/* ---- Push opt-in: bell-panel button ---- */
.ap-push-cta{ display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 24px); margin: 10px 12px 4px; padding: 11px 14px; border: none; cursor: pointer; border-radius: 12px; background: linear-gradient(135deg, var(--ap-red, #9a3140), var(--ap-red-dark, #4a141d)); color: #fff; font-family: var(--ap-font-display); font-weight: 800; font-size: 13.5px; transition: transform .15s ease, filter .15s ease; }
.ap-push-cta:hover{ filter: brightness(1.06); }
.ap-push-cta:active{ transform: scale(0.98); }
.ap-push-cta.is-on{ background: rgba(34,197,94,0.16); color: #34d399; cursor: default; }
.ap-push-cta-ico{ display: inline-flex; }

/* ---- Push opt-in: home banner ---- */
.aph2-push-banner{ display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 13px 14px; border-radius: 14px; background: linear-gradient(150deg, rgba(125,35,48,0.18), rgba(125,35,48,0.05)); border: 1px solid rgba(154,49,64,0.4); }
.aph2-push-ico{ font-size: 24px; flex-shrink: 0; }
.aph2-push-text{ display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.aph2-push-text strong{ font-family: var(--aj-font,'Cairo'); font-weight: 800; font-size: 14px; color: var(--aj-text,#fff); }
.aph2-push-text span{ font-size: 11.5px; color: var(--aj-muted,rgba(255,255,255,0.62)); line-height: 1.45; }
.aph2-push-go{ flex-shrink: 0; border: none; cursor: pointer; padding: 9px 16px; border-radius: 999px; background: linear-gradient(135deg, var(--aj-brand-light,#9a3140), var(--aj-brand-dark,#4a141d)); color: #fff; font-family: var(--aj-font,'Cairo'); font-weight: 800; font-size: 13px; }
.aph2-push-go:active{ transform: scale(0.97); }
.aph2-push-x{ flex-shrink: 0; border: none; background: transparent; color: var(--aj-muted,rgba(255,255,255,0.55)); font-size: 14px; cursor: pointer; padding: 4px 6px; line-height: 1; }
.aph2-push-x:hover{ color: #fff; }

/* ---- Floating "install app" pill ---- */
.aj-install-fab{ position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--ap-tabbar-h,64px) + env(safe-area-inset-bottom,0px) + 12px); z-index: 1200; display: flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--ap-red,#9a3140), var(--ap-red-dark,#4a141d)); border-radius: 999px; padding: 4px 4px 4px 8px; box-shadow: 0 12px 30px rgba(125,35,48,0.5); animation: aj-fab-in .3s ease; }
@keyframes aj-fab-in{ from{ opacity: 0; transform: translate(-50%, 16px); } to{ opacity: 1; transform: translate(-50%, 0); } }
.aj-install-fab-btn{ border: none; background: none; color: #fff; font-family: var(--ap-font-display,'Cairo'); font-weight: 800; font-size: 13.5px; cursor: pointer; padding: 9px 10px; display: inline-flex; align-items: center; gap: 8px; }
.aj-install-fab-btn i{ font-size: 14px; }
.aj-install-fab-x{ border: none; background: rgba(255,255,255,0.22); color: #fff; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 11px; line-height: 1; flex-shrink: 0; }
.aj-install-fab-x:hover{ background: rgba(255,255,255,0.35); }

/* ---- Install instruction sheet ---- */
.aj-sheet-ov{ position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.62); display: flex; align-items: flex-end; justify-content: center; }
.aj-sheet{ width: 100%; max-width: 460px; background: #160d10; border: 1px solid rgba(255,255,255,0.1); border-bottom: none; border-radius: 18px 18px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom,0px)); position: relative; color: #fff; box-shadow: 0 -10px 40px rgba(0,0,0,0.5); animation: aj-sheet-up .26s ease; }
@keyframes aj-sheet-up{ from{ transform: translateY(100%); } to{ transform: translateY(0); } }
.aj-sheet-x{ position: absolute; top: 12px; inset-inline-end: 14px; background: none; border: none; color: rgba(255,255,255,0.6); font-size: 16px; cursor: pointer; }
.aj-sheet-title{ font-family: var(--ap-font-display,'Cairo'); font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.aj-sheet-steps{ margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 11px; }
.aj-sheet-steps li{ font-size: 14px; line-height: 1.65; color: #e9ebf2; }
.aj-sheet-steps b{ color: #fff; }
.aj-sheet-ic{ font-size: 15px; }

/* Remove the plugin's floating "back to top" button */
.aj-fab-up, .aj-fab.aj-fab-up { display: none !important; }
/* Keep the bottom tab bar pinned (no auto-hide) */
.ap-tabbar { transform: none !important; }
