/* ============================================
   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: var(--qe-bg-nav) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--qe-border);
    padding: 0.6rem 0;
    z-index: 1050;
    transition: all var(--qe-transition);
}

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

/* --- 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; }

.qe-navbar .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--qe-text-secondary) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--qe-radius-sm);
    transition: all var(--qe-transition);
    position: relative;
}
.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: 520px;
    display: flex;
    align-items: center;
}

/* Floating orbs */
.qe-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    will-change: transform;
}
.qe-hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--qe-primary);
    top: -10%;
    left: -5%;
    animation: orbFloat1 14s ease-in-out infinite;
}
.qe-hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--qe-accent);
    top: 20%;
    right: -8%;
    animation: orbFloat2 18s ease-in-out infinite;
}
.qe-hero-orb-3 {
    width: 250px;
    height: 250px;
    background: var(--qe-primary);
    bottom: -15%;
    left: 40%;
    opacity: 0.25;
    animation: orbFloat3 20s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, 40px) scale(1.1); }
    66% { transform: translate(-30px, 60px) scale(0.95); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 30px) scale(1.05); }
    66% { transform: translate(30px, -40px) scale(0.9); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, -30px) scale(1.15); }
}

/* Subtle grid pattern */
.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.3;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
    pointer-events: none;
}

/* Badge */
.qe-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    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;
}

/* Title */
.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) 60%, var(--qe-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    min-height: 1.2em;
}

/* 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: 1;
    line-height: 1.8;
    min-height: 1.5em;
}

/* Buttons — hidden until typewriter done */
.qe-hero .qe-hero-buttons {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.qe-hero .qe-hero-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}
.qe-hero-btn-primary {
    padding: 12px 28px;
    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;
}
.qe-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--qe-primary-glow), 0 0 60px var(--qe-primary-glow);
}
.qe-hero-btn-secondary {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    border-color: var(--qe-border-hover);
    transition: all 0.3s ease;
}
.qe-hero-btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--qe-bg-elevated);
    border-color: var(--qe-primary);
}

/* Bottom glow line */
.qe-hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--qe-primary-glow) 30%, var(--qe-primary) 50%, var(--qe-primary-glow) 70%, transparent 100%);
    opacity: 0.6;
}

/* Fade up animation */
@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: var(--qe-bg-nav) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--qe-border);
    z-index: 1050;
    padding: 0.4rem 0;
}
.qe-mobile-nav-item {
    font-size: 0.65rem;
    color: var(--qe-text-muted) !important;
    transition: all var(--qe-transition);
    padding: 0.25rem 0;
}
.qe-mobile-nav-item:hover,
.qe-mobile-nav-item.active {
    color: var(--qe-primary) !important;
}
.qe-mobile-nav-item svg { width: 20px; height: 20px; }
.qe-mobile-nav .qe-theme-toggle {
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
    background: transparent;
    color: var(--qe-text-muted) !important;
    font-size: 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.qe-mobile-nav .dropup .dropdown-menu {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 56px !important;
    top: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    border-radius: 16px 16px 0 0;
    border: none;
    border-top: 1px solid var(--qe-border);
    padding: 16px 12px 12px;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.18);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    flex-wrap: wrap;
    visibility: hidden;
    z-index: 1040;
}
.qe-mobile-nav .dropup .dropdown-menu.show {
    transform: translateY(0);
    visibility: visible;
}
.qe-mobile-nav .dropup .dropdown-menu .dropdown-item {
    padding: 10px 10px;
    font-size: 0.85rem;
    border-radius: var(--qe-radius-sm);
    display: flex;
    align-items: center;
    gap: 0;
}
.qe-mobile-nav .dropup .dropdown-menu .dropdown-divider {
    width: 100%;
    margin: 4px 0;
}
.qe-mobile-nav .dropup .dropdown-menu li {
    width: 50%;
    list-style: none;
}
.qe-mobile-nav .dropup .dropdown-menu li.qe-more-full {
    width: 100%;
}
/* Overlay — yalnız dropdown arxasında, navbar-ın üstündə deyil */
.qe-more-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 56px;
    background: rgba(0,0,0,0.3);
    z-index: 1039;
    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 --- */
.qe-nav-icon {
    color: var(--qe-text-secondary);
    transition: color var(--qe-transition);
    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: 50%;
    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-secondary);
    transition: all var(--qe-transition);
}
.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; }

/* --- 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);
}
.admin-main .form-check-input {
    background-color: var(--qe-bg-elevated);
    border-color: var(--qe-border);
}
.admin-main .form-check-input:checked {
    background-color: var(--qe-primary);
    border-color: var(--qe-primary);
}
.admin-main .form-check-label {
    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: 380px; }
    .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-grid { background-size: 40px 40px; }
    .qe-hero-btn-primary, .qe-hero-btn-secondary { padding: 10px 22px; 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; }
