/* ACCMAA — خلفيات بصرية للداشبورد والهيدر والاختيارات */

:root {
    --accmaa-dash-bg: url('../images/visual-library/backgrounds/site-platform-bg.svg');
    --accmaa-topbar-bg: url('../images/visual-library/header/topbar-premium.svg');
    --accmaa-choices-banner: url('../images/visual-library/header/choices-banner.svg');
    --accmaa-hero-scene: url('../images/visual-library/header/hero-accounting.svg');
}

/* ─── Topbar visual layer ─── */
.topbar-premium { position: relative; overflow: visible; }
.topbar-visual-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.72;
    overflow: hidden;
}
.topbar-header-slider .topbar-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
    will-change: opacity;
}
.topbar-header-slider .topbar-slide.is-active { opacity: 1; }
.topbar-visual-bg img:not(.topbar-slide) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.topbar-premium .topbar-shell,
.topbar-premium .topbar-accent-bar { position: relative; z-index: 1; }
body.guest-mode.premium-ui .topbar-premium:not(.is-scrolled) {
    background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(248,250,252,0.76) 100%) !important;
    border-bottom: 1px solid rgba(10,54,105,0.06);
    box-shadow: 0 4px 24px rgba(10,54,105,0.06);
}
body.guest-mode.premium-ui .topbar-premium.has-header-slider:not(.is-scrolled) {
    background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(248,250,252,0.45) 100%) !important;
}
body.guest-mode.premium-ui .topbar-premium.has-header-slider:not(.is-scrolled) .topbar-visual-bg { opacity: 1; }
body.guest-mode.premium-ui .topbar-premium.is-scrolled .topbar-visual-bg { opacity: 0.35; }
body.guest-mode.premium-ui .dash-landing .hero-photo-cinema {
    border-radius: 0 0 28px 28px;
    margin-bottom: 8px;
    box-shadow: 0 24px 64px rgba(6,31,61,0.25);
}

/* ─── Dashboard landing canvas ─── */
body.guest-mode.premium-ui .main-wrap {
    background: var(--accmaa-dash-bg) center top / cover no-repeat scroll;
}
.dash-landing {
    position: relative;
    isolation: isolate;
}
.dash-landing::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(244,247,251,0.15) 40%,
        rgba(244,247,251,0.45) 70%,
        rgba(244,247,251,0.65) 100%);
}
.dash-landing > * { position: relative; z-index: 1; }

/* ─── Hero — مشهد محاسبي ─── */
.hero-premium-scene-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.22;
    mix-blend-mode: soft-light;
    filter: saturate(1.1);
}
.hero-premium-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        rgba(6,31,61,0.92) 0%,
        rgba(10,54,105,0.78) 45%,
        rgba(6,31,61,0.88) 100%);
    pointer-events: none;
}
.hero-orbit-wrap::before {
    content: '';
    position: absolute;
    inset: -8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.18) 0%, transparent 68%);
    animation: heroGlowPulse 5s ease-in-out infinite alternate;
}
@keyframes heroGlowPulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 1; }
}
.hero-stats-premium {
    box-shadow: 0 20px 60px rgba(10,54,105,0.12);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212,175,55,0.15);
}

/* ─── Choices visual showcase ─── */
.choices-visual-section {
    position: relative;
    padding: 0 !important;
    margin: 48px 0;
    overflow: hidden;
}
.choices-visual-bg {
    position: absolute;
    inset: 0;
    background: var(--accmaa-choices-banner) center / cover no-repeat;
    opacity: 0.12;
    mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
}
.choices-visual-inner {
    padding: 48px 56px 56px;
    max-width: 1280px;
    margin: 0 auto;
}
.choices-visual-banner {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 28px;
    box-shadow: 0 16px 48px rgba(10,54,105,0.12);
    border: 1px solid rgba(212,175,55,0.2);
}
.choices-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 18px;
}
.choice-visual-tile {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(10,54,105,0.1);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
    padding: 0;
    min-height: 220px;
    box-shadow: 0 10px 32px rgba(10,54,105,0.08);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, border-color 0.3s;
}
.choice-visual-tile:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 24px 56px rgba(10,54,105,0.18);
}
.choice-visual-thumb {
    display: block;
    height: 188px;
    position: relative;
    overflow: hidden;
    background: #0a1628;
}
.choice-visual-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}
.choice-visual-tile:hover .choice-visual-thumb img { transform: scale(1.06); }
.hero-stats-premium { display: none !important; }
.choice-visual-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 18px;
    flex: 1;
}
.choice-visual-body i {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #0d4a8a);
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.choice-visual-body strong {
    color: var(--primary);
    font-size: 0.92rem;
    line-height: 1.35;
}
.choice-visual-body small {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Section blocks — عمق بصري ─── */
.dash-landing .section-block {
    position: relative;
}
.dash-landing .pillar-hub {
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.92) 100%);
    border-block: 1px solid rgba(10,54,105,0.05);
}
/* ─── Global realistic card backgrounds (platform-wide) ─── */
body.premium-ui .has-card-bg::before {
    opacity: 1;
    background-size: cover;
    background-position: center center;
}
body.premium-ui .pillar-card.has-card-bg::after,
body.premium-ui .explore-card.has-card-bg::after,
body.premium-ui .gift-card.has-card-bg::after,
body.premium-ui .portal-mod-card.has-card-bg::after,
body.premium-ui .pillar-mod-tile.has-card-bg::after,
body.premium-ui .pillar-explore-block.has-card-bg::after {
    background: linear-gradient(to bottom, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.38) 52%, rgba(255,255,255,0.75) 100%) !important;
}
body.premium-ui .main-inner.has-card-bg::after {
    background: linear-gradient(to bottom, rgba(255,255,255,0.55) 0%, rgba(248,250,252,0.88) 100%) !important;
}
body.premium-ui .icon-btn.has-card-bg::after {
    background: linear-gradient(to bottom, rgba(10,54,105,0.15) 0%, rgba(10,54,105,0.72) 100%) !important;
}
body.premium-ui .sections-panel.has-card-bg::after {
    background: linear-gradient(to bottom, rgba(10,54,105,0.45) 0%, rgba(10,54,105,0.88) 100%) !important;
}
body.premium-ui .icon-btn.has-card-bg:hover::after,
body.premium-ui .icon-btn.has-card-bg.active::after {
    background: linear-gradient(to bottom, rgba(212,175,55,0.2) 0%, rgba(10,54,105,0.68) 100%) !important;
}

.dash-landing .pillar-card.has-card-bg::after {
    background: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.72) 100%) !important;
}
.dash-landing .explore-card.has-card-bg::after {
    background: linear-gradient(to bottom, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.7) 55%, rgba(255,255,255,0.94) 100%) !important;
}
.dash-landing .explore-card,
.dash-landing .pillar-card {
    border-radius: 20px !important;
    border: 1px solid rgba(10,54,105,0.07) !important;
    box-shadow: 0 12px 36px rgba(10,54,105,0.08) !important;
}

/* ─── Instructors / tax / partners sections ─── */
.dash-landing .instructors-showcase {
    margin-top: 8px;
    border-radius: 0;
}
.dash-landing .tax-inst-section,
.dash-landing .partners-section,
.dash-landing .arab-homeland-section {
    border-radius: 24px;
    margin-inline: 24px;
    max-width: calc(1280px + 48px);
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 12px 40px rgba(10,54,105,0.06);
    border: 1px solid rgba(10,54,105,0.05);
    overflow: hidden;
}

/* ─── Guide cards with themed icons ─── */
.dash-landing .guide-card {
    background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
    border: 1px solid rgba(10,54,105,0.08);
    border-radius: 18px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.dash-landing .guide-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 16px 40px rgba(10,54,105,0.1);
}

/* ─── Member dashboard welcome ─── */
.welcome-premium-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    mix-blend-mode: soft-light;
}

@media (max-width: 768px) {
    .choices-visual-inner { padding: 32px 18px; }
    .choices-visual-banner { max-height: 120px; border-radius: 14px; }
    .choice-visual-tile { min-height: 180px; }
    .dash-landing .tax-inst-section,
    .dash-landing .partners-section,
    .dash-landing .arab-homeland-section { margin-inline: 12px; border-radius: 16px; }
    body.guest-mode.premium-ui .main-wrap { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-orbit-wrap::before { animation: none !important; }
    .choice-visual-tile:hover .choice-visual-thumb img { transform: none; }
}
