html, body {
    background-color: var(--bg-dark, #0B1120);
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
    scroll-behavior: smooth;
}

:root {
    --accent: #10b981;
    --secondary: #3b82f6;
    --bg-dark: #0B1120;
    --glass: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.1);
    --neon-blue: #38bdf8;
    --neon-pink: #ec4899;
    --neon-green: #22c55e;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background:
        radial-gradient(circle at top right, rgba(16,185,129,0.10), transparent 20%),
        radial-gradient(circle at left bottom, rgba(59,130,246,0.10), transparent 25%),
        var(--bg-dark, #0B1120);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    line-height: 1.85;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.prose {
    color: #e2e8f0;
}

.prose a {
    color: #7dd3fc;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    box-shadow: 0 15px 60px rgba(2, 6, 23, 0.26);
}

.glass-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1);
}

.menu-panel {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-panel.active {
    transform: translateX(0);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#preloader {
    transition: opacity 0.5s ease, visibility 0.5s;
    z-index: 99999;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.browse-card {
    transition: transform 0.2s ease-out, opacity 0.2s ease-out, filter 0.2s ease-out;
}

.baramej-banner-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin-bottom: 40px;
    font-family: 'Cairo', sans-serif;
}

.baramej-banner-shape {
    position: relative;
    width: 100%;
    max-width: 900px;
    min-height: 400px;
    background: linear-gradient(135deg, #0f172a 0%, #0B1120 50%, #172554 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 0 60px rgba(16, 185, 129, 0.05);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shape-circle-1 {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 3px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    top: -80px;
    left: -50px;
    animation: rotate 20s linear infinite;
}

.shape-circle-2 {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    bottom: -40px;
    right: 10%;
    animation: rotate 15s linear infinite reverse;
}

.shape-diamond {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
    transform: rotate(45deg);
    top: 20%;
    right: 15%;
    border-radius: 10px;
    animation: pulse 4s ease-in-out infinite;
}

.shape-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(59, 130, 246, 0.25);
    bottom: 15%;
    left: 10%;
    animation: float 5s ease-in-out infinite;
}

.shape-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: radial-gradient(circle at 20px 0, rgba(255,255,255,0.18) 0, rgba(255,255,255,0.18) 18px, transparent 19px), radial-gradient(circle at 60px 0, rgba(16,185,129,0.16) 0, rgba(16,185,129,0.16) 18px, transparent 19px);
    background-size: 120px 60px;
    background-repeat: repeat-x;
    animation: wave 10s linear infinite;
    opacity: 0.35;
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: rotate(45deg) scale(1); opacity: 0.6; } 50% { transform: rotate(45deg) scale(1.1); opacity: 0.9; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes wave { 0% { background-position-x: 0; } 100% { background-position-x: 1440px; } }

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(16, 185, 129, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; top: 60%; animation-delay: 2s; }
.particle:nth-child(3) { left: 70%; top: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 85%; top: 70%; animation-delay: 1s; }
.particle:nth-child(5) { left: 50%; top: 10%; animation-delay: 3s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-30px) scale(1.3); opacity: 1; }
}

.baramej-banner-content {
    text-align: center;
    z-index: 10;
    max-width: 650px;
    position: relative;
}

.baramej-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 50px;
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); }
    to { box-shadow: 0 0 25px rgba(255, 215, 0, 0.5); }
}

.baramej-banner-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 10px 0 20px;
    background: linear-gradient(90deg, #ffffff 0%, var(--accent, #10b981) 30%, var(--secondary, #3b82f6) 60%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease infinite;
    background-size: 300% 300%;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    line-height: 1.2;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.baramej-banner-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 35px;
    font-weight: 400;
    line-height: 1.7;
}

.baramej-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 45px;
    background: linear-gradient(135deg, var(--accent, #10b981) 0%, var(--secondary, #3b82f6) 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
    border-radius: 60px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.baramej-banner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.baramej-banner-btn:hover::before {
    left: 100%;
}

.baramej-banner-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.baramej-banner-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.baramej-banner-btn:hover svg {
    transform: translateX(-6px);
}

.baramej-banner-shape::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent, #10b981), var(--secondary, #3b82f6), var(--accent, #10b981), var(--secondary, #3b82f6));
    border-radius: 32px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
    background-size: 400% 400%;
    opacity: 0.5;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradient-xy {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes text-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(34,211,238,0.5), 0 0 20px rgba(168,85,247,0.3); }
    50% { text-shadow: 0 0 20px rgba(34,211,238,0.8), 0 0 40px rgba(168,85,247,0.6), 0 0 60px rgba(236,72,153,0.4); }
}

.animate-gradient-xy {
    background-size: 200% 200%;
    animation: gradient-xy 3s ease infinite;
}

.animate-text-glow {
    animation: text-glow 2.5s ease-in-out infinite;
}

.pagination-wrap ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

.pagination-wrap .current,
.pagination-wrap a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--accent, #10b981), var(--secondary, #3b82f6));
}

.neon-blue,
.neon-hover-blue:hover {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 0 22px rgba(56, 189, 248, 0.24), 0 0 44px rgba(56, 189, 248, 0.12);
}

.neon-pink,
.neon-hover-pink:hover {
    border-color: rgba(236, 72, 153, 0.35);
    box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.24), 0 0 22px rgba(236, 72, 153, 0.24), 0 0 44px rgba(236, 72, 153, 0.12);
}

.neon-green,
.neon-hover-green:hover {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.24), 0 0 22px rgba(34, 197, 94, 0.24), 0 0 44px rgba(34, 197, 94, 0.12);
}

.archive-card,
.single-article-card,
.alwahhab-comments,
.read-more-neon,
.download-neon-btn {
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, background-color .35s ease, color .35s ease;
}

.archive-card:hover {
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: 0 0 0 1px rgba(56,189,248,0.15), 0 18px 60px rgba(15, 23, 42, 0.45), 0 0 36px rgba(56,189,248,0.14);
}

.read-more-neon {
    background: linear-gradient(135deg, rgba(56,189,248,0.9), rgba(236,72,153,0.92));
    box-shadow: 0 0 18px rgba(56,189,248,0.25), 0 0 32px rgba(236,72,153,0.18);
}

.read-more-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(56,189,248,0.35), 0 0 48px rgba(236,72,153,0.25);
}

.download-neon-btn {
    background: linear-gradient(135deg, rgba(34,197,94,0.95), rgba(56,189,248,0.95));
    box-shadow: 0 0 22px rgba(34,197,94,0.25), 0 0 44px rgba(56,189,248,0.16);
}

.download-neon-btn:hover {
    box-shadow: 0 0 30px rgba(34,197,94,0.35), 0 0 60px rgba(56,189,248,0.22);
}

.single-featured-frame img,
.archive-card img {
    display: block;
}

.prose,
.prose p,
.prose li,
.prose blockquote,
.prose figcaption {
    color: #dbe7f5;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #ffffff;
    font-weight: 800;
    line-height: 1.5;
    margin: 1.4em 0 .7em;
}

.prose p {
    margin: 0 0 1.2em;
    font-size: 1.05rem;
}

.prose a {
    color: var(--neon-blue);
    text-decoration: underline;
    text-decoration-color: rgba(56,189,248,0.35);
    text-underline-offset: 4px;
}

.prose a:hover {
    color: #ffffff;
    text-decoration-color: rgba(236,72,153,0.45);
}

.prose strong {
    color: #ffffff;
}

.prose ul,
.prose ol {
    list-style: inherit;
    margin: 0 0 1.2em;
    padding-inline-start: 1.25rem;
}

.prose li {
    margin-bottom: .65em;
}

.prose img {
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 50px rgba(15,23,42,0.35);
}

.prose blockquote {
    margin: 1.5em 0;
    padding: 1rem 1.25rem;
    border-right: 4px solid rgba(56,189,248,0.55);
    background: rgba(255,255,255,0.04);
    border-radius: 1rem;
}

.prose code {
    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: .65rem;
    padding: .15rem .45rem;
    color: #f8fafc;
}

.prose pre {
    background: rgba(2,6,23,0.88);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.5rem;
    padding: 1.25rem;
    overflow: auto;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 1rem;
}

.prose th,
.prose td {
    border: 1px solid rgba(255,255,255,0.1);
    padding: .9rem 1rem;
}

.prose th {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.comment-list,
.comment-list ol,
.comment-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment-body {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(2,6,23,0.45);
    border-radius: 1.5rem;
    padding: 1.25rem;
    box-shadow: 0 16px 40px rgba(15,23,42,0.24);
}

.comment-list .comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.comment-list .comment-author .avatar {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
}

.comment-list .comment-author .fn,
.comment-list .comment-author a {
    color: #fff;
    font-weight: 800;
}

.comment-list .comment-metadata a,
.comment-list .reply a {
    color: #7dd3fc;
    font-size: .85rem;
    font-weight: 700;
}

.comment-list .comment-content p {
    margin-bottom: 0;
    color: #dbe7f5;
}

.comment-respond .comment-reply-title small a {
    color: #fda4af;
    font-size: .8rem;
    margin-inline-start: .5rem;
}

.comment-form p {
    margin: 0 0 1rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
}

@media (max-width: 767px) {
    .baramej-banner-title {
        font-size: 2.1rem;
    }

    .baramej-banner-subtitle {
        font-size: 1rem;
    }

    .baramej-banner-shape {
        padding: 28px 22px;
        min-height: 320px;
    }
}

.has-neon-glow,
.neon-glow-live,
.alwahhab-home-btn,
.read-more-neon,
.download-neon-btn {
    border-color: color-mix(in srgb, var(--neon-glow, #38bdf8) 38%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--neon-glow, #38bdf8) 18%, transparent), 0 0 24px color-mix(in srgb, var(--neon-glow, #38bdf8) 22%, transparent), 0 0 48px color-mix(in srgb, var(--neon-glow, #38bdf8) 14%, transparent);
}

.has-neon-glow:hover,
.neon-glow-live:hover,
.alwahhab-home-btn:hover,
.read-more-neon:hover,
.download-neon-btn:hover {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--neon-glow, #38bdf8) 30%, transparent), 0 0 28px color-mix(in srgb, var(--neon-glow, #38bdf8) 30%, transparent), 0 0 64px color-mix(in srgb, var(--neon-glow, #38bdf8) 18%, transparent);
}

.read-more-neon,
.alwahhab-home-btn {
    background: linear-gradient(135deg, color-mix(in srgb, var(--neon-glow, #38bdf8) 78%, #0f172a), rgba(236,72,153,0.92));
}

.download-neon-btn {
    background: linear-gradient(135deg, rgba(34,197,94,0.94), color-mix(in srgb, var(--neon-glow, #38bdf8) 82%, #0f172a));
}

.download-neon-btn.is-waiting {
    opacity: .9;
    filter: saturate(1.1);
}

.alwahhab-home-btn {
    min-height: 56px;
}

@media (max-width: 640px) {
    .alwahhab-home-btn {
        width: 100%;
        justify-content: center;
    }
}
