/* ============================================
   Qəribə Elmlər — Premium Dark Theme 2026
   ============================================ */

/* --- CSS Variables --- */
:root {
    --qe-bg: #09090b;
    --qe-bg-card: #18181b;
    --qe-bg-elevated: #1f1f23;
    --qe-bg-nav: rgba(9, 9, 11, 0.85);
    --qe-text: #fafafa;
    --qe-text-secondary: #a1a1aa;
    --qe-text-muted: #71717a;
    --qe-primary: #10b981;
    --qe-primary-hover: #059669;
    --qe-primary-glow: rgba(16, 185, 129, 0.15);
    --qe-accent: #06b6d4;
    --qe-link-color: var(--qe-primary);
    --qe-link-hover: var(--qe-primary-hover);
    --qe-btn-text: #ffffff;
    --qe-success: #22c55e;
    --qe-danger: #ef4444;
    --qe-warning: #f59e0b;
    --qe-border: rgba(255, 255, 255, 0.08);
    --qe-border-hover: rgba(255, 255, 255, 0.15);
    --qe-radius: 12px;
    --qe-radius-sm: 8px;
    --qe-radius-lg: 16px;
    --qe-shadow: 0 1px 3px rgba(0,0,0,0.4);
    --qe-shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --qe-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --qe-font: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--qe-font);
    background: var(--qe-bg);
    color: var(--qe-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: var(--qe-primary);
    color: #fff;
}

a {
    color: var(--qe-link-color);
    text-decoration: none;
    transition: color var(--qe-transition);
}
a:hover { color: var(--qe-link-hover); }

img { max-width: 100%; height: auto; }

/* --- Navbar --- */
.qe-navbar {
    background: rgba(9, 9, 11, 0.6) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--qe-border);
    padding: 0.5rem 0;
    z-index: 1050;
    transition: all 0.3s ease;
}
.qe-navbar.scrolled {
    background: rgba(9, 9, 11, 0.85) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.qe-navbar .navbar-brand {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--qe-text);
    text-decoration: none;
}
.qe-navbar .navbar-brand span {
    background: linear-gradient(135deg, var(--qe-text), var(--qe-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Center nav pills container */
.qe-nav-pills {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 50px;
    background: var(--qe-bg-elevated);
    border: 1px solid var(--qe-border);
}
.qe-nav-pill {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--qe-text-muted);
    padding: 6px 16px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.qe-nav-pill:hover {
    color: var(--qe-text);
    background: var(--qe-primary-glow);
}
.qe-nav-pill.active {
    color: var(--qe-btn-text);
    background: var(--qe-primary);
    box-shadow: 0 2px 8px var(--qe-primary-glow);
}

/* Nav action buttons */
.qe-nav-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--qe-border);
    background: transparent;
    color: var(--qe-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}
.qe-nav-btn svg { width: 16px; height: 16px; }
.qe-nav-btn:hover {
    color: var(--qe-text);
    border-color: var(--qe-border-hover);
    background: var(--qe-bg-elevated);
}

/* Nav badge */
.qe-nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 50px;
    background: var(--qe-danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Ghost button (login) */
.qe-nav-btn-ghost {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--qe-text-muted);
    padding: 7px 18px;
    border-radius: 10px;
    border: 1px solid var(--qe-border);
    text-decoration: none;
    transition: all 0.2s ease;
}
.qe-nav-btn-ghost:hover {
    color: var(--qe-text);
    border-color: var(--qe-border-hover);
    background: var(--qe-bg-elevated);
}

/* Accent button (register / user dropdown) */
.qe-nav-btn-accent {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--qe-btn-text);
    padding: 7px 18px;
    border-radius: 10px;
    background: var(--qe-primary);
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.qe-nav-btn-accent svg { width: 16px; height: 16px; }
.qe-nav-btn-accent:hover {
    background: var(--qe-primary-hover);
    color: var(--qe-btn-text);
    box-shadow: 0 4px 16px var(--qe-primary-glow);
    transform: translateY(-1px);
}
.qe-nav-btn-accent.dropdown-toggle::after { display: none; }

/* --- Logo visibility by theme --- */
.qe-logo-light { display: none; }
.qe-logo-dark { display: inline-block; }
.qe-logo[src=""] { display: none !important; }
html[data-theme="light"] .qe-logo-dark { display: none; }
html[data-theme="light"] .qe-logo-light { display: inline-block; }
html[data-theme="light"] .qe-logo[src=""] { display: none !important; }

/* Nav link — legacy compat */
.qe-navbar .nav-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--qe-text-muted) !important;
    padding: 6px 16px !important;
    border-radius: 50px;
    transition: all 0.2s ease;
}
.qe-navbar .nav-link:hover {
    color: var(--qe-text) !important;
    background: var(--qe-primary-glow);
}
.qe-navbar .nav-link.active {
    color: var(--qe-primary) !important;
}

/* --- Feather Icons --- */
.feather-sm { width: 16px; height: 16px; vertical-align: -2px; }
.feather-md { width: 20px; height: 20px; vertical-align: -4px; }

/* --- Main Content --- */
.main-wrapper {
    padding-top: 72px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Ana səhifə hero — navbar-ın altına yapışsın */
.main-wrapper:has(.qe-hero) {
    padding-top: 0;
}
.main-wrapper:has(.qe-hero) .qe-hero {
    padding-top: calc(72px + 4rem);
}

/* --- Cards --- */
.card, .qe-card {
    background: var(--qe-bg-card);
    border: 1px solid var(--qe-border);
    border-radius: var(--qe-radius);
    color: var(--qe-text);
    overflow: hidden;
    transition: all var(--qe-transition);
}
.card:hover, .qe-card:hover {
    border-color: var(--qe-border-hover);
    box-shadow: var(--qe-shadow-lg);
}
.card .card-header {
    background: var(--qe-bg-elevated);
    border-bottom: 1px solid var(--qe-border);
    padding: 1rem 1.25rem;
}
.card .card-body { padding: 1.25rem; }

/* --- Product Card --- */
.qe-product-card {
    transition: transform var(--qe-transition), box-shadow var(--qe-transition);
    border: 1px solid var(--qe-border);
}
.qe-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--qe-primary-glow);
}
.qe-product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.qe-product-card:hover .card-img-top {
    transform: scale(1.03);
}
.qe-product-card .card-img-wrapper {
    overflow: hidden;
    border-radius: var(--qe-radius) var(--qe-radius) 0 0;
}

/* --- Blog Card --- */
.qe-blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* --- Buttons --- */
.btn {
    font-weight: 500;
    border-radius: var(--qe-radius-sm);
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    transition: all var(--qe-transition);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--qe-primary);
    border: none;
    color: var(--qe-btn-text);
    box-shadow: 0 2px 8px var(--qe-primary-glow);
}
.btn-primary:hover {
    background: var(--qe-primary-hover);
    box-shadow: 0 4px 16px var(--qe-primary-glow);
    transform: translateY(-1px);
    color: var(--qe-btn-text);
}

.btn-outline-primary {
    border-color: var(--qe-primary);
    color: var(--qe-primary);
}
.btn-outline-primary:hover {
    background: var(--qe-primary-glow);
    border-color: var(--qe-primary);
    color: var(--qe-primary);
}

.btn-outline-light {
    border-color: var(--qe-border-hover);
    color: var(--qe-text-secondary);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--qe-text-secondary);
    color: var(--qe-text);
}

.btn-success {
    background: var(--qe-success);
    border: none;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: var(--qe-radius);
}

/* --- Hero --- */
.qe-hero {
    position: relative;
    padding: 7rem 2rem 6rem;
    text-align: center;
    overflow: hidden;
    background: var(--qe-bg);
    min-height: 560px;
    display: flex;
    align-items: center;
}

/* Particle canvas */
.qe-hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Animated gradient mesh */
.qe-hero-mesh {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, var(--qe-primary-glow), transparent 60%, var(--qe-accent) 70%, transparent 80%, var(--qe-primary-glow));
    opacity: 0.12;
    animation: meshRotate 30s linear infinite;
    pointer-events: none;
}
@keyframes meshRotate { to { transform: rotate(360deg); } }

/* Floating orbs — enhanced with radial gradients */
.qe-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    pointer-events: none;
    will-change: transform;
    mix-blend-mode: screen;
}
.qe-hero-orb-1 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, var(--qe-primary), transparent 70%);
    top: -15%; left: -8%;
    animation: orbFloat1 16s ease-in-out infinite;
}
.qe-hero-orb-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, var(--qe-accent), transparent 70%);
    top: 15%; right: -10%;
    animation: orbFloat2 20s ease-in-out infinite;
}
.qe-hero-orb-3 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, var(--qe-primary), transparent 70%);
    bottom: -20%; left: 35%; opacity: 0.2;
    animation: orbFloat3 24s ease-in-out infinite;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, 30px) scale(1.15); }
    50% { transform: translate(40px, 70px) scale(0.95); }
    75% { transform: translate(-30px, 50px) scale(1.08); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-60px, 40px) scale(1.1); }
    50% { transform: translate(-30px, -50px) scale(0.92); }
    75% { transform: translate(40px, -20px) scale(1.05); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, -40px) scale(1.2); }
    66% { transform: translate(30px, 20px) scale(0.9); }
}

/* Noise texture */
.qe-hero-noise {
    position: absolute; inset: 0; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat; background-size: 128px 128px;
    pointer-events: none; z-index: 1;
}

/* Grid with perspective */
.qe-hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--qe-border) 1px, transparent 1px), linear-gradient(90deg, var(--qe-border) 1px, transparent 1px);
    background-size: 60px 60px; opacity: 0.2;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 10%, transparent 70%);
    pointer-events: none;
    transform: perspective(500px) rotateX(15deg); transform-origin: center bottom;
}

/* Pulsing glow ring */
.qe-hero-ring {
    position: absolute; top: 50%; left: 50%; width: 500px; height: 500px;
    transform: translate(-50%, -50%); border-radius: 50%;
    border: 1px solid var(--qe-primary); opacity: 0; pointer-events: none;
    animation: ringPulse 4s ease-out infinite;
}
.qe-hero-ring::after {
    content: ''; position: absolute; inset: -40px; border-radius: 50%;
    border: 1px solid var(--qe-accent); opacity: 0.5;
    animation: ringPulse 4s ease-out 1s infinite;
}
@keyframes ringPulse {
    0% { opacity: 0.25; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

/* Badge with shimmer */
.qe-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 18px; border-radius: 50px;
    background: var(--qe-primary-glow); border: 1px solid var(--qe-border-hover);
    color: var(--qe-primary); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.02em; margin-bottom: 1.5rem;
    animation: heroFadeUp 0.6s ease-out both;
    position: relative; overflow: hidden;
}
.qe-hero-badge::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: badgeShimmer 3s ease-in-out infinite;
}
@keyframes badgeShimmer { 0%, 100% { left: -100%; } 50% { left: 100%; } }
.qe-hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--qe-primary);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--qe-primary); }
    50% { opacity: 0.6; box-shadow: 0 0 0 4px transparent; }
}

/* Title with animated gradient */
.qe-hero h1 {
    font-size: 3.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.08;
    background: linear-gradient(135deg, var(--qe-text) 0%, var(--qe-text-secondary) 50%, var(--qe-primary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: titleGradient 8s ease-in-out infinite;
    position: relative; z-index: 2; max-width: 720px; margin: 0 auto; min-height: 1.2em;
}
@keyframes titleGradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Subtitle */
.qe-hero p {
    font-size: 1.15rem; color: var(--qe-text-muted);
    max-width: 540px; margin: 1.5rem auto 2.5rem;
    position: relative; z-index: 2; line-height: 1.8; min-height: 1.5em;
}

/* Buttons */
.qe-hero .qe-hero-buttons {
    position: relative; z-index: 2; opacity: 0;
    transform: scale(0.85) translateY(12px);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.qe-hero .qe-hero-buttons.visible { opacity: 1; transform: scale(1) translateY(0); }
.qe-hero-btn-primary {
    padding: 14px 32px; border-radius: 12px; font-weight: 600;
    box-shadow: 0 4px 20px var(--qe-primary-glow), 0 0 40px var(--qe-primary-glow);
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.qe-hero-btn-primary::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.qe-hero-btn-primary:hover::after { left: 100%; }
.qe-hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--qe-primary-glow), 0 0 60px var(--qe-primary-glow);
}
.qe-hero-btn-secondary {
    padding: 14px 32px; border-radius: 12px; font-weight: 600;
    border-color: var(--qe-border-hover); transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.qe-hero-btn-secondary:hover {
    transform: translateY(-3px); background: rgba(255,255,255,0.05);
    border-color: var(--qe-primary); box-shadow: 0 4px 20px var(--qe-primary-glow);
}

/* Bottom glow line — animated */
.qe-hero-bottom-line {
    position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--qe-primary-glow) 20%, var(--qe-primary) 50%, var(--qe-primary-glow) 80%, transparent 100%);
    background-size: 200% 100%; animation: lineSlide 4s ease-in-out infinite; opacity: 0.7;
}
@keyframes lineSlide { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 0%; } }

@keyframes heroFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Typewriter cursor */
.qe-typewriter.typing::after {
    content: '|'; display: inline-block; margin-left: 2px;
    animation: cursorBlink 0.6s step-end infinite;
    -webkit-text-fill-color: var(--qe-primary); color: var(--qe-primary); font-weight: 300;
}
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- Section Headers --- */
.qe-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* --- Dropdown --- */
.dropdown-menu {
    background: var(--qe-bg-elevated);
    border: 1px solid var(--qe-border);
    border-radius: var(--qe-radius);
    box-shadow: var(--qe-shadow-lg);
    padding: 0.5rem;
}
.dropdown-menu .dropdown-item {
    color: var(--qe-text-secondary);
    border-radius: var(--qe-radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all var(--qe-transition);
}
.dropdown-menu .dropdown-item:hover {
    background: var(--qe-primary-glow);
    color: var(--qe-text);
}
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background: var(--qe-primary);
    color: var(--qe-btn-text);
}
.dropdown-menu .dropdown-divider {
    border-color: var(--qe-border);
}

/* --- Mobile Bottom Nav --- */
.qe-mobile-nav {
    background: rgba(9, 9, 11, 0.65) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid var(--qe-border);
    z-index: 1075;
    padding: 6px 0 env(safe-area-inset-bottom, 4px);
    overflow: visible !important;
}

/* Nav bar grid — equal columns */
.qe-mob-bar {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    padding: 0 4px;
}

/* Nav items */
.qe-mob-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.6rem;
    color: var(--qe-text-muted);
    text-decoration: none;
    padding: 4px 0;
    transition: all 0.2s ease;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    justify-self: center;
}
.qe-mob-item svg { width: 20px; height: 20px; }
.qe-mob-item span { line-height: 1; }
.qe-mob-item:hover, .qe-mob-item.active {
    color: var(--qe-primary);
}

/* Center search — elevated circle */
.qe-mob-center-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}
.qe-mob-center {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--qe-primary);
    color: var(--qe-btn-text);
    border: 4px solid var(--qe-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -32px;
    box-shadow: 0 4px 20px var(--qe-primary-glow);
    transition: all 0.2s ease;
    cursor: pointer;
}
.qe-mob-center svg { width: 20px; height: 20px; }
.qe-mob-center:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px var(--qe-primary-glow);
}

/* Badge */
.qe-mob-badge {
    position: absolute;
    top: 0;
    right: 2px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 50px;
    background: var(--qe-danger);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Dropdown sheet */
.qe-mob-dropdown {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    padding: 0 16px 80px !important;
    background: rgba(9, 9, 11, 0.85) !important;
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border-radius: 20px 20px 0 0 !important;
    border: none !important;
    border-top: 1px solid var(--qe-border) !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4) !important;
    z-index: 1080;
    /* Override Bootstrap display — always block, control with transform */
    display: block !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease, visibility 0.35s;
    pointer-events: none;
}
.qe-mob-dropdown.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Handle bar */
.qe-mob-dropdown-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--qe-border-hover);
    margin: 12px auto 16px;
}

/* Grid layout */
.qe-mob-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.qe-mob-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--qe-bg-elevated);
    border: 1px solid var(--qe-border);
    color: var(--qe-text);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.qe-mob-dd-item svg { width: 18px; height: 18px; color: var(--qe-text-muted); flex-shrink: 0; }
.qe-mob-dd-item:hover {
    background: var(--qe-primary-glow);
    border-color: var(--qe-primary);
    color: var(--qe-primary);
}
.qe-mob-dd-item:hover svg { color: var(--qe-primary); }

/* Footer section */
.qe-mob-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 4px;
    margin-top: 12px;
    border-top: 1px solid var(--qe-border);
    flex-wrap: wrap;
}

/* Footer buttons — uniform style */
.qe-mob-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--qe-border);
    background: var(--qe-bg-elevated);
    color: var(--qe-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.qe-mob-footer-btn svg { width: 16px; height: 16px; }
.qe-mob-footer-btn:hover {
    border-color: var(--qe-primary);
    color: var(--qe-primary);
}

/* Language pills */
.qe-lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--qe-border);
    background: var(--qe-bg-elevated);
    color: var(--qe-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
}
.qe-lang-pill:hover {
    border-color: var(--qe-primary);
    color: var(--qe-primary);
}
.qe-lang-pill-active {
    background: var(--qe-primary) !important;
    border-color: var(--qe-primary) !important;
    color: var(--qe-btn-text) !important;
}

.qe-mob-dd-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--qe-danger);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.qe-mob-dd-logout svg { width: 16px; height: 16px; }
.qe-mob-dd-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--qe-danger);
}

/* Mobile theme toggle in dropdown — inherits qe-mob-dd-item */

/* Overlay */
.qe-more-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1070;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}
.qe-more-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.qe-mobile-nav .dropup a[data-bs-toggle="dropdown"] svg {
    width: 20px;
    height: 20px;
}
.qe-mobile-nav .dropup .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0;
}
.qe-mobile-nav .dropup .dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* --- Footer --- */
.qe-footer {
    background: var(--qe-bg-card) !important;
    border-top: 1px solid var(--qe-border);
    color: var(--qe-text-secondary);
}
.qe-footer h6 { color: var(--qe-text); font-weight: 600; }
.qe-footer a {
    color: var(--qe-text-muted);
    transition: color var(--qe-transition);
}
.qe-footer a:hover { color: var(--qe-primary); }

@media (max-width: 767.98px) {
    .qe-footer { padding-bottom: 80px !important; }
    .qe-footer .row > [class*="col-lg-"] { text-align: center; }
    .qe-footer h6 { font-size: 1rem; }
    .qe-footer .list-unstyled { font-size: 0.8rem; }
}

/* --- Nav Icons (legacy) --- */
.qe-nav-icon {
    color: var(--qe-text-muted);
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}
.qe-nav-icon:hover { color: var(--qe-text); }

/* --- Badges --- */
.qe-notif-badge, .qe-cart-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 50px;
}

.dropdown-menu .qe-cart-badge {
    position: static;
    margin-left: 4px;
    vertical-align: middle;
}

/* --- Theme Toggle --- */
.qe-theme-toggle {
    border-radius: 10px;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--qe-border);
    background: transparent;
    color: var(--qe-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.qe-theme-toggle svg { width: 16px; height: 16px; }
.qe-theme-toggle:hover {
    border-color: var(--qe-primary);
    color: var(--qe-primary);
    background: var(--qe-primary-glow);
}

/* --- Forms --- */
.form-control, .form-select {
    background: var(--qe-bg-elevated);
    border: 1px solid var(--qe-border);
    color: var(--qe-text);
    border-radius: var(--qe-radius-sm);
    padding: 0.6rem 0.9rem;
    font-size: 0.875rem;
    transition: all var(--qe-transition);
}
.form-control:focus, .form-select:focus {
    background: var(--qe-bg-elevated);
    border-color: var(--qe-primary);
    color: var(--qe-text);
    box-shadow: 0 0 0 3px var(--qe-primary-glow);
}
.form-control::placeholder { color: var(--qe-text-muted); }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--qe-text-secondary); }
.form-text { color: var(--qe-text-muted); font-size: 0.8rem; }

/* Disabled & Readonly */
.form-control:disabled, .form-control[readonly],
.form-select:disabled, .form-select[readonly] {
    background: var(--qe-bg-card);
    border-color: var(--qe-border);
    color: var(--qe-text-muted);
    opacity: 0.7;
    cursor: not-allowed;
}

/* Checkbox & Radio */
.form-check-input {
    background-color: var(--qe-bg-elevated);
    border-color: var(--qe-border);
    cursor: pointer;
}
.form-check-input:checked {
    background-color: var(--qe-primary);
    border-color: var(--qe-primary);
}
.form-check-input:focus {
    border-color: var(--qe-primary);
    box-shadow: 0 0 0 3px var(--qe-primary-glow);
}
.form-check-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.form-check-label { color: var(--qe-text); font-size: 0.875rem; }

/* Switch */
.form-switch .form-check-input {
    background-color: var(--qe-bg-elevated);
    border-color: var(--qe-border);
}
.form-switch .form-check-input:checked {
    background-color: var(--qe-primary);
    border-color: var(--qe-primary);
}

/* Input Group */
.input-group-text {
    background: var(--qe-bg-card);
    border-color: var(--qe-border);
    color: var(--qe-text-muted);
}

/* Color picker */
.form-control-color {
    background: var(--qe-bg-elevated);
    border-color: var(--qe-border);
    padding: 4px;
}
.form-control-color:focus {
    box-shadow: 0 0 0 3px var(--qe-primary-glow);
}

/* File input */
.form-control[type="file"] {
    color: var(--qe-text-muted);
}
.form-control[type="file"]::file-selector-button {
    background: var(--qe-bg-card);
    border-color: var(--qe-border);
    color: var(--qe-text);
    border-right: 1px solid var(--qe-border);
}

/* --- Star Rating --- */
.qe-star { cursor: pointer; display: inline-block; transition: transform 0.15s; }
.qe-star:hover { transform: scale(1.2); }
.fill-warning { fill: var(--qe-warning); }

/* --- Search Suggestions --- */
.qe-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1060;
    background: var(--qe-bg-elevated);
    border: 1px solid var(--qe-border);
    border-radius: var(--qe-radius);
    box-shadow: var(--qe-shadow-lg);
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

/* --- Pagination --- */
.page-item .page-link {
    background: var(--qe-bg-card);
    border-color: var(--qe-border);
    color: var(--qe-text-secondary);
    border-radius: var(--qe-radius-sm);
    margin: 0 2px;
}
.page-item .page-link:hover {
    background: var(--qe-primary-glow);
    color: var(--qe-primary);
}
.page-item.active .page-link {
    background: var(--qe-primary);
    border-color: var(--qe-primary);
    color: #fff;
}

/* --- Alerts --- */
.alert { border-radius: var(--qe-radius-sm); border: none; font-size: 0.875rem; }

/* --- Breadcrumb --- */
.breadcrumb { font-size: 0.85rem; }
.breadcrumb-item a { color: var(--qe-text-muted); }
.breadcrumb-item.active { color: var(--qe-text-secondary); }

/* --- Badge --- */
.badge { font-weight: 500; font-size: 0.75rem; border-radius: 6px; }
.bg-secondary { background: var(--qe-bg-elevated) !important; color: var(--qe-text-secondary) !important; border: 1px solid var(--qe-border); }

/* --- List Group --- */
.list-group-item {
    background: var(--qe-bg-elevated);
    border-color: var(--qe-border);
    color: var(--qe-text);
    transition: all var(--qe-transition);
}
.list-group-item:hover,
.list-group-item-action:hover {
    background: var(--qe-bg-card);
    color: var(--qe-text);
}
.list-group-item-action:focus {
    background: var(--qe-bg-card);
    color: var(--qe-text);
}
.list-group-item.active,
.list-group-item-action.active {
    background: var(--qe-primary) !important;
    border-color: var(--qe-primary) !important;
    color: var(--qe-btn-text) !important;
}
.list-group-flush .list-group-item {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
}

/* --- Tables --- */
.table { color: var(--qe-text); --bs-table-color: #fff; --bs-table-bg: transparent; }
.table > :not(caption) > * > * {
    background: transparent;
    border-bottom-color: var(--qe-border);
    padding: 0.75rem;
    color: var(--qe-text);
}
.table thead th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--qe-text-muted);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--qe-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--qe-text-muted); }

/* --- Utility --- */
.text-primary { color: var(--qe-primary) !important; }
.text-muted { color: var(--qe-text-muted) !important; }
.text-accent { color: var(--qe-accent) !important; }
.bg-light { background: var(--qe-bg-elevated) !important; }
.border-secondary { border-color: var(--qe-border) !important; }

/* --- Empty State --- */
.qe-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--qe-text-muted);
}
.qe-empty-state svg { width: 48px; height: 48px; margin-bottom: 1rem; opacity: 0.4; }

/* --- Notifications Page --- */
.qe-notif-header {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--qe-border);
}
.qe-notif-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.qe-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--qe-radius-sm);
    transition: background var(--qe-transition);
    cursor: pointer;
    position: relative;
}
.qe-notif-item:hover {
    background: var(--qe-bg-elevated);
}
.qe-notif-item.qe-notif-unread {
    background: var(--qe-primary-glow);
}
.qe-notif-item.qe-notif-unread:hover {
    background: var(--qe-primary-glow);
}
.qe-notif-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--qe-bg-elevated);
}
.qe-notif-icon svg {
    width: 18px;
    height: 18px;
}
.qe-notif-item.qe-notif-unread .qe-notif-icon {
    background: var(--qe-bg-card);
}
.qe-notif-content {
    flex: 1;
    min-width: 0;
}
.qe-notif-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--qe-text);
    line-height: 1.3;
    margin-bottom: 2px;
}
.qe-notif-msg {
    font-size: 0.8rem;
    color: var(--qe-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.qe-notif-meta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.qe-notif-time {
    font-size: 0.7rem;
    color: var(--qe-text-muted);
    white-space: nowrap;
}
.qe-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: none;
}
.qe-notif-dot.active {
    display: block;
    background: var(--qe-primary);
}
.qe-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--qe-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.qe-empty-icon svg {
    width: 28px;
    height: 28px;
    color: var(--qe-text-muted);
    opacity: 0.5;
}

@media (max-width: 575.98px) {
    .qe-notif-item {
        padding: 12px;
        gap: 10px;
    }
    .qe-notif-icon {
        width: 32px;
        height: 32px;
    }
    .qe-notif-icon svg {
        width: 16px;
        height: 16px;
    }
    .qe-notif-title {
        font-size: 0.82rem;
    }
    .qe-notif-msg {
        font-size: 0.75rem;
    }
}

/* --- Category Pills --- */
.qe-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.qe-cat-pills::-webkit-scrollbar { display: none; }
.qe-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    background: var(--qe-bg-elevated);
    color: var(--qe-text-secondary);
    border: 1px solid var(--qe-border);
    text-decoration: none;
    transition: all var(--qe-transition);
}
.qe-cat-pill:hover {
    border-color: var(--qe-primary);
    color: var(--qe-primary);
    background: var(--qe-primary-glow);
}
.qe-cat-pill.active {
    background: var(--qe-primary);
    color: var(--qe-btn-text);
    border-color: var(--qe-primary);
}
.qe-cat-pill.active .qe-cat-count {
    background: rgba(255,255,255,0.2);
    color: var(--qe-btn-text);
}
.qe-cat-count {
    font-size: 0.7rem;
    background: var(--qe-bg-card);
    color: var(--qe-text-muted);
    padding: 1px 6px;
    border-radius: 50px;
    line-height: 1.4;
}

/* --- Prayer Cards --- */
.qe-prayer-card {
    transition: all var(--qe-transition);
}
.qe-prayer-card:hover {
    border-color: var(--qe-primary-glow);
}

/* --- Clickable Cards --- */
.qe-clickable-card {
    transition: transform var(--qe-transition), box-shadow var(--qe-transition), border-color var(--qe-transition);
}
.qe-clickable-card a {
    pointer-events: none;
}
.qe-prayer-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--qe-primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--qe-primary);
}
.qe-prayer-icon svg {
    width: 20px;
    height: 20px;
}
.qe-prayer-avatar[src=""] { display: none; }
.qe-like-btn {
    color: var(--qe-text-muted);
    cursor: pointer;
    transition: color var(--qe-transition);
}
.qe-like-btn:hover,
.qe-like-btn.qe-liked {
    color: var(--qe-danger);
}
.qe-like-btn.qe-liked svg {
    fill: var(--qe-danger);
}

@media (max-width: 575.98px) {
    .qe-cat-pills {
        flex-wrap: nowrap;
    }
    .qe-prayer-icon {
        width: 34px;
        height: 34px;
    }
    .qe-prayer-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* --- Search Tabs --- */
.qe-search-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.qe-search-tabs::-webkit-scrollbar { display: none; }
.qe-search-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--qe-radius);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    background: var(--qe-bg-elevated);
    color: var(--qe-text-secondary);
    border: 1px solid var(--qe-border);
    text-decoration: none;
    transition: all var(--qe-transition);
}
.qe-search-tab:hover {
    border-color: var(--qe-primary);
    color: var(--qe-primary);
    background: var(--qe-primary-glow);
}
.qe-search-tab.active {
    background: var(--qe-primary);
    color: var(--qe-btn-text);
    border-color: var(--qe-primary);
}
.qe-search-tab.active .qe-search-tab-count {
    background: rgba(255,255,255,0.2);
    color: var(--qe-btn-text);
}
.qe-search-tab-count {
    font-size: 0.7rem;
    background: var(--qe-bg-card);
    color: var(--qe-text-muted);
    padding: 2px 8px;
    border-radius: 50px;
    line-height: 1.4;
}
.qe-search-input {
    background: var(--qe-bg-elevated) !important;
    border-color: var(--qe-border) !important;
    color: var(--qe-text) !important;
}
.qe-search-input:focus {
    border-color: var(--qe-primary) !important;
    box-shadow: 0 0 0 3px var(--qe-primary-glow) !important;
}

/* --- Search Modal --- */
.qe-search-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
}
.qe-search-modal.active {
    display: flex;
}
.qe-search-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.qe-search-modal-content {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: var(--qe-bg-elevated);
    border: 1px solid var(--qe-border);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: qeSearchSlideIn 0.2s ease-out;
}
@keyframes qeSearchSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.qe-search-modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--qe-border);
}
.qe-search-modal-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.qe-search-modal-icon {
    width: 20px;
    height: 20px;
    color: var(--qe-text-muted);
    flex-shrink: 0;
}
.qe-search-modal-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.05rem;
    color: var(--qe-text);
}
.qe-search-modal-input::placeholder {
    color: var(--qe-text-muted);
}
.qe-search-kbd {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--qe-bg-card);
    border: 1px solid var(--qe-border);
    color: var(--qe-text-muted);
    flex-shrink: 0;
}
.qe-search-modal-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}
.qe-search-modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--qe-text-muted);
}
.qe-search-modal-empty p {
    margin-top: 12px;
    font-size: 0.9rem;
}
.qe-search-modal-section {
    padding: 6px 16px 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--qe-text-muted);
    font-weight: 600;
}
.qe-search-modal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--qe-text);
    text-decoration: none;
    transition: background 0.15s;
}
.qe-search-modal-item:hover,
.qe-search-modal-item.active {
    background: var(--qe-primary-glow);
    color: var(--qe-primary);
}
.qe-search-modal-item i,
.qe-search-modal-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--qe-text-muted);
}
.qe-search-modal-item:hover i,
.qe-search-modal-item:hover svg {
    color: var(--qe-primary);
}
.qe-search-modal-footer {
    border-top: 1px solid var(--qe-border);
    padding: 10px 16px;
    text-align: center;
}
.qe-search-modal-footer a {
    color: var(--qe-primary);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}
.qe-search-modal-footer a:hover {
    text-decoration: underline;
}
.qe-search-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--qe-text-secondary);
    display: flex;
    align-items: center;
}
.qe-search-trigger:hover {
    color: var(--qe-primary);
}

/* --- Alert Modal --- */
.qe-alert-modal {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.qe-alert-modal.active {
    display: flex !important;
    visibility: visible;
    opacity: 1;
}
.qe-alert-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.qe-alert-box {
    position: relative;
    background: var(--qe-bg-elevated);
    border: 1px solid var(--qe-border);
    border-radius: 16px;
    padding: 28px 24px 20px;
    max-width: 360px;
    width: calc(100% - 32px);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: qeAlertIn 0.2s ease-out;
}
@keyframes qeAlertIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.qe-alert-icon {
    margin-bottom: 12px;
}
.qe-alert-icon svg, .qe-alert-icon i {
    width: 40px;
    height: 40px;
    color: var(--qe-primary);
}
.qe-alert-icon.error svg, .qe-alert-icon.error i {
    color: #ef4444;
}
.qe-alert-msg {
    font-size: 0.95rem;
    color: var(--qe-text);
    margin-bottom: 18px;
    line-height: 1.5;
}
.qe-alert-ok {
    min-width: 100px;
    border-radius: 8px;
}

@media (max-width: 575.98px) {
    .qe-search-modal {
        padding-top: 5vh;
    }
    .qe-search-modal-content {
        max-width: calc(100% - 24px);
        border-radius: 12px;
    }
}

@media (max-width: 575.98px) {
    .qe-search-tabs {
        flex-wrap: nowrap;
    }
    .qe-search-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* --- Verified Purchase Badge --- */
.qe-verified-badge {
    background: var(--qe-success) !important;
    color: #fff !important;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 50px;
    vertical-align: middle;
    margin-left: 6px;
}

/* --- Author Avatar --- */
.qe-author-avatar[src=""] { display: none; }
.qe-author-avatar:not([src=""]) + .qe-author-icon { display: none !important; }

/* --- Skeleton Loading --- */
.qe-skeleton {
    background: linear-gradient(90deg, var(--qe-bg-card) 25%, var(--qe-bg-elevated) 50%, var(--qe-bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--qe-radius-sm);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Admin Sidebar --- */
.admin-sidebar {
    background: var(--qe-bg-card) !important;
    border-right: 1px solid var(--qe-border);
}
.admin-sidebar .nav-link {
    color: var(--qe-text-secondary);
    border-radius: var(--qe-radius-sm);
    margin-bottom: 2px;
    font-size: 0.875rem;
    transition: all var(--qe-transition);
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--qe-primary-glow);
    color: var(--qe-text);
}

/* --- Admin Panel Overrides --- */
.admin-main h2, .admin-main h3, .admin-main h4, .admin-main h5 {
    color: var(--qe-text);
}

/* --- Modal --- */
.modal-content {
    background: var(--qe-bg-card);
    border: 1px solid var(--qe-border);
    color: var(--qe-text);
}
.modal-header { border-bottom-color: var(--qe-border); }
.modal-footer { border-top-color: var(--qe-border); }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* --- Responsive --- */
@media (max-width: 767.98px) {
    .main-wrapper { padding-top: 0; padding-bottom: 72px; }
    .main-wrapper:has(.qe-hero) .qe-hero { padding-top: 2rem; }
    .qe-hero { padding: 4rem 1rem 3rem; min-height: 400px; }
    .qe-hero h1 { font-size: 2rem; }
    .qe-hero p { font-size: 0.95rem; margin-bottom: 2rem; }
    .qe-hero-orb-1 { width: 200px; height: 200px; filter: blur(60px); }
    .qe-hero-orb-2 { width: 150px; height: 150px; filter: blur(50px); }
    .qe-hero-orb-3 { width: 120px; height: 120px; filter: blur(50px); }
    .qe-hero-mesh { opacity: 0.08; }
    .qe-hero-ring { width: 300px; height: 300px; }
    .qe-hero-grid { transform: none; }
    .qe-hero-btn-primary, .qe-hero-btn-secondary { padding: 12px 24px; font-size: 0.9rem; }
    .qe-product-card .card-img-top { height: 180px; }
    .qe-section-title { font-size: 1.25rem; }
}

/* --- Mobile Logo (hero üstündə) --- */
.qe-mobile-logo-wrap {
    background: var(--qe-bg);
}
.qe-mobile-logo-wrap img {
    max-width: 200px;
}

@media (min-width: 768px) {
    .qe-mobile-nav { display: none !important; }
}

@media (max-width: 991.98px) {
    .qe-navbar .navbar-collapse { 
        background: var(--qe-bg-card);
        border-radius: var(--qe-radius);
        padding: 1rem;
        margin-top: 0.5rem;
        border: 1px solid var(--qe-border);
    }
}

/* ============================================
   RTL (Sağdan-sola) Dəstəyi
   ============================================ */
html[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
html[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
html[dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
html[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
html[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
html[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
html[dir="rtl"] .text-start { text-align: right !important; }
html[dir="rtl"] .text-end { text-align: left !important; }
html[dir="rtl"] .qe-navbar .navbar-collapse { text-align: right; }
html[dir="rtl"] .qe-footer { text-align: right; }
html[dir="rtl"] .dropdown-menu-end { left: 0; right: auto; }
html[dir="rtl"] .qe-search-suggestions { text-align: right; }
html[dir="rtl"] .list-group-item { text-align: right; }
html[dir="rtl"] .breadcrumb { direction: rtl; }

/* ============================================
   Article Single Page (Prayer + Blog)
   ============================================ */

.qe-article {
    background: var(--qe-bg-card);
    border: 1px solid var(--qe-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Cover image */
.qe-article-cover {
    position: relative;
    overflow: hidden;
    max-height: 400px;
}
.qe-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.qe-article-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--qe-bg-card), transparent);
    pointer-events: none;
}

/* Header */
.qe-article-header {
    padding: 28px 32px 0;
}

/* Badge */
.qe-article-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--qe-primary-glow);
    color: var(--qe-primary);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Meta items */
.qe-article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--qe-text-muted);
}

/* Title */
.qe-article-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0.5rem 0 1.2rem;
    color: var(--qe-text);
}

/* Meta bar (author + stats) */
.qe-article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--qe-border);
}

/* Avatar */
.qe-article-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--qe-border);
}
.qe-article-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.qe-article-avatar-fallback {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--qe-primary-glow);
    color: var(--qe-primary);
}

/* Author name + date */
.qe-article-author-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--qe-text);
}
.qe-article-author-date {
    font-size: 0.72rem;
    color: var(--qe-text-muted);
}

/* Stats */
.qe-article-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--qe-text-muted);
    transition: color 0.2s ease;
}

/* Body */
.qe-article-body {
    padding: 28px 32px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--qe-text);
}
.qe-article-body p { margin-bottom: 1.2em; }
.qe-article-body h2, .qe-article-body h3, .qe-article-body h4 {
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    font-weight: 700;
    color: var(--qe-text);
}
.qe-article-body blockquote {
    border-left: 3px solid var(--qe-primary);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: var(--qe-bg-elevated);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--qe-text-secondary);
}
.qe-article-body img {
    border-radius: 10px;
    margin: 1em 0;
}
.qe-article-body a {
    color: var(--qe-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.qe-article-body a:hover {
    color: var(--qe-primary-hover);
}
.qe-article-body ul, .qe-article-body ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}
.qe-article-body li { margin-bottom: 0.4em; }

/* Tags */
.qe-article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 32px 20px;
    font-size: 0.82rem;
    color: var(--qe-text-muted);
}

/* Footer */
.qe-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border-top: 1px solid var(--qe-border);
    background: var(--qe-bg-elevated);
}
.qe-article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--qe-text-muted);
    transition: color 0.2s ease;
}
.qe-article-back:hover { color: var(--qe-primary); }

.qe-article-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--qe-border);
    background: transparent;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--qe-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.qe-article-like-btn:hover {
    border-color: var(--qe-danger);
    color: var(--qe-danger);
    background: rgba(239, 68, 68, 0.08);
}
.qe-article-like-btn.qe-liked {
    border-color: var(--qe-danger);
    color: var(--qe-danger);
    background: rgba(239, 68, 68, 0.08);
}

/* ============================================
   Comments Section
   ============================================ */

.qe-comments-section {
    margin-bottom: 2rem;
}
.qe-comments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--qe-text);
}
.qe-comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 50px;
    background: var(--qe-primary-glow);
    color: var(--qe-primary);
    font-size: 0.75rem;
    font-weight: 700;
}
.qe-comment-form {
    background: var(--qe-bg-card);
    border: 1px solid var(--qe-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 1.5rem;
}
.qe-comment-form textarea {
    border: 1px solid var(--qe-border);
    border-radius: 8px;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
}
.qe-comment-form .btn {
    border-radius: 8px;
}

/* Mobile */
@media (max-width: 767.98px) {
    .qe-article-header { padding: 20px 18px 0; }
    .qe-article-body { padding: 20px 18px; font-size: 0.98rem; }
    .qe-article-tags { padding: 0 18px 16px; }
    .qe-article-footer { padding: 14px 18px; }
    .qe-article-title { font-size: 1.5rem; }
    .qe-article-cover { max-height: 240px; }
    .qe-article-meta-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ============================================
   Product Single Page
   ============================================ */

/* Gallery */
.qe-product-gallery {
    position: sticky;
    top: 90px;
}
.qe-product-main-img {
    background: var(--qe-bg-card);
    border: 1px solid var(--qe-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
}
.qe-product-main-img img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.qe-product-main-img:hover img {
    transform: scale(1.03);
}
.qe-product-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.qe-product-thumbs .col-4,
.qe-product-thumbs .col-md-3 {
    flex: 0 0 auto;
    width: auto;
    padding: 0;
}
.qe-product-thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--qe-border);
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.qe-product-thumbs img:hover {
    border-color: var(--qe-primary);
}

/* Product Info */
.qe-product-info {
    padding: 8px 0;
}
.qe-product-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--qe-text);
    margin-bottom: 16px;
}

/* Rating bar */
.qe-product-rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--qe-border);
}
.qe-product-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}
.qe-product-rating-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--qe-text);
}
.qe-product-rating-count {
    font-size: 0.82rem;
    color: var(--qe-text-muted);
}
.qe-product-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--qe-text-muted);
    margin-left: auto;
}

/* Price badge */
.qe-product-price-badge {
    flex-shrink: 0;
    padding: 6px 16px;
    background: var(--qe-primary-glow);
    border: 1px solid var(--qe-primary);
    border-radius: 50px;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 700;
    color: var(--qe-primary);
}
.qe-product-price-badge .text-decoration-line-through {
    font-size: 0.8rem;
    font-weight: 400;
}
.qe-product-price-badge .text-danger {
    color: var(--qe-danger) !important;
}
.qe-product-price-badge .fs-4 { font-size: 1rem !important; }
.qe-product-price-badge .fs-5 { font-size: 0.8rem !important; }

/* Description */
.qe-product-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--qe-text-secondary);
    margin-bottom: 24px;
}
.qe-product-desc p { margin-bottom: 0.8em; }

/* Action buttons */
.qe-product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.qe-product-btn-cart {
    flex: 1;
    min-width: 160px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px var(--qe-primary-glow);
    transition: all 0.2s ease;
}
.qe-product-btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--qe-primary-glow);
}
.qe-product-btn-buy {
    flex: 1;
    min-width: 140px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--qe-bg-elevated);
    border: 1px solid var(--qe-border);
    color: var(--qe-text);
    transition: all 0.2s ease;
}
.qe-product-btn-buy:hover {
    transform: translateY(-2px);
    border-color: var(--qe-primary);
    color: var(--qe-primary);
    background: var(--qe-primary-glow);
}
.qe-product-btn-wish {
    width: 52px;
    height: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--qe-border);
    background: transparent;
    color: var(--qe-text-muted);
    transition: all 0.2s ease;
}
.qe-product-btn-wish:hover {
    border-color: var(--qe-danger);
    color: var(--qe-danger);
    background: rgba(239, 68, 68, 0.08);
}

/* Tags */
.qe-product-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--qe-text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--qe-border);
}

/* Detail sections */
.qe-product-detail-section {
    margin-top: 2rem;
}

/* Rating stars interactive */
.qe-rating-stars {
    display: flex;
    gap: 4px;
}
.qe-rating-stars .qe-star {
    cursor: pointer;
    transition: transform 0.15s ease;
}
.qe-rating-stars .qe-star:hover {
    transform: scale(1.2);
}

/* Mobile */
@media (max-width: 767.98px) {
    .qe-product-gallery { position: static; }
    .qe-product-title { font-size: 1.5rem; }
    .qe-product-btn-cart, .qe-product-btn-buy { min-width: 0; flex: 1; padding: 12px 16px; font-size: 0.88rem; }
    .qe-product-btn-wish { width: 48px; height: 48px; }
    .qe-product-price-badge { font-size: 0.9rem; padding: 5px 14px; }
    .qe-product-detail-section .qe-article-header { padding: 20px 18px 0; }
    .qe-product-detail-section .qe-article-body { padding: 20px 18px; }
    .qe-product-detail-section [style*="padding:0 32px"] { padding: 0 18px 20px !important; }
    .qe-product-main-img { border-radius: 12px; }
    .qe-product-thumbs img { width: 60px; height: 60px; }
}
