/*
Theme Name: Selefi
Theme URI: https://selefi.org
Author: Arbër
Description: Tema premium WordPress për Selefi.org — Libraria Akademike Islame. Optimizuar për desktop me fokus elegant.
Version: 5.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: selefi
*/

/* ================================================
   SELEFI.ORG v3 — CLAUDE.AI × MEDIUM LUXURY
   ZERO CSS VARIABLES — ALL COLORS HARDCODED
   iOS SAFARI GUARANTEED
   ================================================ */

/* === RESET === */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  scroll-padding-top:90px;
}
a{color:inherit;text-decoration:none;transition:color 0.2s ease}
button{
  font-family:inherit;border:none;background:none;cursor:pointer;color:inherit;
  transition:all 0.2s ease;
}
ul{list-style:none}
body{
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','Segoe UI',sans-serif;
  font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background:#FDFCFA;color:#1A1A1A;overflow-x:hidden;
  font-synthesis:weight;
}
body.locked{overflow:hidden}

/* === FORCE BOLD RENDERING === */
strong, b,
.stitle, .nav-logo, .hero h1,
.cmod-title, .libmod-title, .shopmod-title,
.bandeau-title, .cat-name, .omod-name,
.ci-t, .libc-name, .shopc-name {
  font-weight: 700 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Extra bold for main titles */
.stitle, .nav-logo, .hero h1,
.cmod-title, .libmod-title, .shopmod-title,
.bandeau-title {
  font-weight: 800 !important;
}

/* ================================================
   LIGHT MODE — All base styles
   ================================================ */

/* --- NAVBAR --- */
.nav{
  position:fixed;top:0;left:0;right:0;height:80px;
  display:flex;align-items:center;justify-content:center;
  padding:0 24px;z-index:1000;
  background:rgba(253,252,250,0.90);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border-bottom:1px solid rgba(232,228,222,0.6);
}
.nav-logo{
  display:flex;align-items:center;justify-content:center;
  text-decoration:none;
}
.nav-logo-img{
  height:60px;width:auto;display:block;
}
.nav-logo-dark{display:none}
[data-theme="dark"] .nav-logo-light{display:none}
[data-theme="dark"] .nav-logo-dark{display:block}
.nav-toggle{
  position:absolute;right:24px;top:50%;transform:translateY(-50%);
  width:36px;height:36px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  background:#FFFFFF;border:1px solid #E8E4DE;
}
.nav-toggle:hover{border-color:#DA7B3A}
.nav-toggle svg{width:18px;height:18px;color:#5C5C5C}

/* --- HERO --- */
.hero{padding:86px 24px 28px;text-align:center;max-width:680px;margin:0 auto;position:relative}
.hero h1{
  font-family:'Source Serif 4',Georgia,serif;
  font-size:38px;font-weight:800;letter-spacing:-0.035em;
  line-height:1.15;margin-bottom:8px;color:#1A1A1A;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
.hero-sub{color:#5C5C5C;font-size:16px;margin-bottom:10px;line-height:1.5}
.hero-ornament{
  display:flex;align-items:center;justify-content:center;
  margin-bottom:22px;gap:10px;opacity:0.35;color:#DA7B3A;
}
.hero-ornament-line{width:60px;height:1px;background:#DA7B3A}
.hero-ornament-dot{width:5px;height:5px;transform:rotate(45deg);background:#DA7B3A}
[data-theme="dark"] .hero-ornament{color:#FF9D5C}
[data-theme="dark"] .hero-ornament-line{background:#FF9D5C}
[data-theme="dark"] .hero-ornament-dot{background:#FF9D5C}

/* --- HERO SEARCH --- */
.hero-search{
  position:relative;
  max-width:520px;
  margin:0 auto 24px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 20px;
  background:#FFFFFF;
  border:2px solid #E8E4DE;
  border-radius:12px;
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
  transition:all 0.2s;
}
.hero-search:focus-within{
  border-color:#DA7B3A;
  box-shadow:0 4px 16px rgba(218,123,58,0.12);
}
.hero-search svg{
  width:20px;
  height:20px;
  color:#9B9B9B;
  flex-shrink:0;
}
.hero-search:focus-within svg{
  color:#DA7B3A;
}
#heroSearchInput{
  flex:1;
  font-size:15px;
  border:none;
  outline:none;
  background:transparent;
  color:#1A1A1A;
  font-family:inherit;
}
#heroSearchInput::placeholder{
  color:#9B9B9B;
}

/* --- HERO SEARCH RESULTS DROPDOWN --- */
.hero-search-results{
  display:none;
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:520px;
  margin-top:8px;
  background:#FFFFFF;
  border:2px solid #E8E4DE;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,0.08);
  max-height:400px;
  overflow-y:auto;
  z-index:100;
}
.hero-search-results.show{
  display:block;
}
.hero-search-result-item{
  padding:14px 20px;
  border-bottom:1px solid #F0EDE8;
  cursor:pointer;
  transition:background 0.15s;
  text-align:left;
}
.hero-search-result-item:hover{
  background:#FAF9F7;
}
.hero-search-result-item:last-child{
  border-bottom:none;
}
.hero-search-result-title{
  font-size:15px;
  font-weight:600;
  color:#1A1A1A;
  margin-bottom:4px;
}
.hero-search-result-meta{
  font-size:13px;
  color:#9B9B9B;
  display:flex;
  align-items:center;
  gap:8px;
}
.hero-search-result-type{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.05em;
  padding:2px 6px;
  border-radius:3px;
  background:rgba(218,123,58,0.07);
  color:#C46A2C;
}
.hero-search-no-results{
  padding:40px 20px;
  text-align:center;
  color:#9B9B9B;
  font-size:14px;
}
.hero-search-loading{
  padding:40px 20px;
  text-align:center;
}

/* Dark mode hero search */
[data-theme="dark"] .hero-search{
  background:#1E1C19;
  border-color:#3A3632;
}
[data-theme="dark"] .hero-search:focus-within{
  border-color:#FF9D5C;
  box-shadow:0 4px 16px rgba(255,157,92,0.12);
}
[data-theme="dark"] .hero-search svg{
  color:#6B6660;
}
[data-theme="dark"] .hero-search:focus-within svg{
  color:#FF9D5C;
}
[data-theme="dark"] #heroSearchInput{
  color:#E8E4DE;
}
[data-theme="dark"] #heroSearchInput::placeholder{
  color:#6B6660;
}
[data-theme="dark"] .hero-search-results{
  background:#1E1C19;
  border-color:#3A3632;
}
[data-theme="dark"] .hero-search-result-item{
  border-bottom-color:#3A3632;
}
[data-theme="dark"] .hero-search-result-item:hover{
  background:#252320;
}
[data-theme="dark"] .hero-search-result-title{
  color:#E8E4DE;
}
[data-theme="dark"] .hero-search-result-meta{
  color:#6B6660;
}
[data-theme="dark"] .hero-search-result-type{
  background:rgba(255,157,92,0.1);
  color:#FF9D5C;
}

/* --- SWITCHER --- */
.switcher{
  display:inline-flex;padding:4px;gap:2px;border-radius:10px;
  background:#F5F3EF;border:1px solid #E8E4DE;
}
.sw-btn{
  padding:8px 28px;border-radius:7px;font-size:14px;font-weight:600;
  color:#5C5C5C;
}
.sw-btn.active{background:#DA7B3A;color:#FFF}
.sw-btn:not(.active):hover{background:#EFECE8;color:#1A1A1A}

/* --- CONTAINER --- */
.wrap{max-width:1300px;margin:0 auto;padding:0 32px 40px;box-sizing:border-box}
.pane{display:none}.pane.on{display:block}

/* --- SECTION TITLES --- */
.stitle{
  font-family:'Source Serif 4',Georgia,serif;
  font-size:24px;font-weight:800;letter-spacing:-0.02em;
  margin:32px 0 6px;color:#1A1A1A;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.ssub{font-size:13px;margin-bottom:16px;color:#9B9B9B}

/* --- BANDEAU EDITORIAL --- */
.bandeau{
  display:flex;align-items:stretch;border-radius:12px;overflow:hidden;
  margin-bottom:24px;background:#FFFFFF;border:1px solid #E8E4DE;
  position:relative;
}
.bandeau::after{
  content:'';position:absolute;top:0;right:0;bottom:0;width:120px;
  
	
  pointer-events:none;opacity:0.5;
}
[data-theme="dark"] .bandeau::after{
  
}
.bandeau-img{
  width:220px;min-height:140px;flex-shrink:0;
  
}
.bandeau-body{flex:1;padding:24px 28px;display:flex;flex-direction:column;justify-content:center}
.bandeau-title{
  font-family:'Source Serif 4',Georgia,serif;
  font-size:18px;font-weight:800;margin-bottom:6px;color:#1A1A1A;letter-spacing:-0.01em;
}
.bandeau-text{font-size:14px;line-height:1.5;margin-bottom:12px;color:#5C5C5C}
.bandeau-cta{font-size:13px;font-weight:600;color:#C46A2C;display:inline-flex;align-items:center;gap:4px}
.bandeau-cta:hover{text-decoration:underline}

/* --- ORIENTIM MODULES --- */
.omod{
  border-radius:12px;margin-bottom:12px;overflow:hidden;
  background:#FFFFFF;border:1px solid #E8E4DE;
}
.omod:hover{border-color:#D4CFC7}
.omod.now{border-color:#DA7B3A;box-shadow:0 0 0 1px #DA7B3A}
.omod.off{opacity:0.4;pointer-events:none}
.omod-head{padding:16px 20px;display:flex;align-items:center;gap:14px;cursor:pointer}
.omod-head:hover{background:#F5F3EF}
.omod-num{
  width:32px;height:32px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:700;flex-shrink:0;
  background:rgba(218,123,58,0.07);color:#DA7B3A;
}
.omod.now .omod-num{background:#DA7B3A;color:#FFF}
.omod.off .omod-num{background:#F5F3EF;color:#9B9B9B}
.omod-info{flex:1;min-width:0}
.omod-name{font-size:15px;font-weight:700;color:#1A1A1A;line-height:1.3}
.omod-desc{font-size:12px;color:#9B9B9B;margin-top:2px}
.omod-badge{font-size:11px;font-weight:600;padding:3px 10px;border-radius:20px;flex-shrink:0}
.omod-badge.cur{background:rgba(218,123,58,0.07);color:#C46A2C}
.omod-badge.lk{background:#F5F3EF;color:#9B9B9B}
.omod-chev{width:20px;height:20px;flex-shrink:0;color:#9B9B9B;transition:transform 0.2s ease}
.omod.open .omod-chev{transform:rotate(90deg)}
.omod-bar{height:2px;background:#F0EDE8}
.omod-bar-fill{height:100%;background:#DA7B3A}
.omod-body{display:none;border-top:1px solid #F0EDE8;padding:8px}
.omod.open .omod-body{display:block}

/* --- LESSONS --- */
.les{
  display:flex;align-items:center;gap:12px;
  padding:10px 12px;border-radius:6px;cursor:pointer;
  font-size:14px;color:#1A1A1A;line-height:1.4;
}
.les:hover{background:rgba(218,123,58,0.07)}
.les:hover .les-t{color:#C46A2C}
.les-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;background:#E8E4DE}
.les:hover .les-dot{background:#DA7B3A}
.les-dot.done{background:#4A9E6E}
.les-t{flex:1}

/* --- STUDIM DUAL COLUMNS --- */
.duo{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:32px}
.cmod{
  border-radius:14px;overflow:hidden;background:#FFFFFF;
  border:1px solid #E8E4DE;
  box-shadow:0 1px 3px rgba(26,26,26,0.04);
  margin-bottom:20px;
}
.cmod-head{
  padding:16px 20px;display:flex;align-items:center;justify-content:space-between;
  border-bottom:1px solid #F0EDE8;
  background:linear-gradient(180deg, #FEFEFE 0%, #FAFAFA 100%);
}
.cmod-title{font-family:'Source Serif 4',Georgia,serif;font-size:17px;font-weight:800;color:#1A1A1A}
.cmod-count{font-size:11px;font-weight:500;padding:2px 8px;border-radius:12px;background:#F5F3EF;color:#9B9B9B}
.cmod-list{padding:8px 10px}

/* --- COMPACT ITEMS --- */
.ci{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:8px;cursor:pointer;
  font-size:14px;line-height:1.4;color:#1A1A1A;
  transition:all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border:1px solid transparent;
}
.ci:hover{
  background:rgba(218,123,58,0.04);
  border-color:rgba(218,123,58,0.15);
  transform:translateX(4px);
  box-shadow:0 2px 8px rgba(218,123,58,0.08);
}
.ci:hover .ci-t{color:#C46A2C}
.ci-n{
  width:24px;height:24px;border-radius:50%;font-size:10px;font-weight:600;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  background:#F5F3EF;color:#9B9B9B;
  transition:all 0.25s ease;
  pointer-events:none;
}
.ci:hover .ci-n{
  background:rgba(218,123,58,0.12);
  color:#DA7B3A;
  transform:scale(1.1);
}
.ci-t{
  flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  transition:color 0.2s ease;
  pointer-events:none;
  font-weight:600;
}
.ci-v{
  width:16px;height:16px;flex-shrink:0;color:#9B9B9B;
  transition:all 0.2s ease;
  pointer-events:none;
}
.ci:hover .ci-v{color:#DA7B3A;transform:scale(1.15)}

/* --- CATEGORIES GRID --- */
.cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.cat{
  padding:16px 14px;border-radius:10px;cursor:pointer;text-align:center;
  position:relative;overflow:hidden;
  background:#FFFFFF;border:1px solid #E8E4DE;
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cat::after{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg, #DA7B3A, #F5A563);
  opacity:0;transition:opacity 0.3s ease;
}
.cat:hover{
  border-color:#DA7B3A;
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(218,123,58,0.15);
}
.cat:hover::after{opacity:1}
.cat-name{
  font-size:14px;font-weight:700;margin-bottom:3px;line-height:1.3;color:#1A1A1A;
  transition:color 0.2s ease;
}
.cat:hover .cat-name{color:#C46A2C}

/* --- LIBRA PDF --- */
.libmod{border-radius:12px;overflow:hidden;margin-bottom:24px;background:#FFFFFF;border:1px solid #E8E4DE}
.libmod-head{padding:14px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #F0EDE8}
.libmod-title{font-family:'Source Serif 4',Georgia,serif;font-size:16px;font-weight:800;color:#1A1A1A;display:flex;align-items:center;gap:8px}
.libmod-title svg{width:18px;height:18px;color:#DA7B3A}
.libgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px;padding:16px}
.libc{
  padding:18px 16px;border-radius:10px;cursor:pointer;text-align:center;
  background:#F5F3EF;border:1px solid #F0EDE8;
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.libc:hover{
  background:rgba(218,123,58,0.05);
  border-color:#DA7B3A;
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(218,123,58,0.12);
}
.libc-cover{
  width:80px;height:110px;margin:0 auto 10px;border-radius:4px;
  background:#F0EDE8;border:1px solid #E8E4DE;
  display:flex;align-items:center;justify-content:center;
  box-shadow:2px 2px 8px rgba(26,26,26,0.08);
  position:relative;overflow:hidden;
}
.libc-cover::after{
  content:'';position:absolute;left:0;top:0;bottom:0;width:3px;
  background:linear-gradient(180deg,rgba(0,0,0,0.06),rgba(0,0,0,0.02),rgba(0,0,0,0.06));
}
[data-theme="dark"] .libc-cover{background:#3A3632;border-color:#443F39;box-shadow:2px 2px 8px rgba(0,0,0,0.2)}
.libc-cover svg{width:24px;height:24px;color:#DA7B3A;opacity:0.5}
[data-theme="dark"] .libc-cover svg{color:#FF9D5C}
.libc-name{font-size:13px;font-weight:700;line-height:1.3;margin-bottom:4px;color:#1A1A1A}
.libc:hover .libc-name{color:#C46A2C}
.libc-auth{font-size:11px;color:#9B9B9B}

/* --- SHOP --- */
.shopmod{border-radius:12px;overflow:hidden;margin-bottom:24px;background:#FFFFFF;border:1px solid #E8E4DE}
.shopmod-head{padding:14px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #F0EDE8}
.shopmod-title{font-family:'Source Serif 4',Georgia,serif;font-size:16px;font-weight:800;color:#1A1A1A;display:flex;align-items:center;gap:8px}
.shopmod-title svg{width:18px;height:18px;color:#8B6CC1}
.shopmod-link{font-size:12px;font-weight:600;color:#C46A2C}
.shopgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;padding:14px}
.shopc{padding:16px 12px;border-radius:8px;cursor:pointer;text-align:center;background:#F5F3EF;border:1px solid #F0EDE8}
.shopc:hover{border-color:#8B6CC1;transform:translateY(-1px)}
.shopc-cover{
  width:70px;height:96px;margin:0 auto 10px;border-radius:4px;
  background:#F0EDE8;border:1px solid #E8E4DE;
  display:flex;align-items:center;justify-content:center;
  box-shadow:2px 2px 8px rgba(26,26,26,0.08);
  position:relative;overflow:hidden;
}
.shopc-cover::after{
  content:'';position:absolute;left:0;top:0;bottom:0;width:3px;
  background:linear-gradient(180deg,rgba(0,0,0,0.06),rgba(0,0,0,0.02),rgba(0,0,0,0.06));
}
[data-theme="dark"] .shopc-cover{background:#3A3632;border-color:#443F39;box-shadow:2px 2px 8px rgba(0,0,0,0.2)}
.shopc-cover svg{width:22px;height:22px;color:#8B6CC1;opacity:0.5}
[data-theme="dark"] .shopc-cover svg{color:#A48CD2}
.shopc-name{font-size:13px;font-weight:700;line-height:1.3;margin-bottom:4px;color:#1A1A1A}
.shopc-price{font-size:13px;font-weight:700;color:#C46A2C}

/* --- READ MODE (FULL SCREEN) --- */
.rmo{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:99999;
  overflow-y:auto;
  background:#FFFFFF;
  -webkit-overflow-scrolling:touch;
}
.rmo.on{display:block}
.rm-box{
  max-width:100%;
  min-height:100vh;
  margin:0;
  border-radius:0;
  overflow:visible;
  background:#FFFFFF;
  box-shadow:none;
}
.rm-bar{
  position:sticky;
  top:0;
  z-index:100;
  padding:12px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#FFFFFF;
  border-bottom:1px solid #F0EDE8;
}
.rm-bar-l{display:flex;align-items:center;gap:12px}
.rm-bar-r{display:flex;align-items:center;gap:4px}
.rm-exit{
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 18px;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
  background:#F5F3EF;
  border:1px solid #E8E4DE;
  color:#1A1A1A;
}
.rm-exit:hover{background:#DA7B3A;color:#FFF;border-color:#DA7B3A}
.rm-exit svg{width:18px;height:18px}
.rm-cat{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.05em;
  padding:4px 10px;
  border-radius:4px;
  background:rgba(218,123,58,0.07);
  color:#C46A2C;
}
.rm-tool{
  width:36px;
  height:36px;
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #E8E4DE;
  color:#5C5C5C;
}
.rm-tool:hover{background:#F5F3EF;border-color:#DA7B3A;color:#DA7B3A}
.rm-tool svg{width:16px;height:16px}
.rm-fsi{font-size:11px;padding:0 6px;font-weight:500;color:#9B9B9B}

/* Read Content — Medium.com Typography 19px default */
.rm-body{
  padding:40px 24px 80px;
  max-width:760px;
  margin:0 auto;
}
.rm-bismillah{
  font-family:'Amiri',serif;
  font-size:22px;
  text-align:center;
  color:#DA7B3A;
  opacity:0.8;
  margin-bottom:24px;
  direction:rtl;
  line-height:1.8;
  letter-spacing:0.03em;
}
[data-theme="dark"] .rm-bismillah{color:#FF9D5C;opacity:1}
.rm-title{
  font-family:'Source Serif 4',Georgia,serif;
  font-size:32px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-0.02em;
  margin-bottom:8px;
  color:#1A1A1A;
}
.rm-author{
  font-size:15px;
  margin-bottom:20px;
  padding-bottom:0;
  color:#5C5C5C;
  border-bottom:0;
}

/* SHARE BUTTONS */
.rm-share{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:32px;
  padding-bottom:24px;
  border-bottom:1px solid #F0EDE8;
  flex-wrap:wrap;
}
.rm-share-label{
  font-size:14px;
  color:#5C5C5C;
  font-weight:600;
  letter-spacing:0.3px;
}
.rm-share-btn{
  width:38px;
  height:38px;
  border-radius:50%;
  background:#FFFFFF;
  border:1.5px solid #E8E4DE;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.2s ease;
  color:#5C5C5C;
}
.rm-share-btn svg{
  width:18px;
  height:18px;
}
.rm-share-btn:hover{
  background:#DA7B3A;
  border-color:#DA7B3A;
  color:#FFFFFF;
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(218,123,58,0.25);
}
.rm-share-btn:active{
  transform:translateY(0);
}
.rm-article{
  font-family:'Source Serif 4',Georgia,serif;
  color:#1A1A1A;
  line-height:1.65;
  font-weight:500;
}
.rm-article.sz-sm{font-size:17px;font-weight:500}
.rm-article.sz-md{font-size:19px;font-weight:500}
.rm-article.sz-lg{font-size:21px;font-weight:500}
.rm-article.sz-xl{font-size:23px;font-weight:500}
.rm-article p{margin-bottom:1.5em;font-weight:500}
.rm-article h2{font-size:1.35em;font-weight:700;margin:2em 0 .8em}
.rm-article h3{font-size:1.2em;font-weight:700;margin:1.8em 0 .7em}
.rm-article h4{font-size:1.1em;font-weight:700;margin:1.6em 0 .6em}
.rm-article strong{font-weight:700}
.rm-article b{font-weight:700}
.rm-article blockquote{
  border-left:3px solid #DA7B3A;
  padding-left:20px;
  margin:1.5em 0;
  font-style:italic;
  color:#5C5C5C;
  font-weight:500;
}
.rm-article [lang="ar"],.rm-article .arabic{
  font-family:'Amiri',serif;
  direction:rtl;
  font-size:1.15em;
  line-height:2;
  font-weight:600;
}

/* Video iframe styling */
.rm-article iframe{
  max-width:100%;
  border:none;
  border-radius:8px;
}
.rm-article .video-wrapper{
  margin-bottom:2em !important;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 4px 16px rgba(0,0,0,0.12);
}

/* Dark Mode for Reading Mode */
[data-theme="dark"] .rmo{background:#1A1A1A}
[data-theme="dark"] .rm-box{background:#1A1A1A}
[data-theme="dark"] .rm-bar{background:#2A2622;border-bottom-color:#3A3632}
[data-theme="dark"] .rm-exit{background:#35322E;border-color:#443F39;color:#E8E4DE}
[data-theme="dark"] .rm-exit:hover{background:#FF9D5C;color:#1A1A1A;border-color:#FF9D5C}
[data-theme="dark"] .rm-cat{background:rgba(255,157,92,0.12);color:#FF9D5C}
[data-theme="dark"] .rm-tool{border-color:#443F39;color:#B0AAA0}
[data-theme="dark"] .rm-tool:hover{background:#35322E;border-color:#FF9D5C;color:#FF9D5C}
[data-theme="dark"] .rm-title{color:#E8E4DE !important}
[data-theme="dark"] .rm-author{color:#B0AAA0 !important;border-bottom-color:#3A3632}
[data-theme="dark"] .rm-share{border-bottom-color:#3A3632}
[data-theme="dark"] .rm-share-label{color:#B0AAA0}
[data-theme="dark"] .rm-share-btn{background:#2A2622;border-color:#443F39;color:#B0AAA0}
[data-theme="dark"] .rm-share-btn:hover{background:#FF9D5C;border-color:#FF9D5C;color:#1A1A1A}
[data-theme="dark"] .rm-article{color:#E0DCD4 !important}
[data-theme="dark"] .rm-article *{color:#E0DCD4 !important}
[data-theme="dark"] .rm-article p{color:#E0DCD4 !important}
[data-theme="dark"] .rm-article h2{color:#F0EDE8 !important}
[data-theme="dark"] .rm-article h3{color:#F0EDE8 !important}
[data-theme="dark"] .rm-article h4{color:#F0EDE8 !important}
[data-theme="dark"] .rm-article h5{color:#F0EDE8 !important}
[data-theme="dark"] .rm-article h6{color:#F0EDE8 !important}
[data-theme="dark"] .rm-article strong{color:#F0EDE8 !important}
[data-theme="dark"] .rm-article b{color:#F0EDE8 !important}
[data-theme="dark"] .rm-article em{color:#E0DCD4 !important}
[data-theme="dark"] .rm-article i{color:#E0DCD4 !important}
[data-theme="dark"] .rm-article a{color:#F5A563 !important}
[data-theme="dark"] .rm-article a:hover{color:#FFB87A !important}
[data-theme="dark"] .rm-article blockquote{border-left-color:#FF9D5C !important;color:#B0AAA0 !important}
[data-theme="dark"] .rm-article blockquote *{color:#B0AAA0 !important}
[data-theme="dark"] .rm-article ul li{color:#E0DCD4 !important}
[data-theme="dark"] .rm-article ol li{color:#E0DCD4 !important}
[data-theme="dark"] .rm-article li{color:#E0DCD4 !important}
[data-theme="dark"] .rm-article span{color:#E0DCD4 !important}
[data-theme="dark"] .rm-article div{color:#E0DCD4 !important}
[data-theme="dark"] .rm-article code{background:#2A2622 !important;color:#F0EDE8 !important;border-color:#3A3632 !important}
[data-theme="dark"] .rm-article pre{background:#2A2622 !important;border-color:#3A3632 !important}
[data-theme="dark"] .rm-article pre code{color:#F0EDE8 !important}

/* --- FOOTER --- */
.foot{border-top:1px solid #E8E4DE;margin-top:40px;background:#FFFFFF}
.foot-in{max-width:920px;margin:0 auto;padding:32px 32px 24px}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px;margin-bottom:24px}
.foot-logo{font-family:'Source Serif 4',Georgia,serif;font-size:18px;font-weight:700;margin-bottom:8px;color:#1A1A1A;display:inline-flex;flex-direction:column;align-items:center;line-height:1;gap:2px}
.foot-desc{font-size:13px;line-height:1.5;max-width:280px;color:#5C5C5C}
.foot-col-t{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0.06em;margin-bottom:12px;color:#9B9B9B}
.foot-links li{margin-bottom:6px}
.foot-links a{font-size:13px;color:#5C5C5C}
.foot-links a:hover{color:#DA7B3A}
.foot-social{display:flex;gap:8px;margin-top:8px}
.foot-soc{width:32px;height:32px;border-radius:6px;display:flex;align-items:center;justify-content:center;border:1px solid #E8E4DE}
.foot-soc:hover{border-color:#DA7B3A;background:rgba(218,123,58,0.07)}
.foot-soc svg{width:16px;height:16px;color:#5C5C5C}
.foot-soc:hover svg{color:#DA7B3A}
.foot-bot{padding-top:16px;border-top:1px solid #F0EDE8;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#9B9B9B}
.foot-bot-links{display:flex;gap:16px}
.foot-bot-links a{color:#9B9B9B}
.foot-bot-links a:hover{color:#DA7B3A}

/* ================================================
   DARK MODE — EVERY SINGLE ELEMENT OVERRIDDEN
   All values are direct hex. No var(). No inherit.
   ================================================ */
[data-theme="dark"] body{background:#1C1A18;color:#F0EDE8}

/* Navbar */
[data-theme="dark"] .nav{background:rgba(43,41,38,0.92);border-bottom-color:#443F39}
/* nav-logo dark mode handled by img display toggle */
[data-theme="dark"] .nav-toggle{background:#35322E;border-color:#443F39}
[data-theme="dark"] .nav-toggle:hover{border-color:#FF9D5C}
[data-theme="dark"] .nav-toggle svg{color:#B0AAA0}

/* Hero */
[data-theme="dark"] .hero h1{color:#F0EDE8}
[data-theme="dark"] .hero-sub{color:#B0AAA0}

/* Switcher */
[data-theme="dark"] .switcher{background:#302D29;border-color:#443F39}
[data-theme="dark"] .sw-btn{color:#B0AAA0}
[data-theme="dark"] .sw-btn.active{background:#FF9D5C;color:#FFF}
[data-theme="dark"] .sw-btn:not(.active):hover{background:#3D3A35;color:#F0EDE8}

/* Section Titles */
[data-theme="dark"] .stitle{color:#F0EDE8}
[data-theme="dark"] .ssub{color:#7A756C}

/* Bandeau */
[data-theme="dark"] .bandeau{background:#35322E;border-color:#443F39}
[data-theme="dark"] .bandeau-img{background-color:#302D29;opacity:0.9}
[data-theme="dark"] .bandeau-title{color:#F0EDE8}
[data-theme="dark"] .bandeau-text{color:#B0AAA0}
[data-theme="dark"] .bandeau-cta{color:#FFB870}

/* Orientim Modules */
[data-theme="dark"] .omod{background:#35322E;border-color:#443F39}
[data-theme="dark"] .omod:hover{border-color:#524D46}
[data-theme="dark"] .omod.now{border-color:#FF9D5C;box-shadow:0 0 0 1px #FF9D5C}
[data-theme="dark"] .omod-head:hover{background:#3D3A35}
[data-theme="dark"] .omod-num{background:rgba(255,157,92,0.12);color:#FF9D5C}
[data-theme="dark"] .omod.now .omod-num{background:#FF9D5C;color:#FFF}
[data-theme="dark"] .omod.off .omod-num{background:#302D29;color:#7A756C}
[data-theme="dark"] .omod-name{color:#F0EDE8}
[data-theme="dark"] .omod-desc{color:#7A756C}
[data-theme="dark"] .omod-badge.cur{background:rgba(255,157,92,0.12);color:#FFB870}
[data-theme="dark"] .omod-badge.lk{background:#302D29;color:#7A756C}
[data-theme="dark"] .omod-chev{color:#7A756C}
[data-theme="dark"] .omod-bar{background:#3A3632}
[data-theme="dark"] .omod-bar-fill{background:#FF9D5C}
[data-theme="dark"] .omod-body{border-top-color:#3A3632}

/* Lessons */
[data-theme="dark"] .les{color:#F0EDE8}
[data-theme="dark"] .les:hover{background:rgba(255,157,92,0.12)}
[data-theme="dark"] .les:hover .les-t{color:#FFB870}
[data-theme="dark"] .les-dot{background:#443F39}
[data-theme="dark"] .les:hover .les-dot{background:#FF9D5C}

/* Dual Columns */
[data-theme="dark"] .cmod{
  background:#242220;
  border-color:#3A3632;
  box-shadow:0 2px 8px rgba(0,0,0,0.3);
}
[data-theme="dark"] .cmod-head{
  border-bottom-color:#3A3632;
  background:linear-gradient(180deg, #2A2826 0%, #242220 100%);
}
[data-theme="dark"] .cmod-title{color:#F0EDE8}
[data-theme="dark"] .cmod-count{background:#302D29;color:#7A756C}

/* Compact Items */
[data-theme="dark"] .ci{color:#F0EDE8}
[data-theme="dark"] .ci:hover{background:rgba(255,157,92,0.12)}
[data-theme="dark"] .ci:hover .ci-t{color:#FFB870}
[data-theme="dark"] .ci-n{background:#302D29;color:#7A756C}
[data-theme="dark"] .ci:hover .ci-n{background:rgba(255,157,92,0.12);color:#FF9D5C}
[data-theme="dark"] .ci-v{color:#7A756C}
[data-theme="dark"] .ci:hover .ci-v{color:#FF9D5C}

/* Categories */
[data-theme="dark"] .cat{background:#35322E;border-color:#443F39}
[data-theme="dark"] .cat::after{background:#FF9D5C}
[data-theme="dark"] .cat:hover{border-color:#FF9D5C;box-shadow:0 2px 8px rgba(0,0,0,0.3)}
[data-theme="dark"] .cat-name{color:#F0EDE8}
[data-theme="dark"] .cat:hover .cat-name{color:#FFB870}

/* Libra PDF */
[data-theme="dark"] .libmod{background:#35322E;border-color:#443F39}
[data-theme="dark"] .libmod-head{border-bottom-color:#3A3632}
[data-theme="dark"] .libmod-title{color:#F0EDE8}
[data-theme="dark"] .libmod-title svg{color:#FF9D5C}
[data-theme="dark"] .libc{background:#302D29;border-color:#3A3632}
[data-theme="dark"] .libc:hover{background:rgba(255,157,92,0.12);border-color:#FF9D5C}
[data-theme="dark"] .libc-cover{background:#3A3632;border-color:#443F39}
[data-theme="dark"] .libc-cover svg{color:#FF9D5C}
[data-theme="dark"] .libc-name{color:#F0EDE8}
[data-theme="dark"] .libc:hover .libc-name{color:#FFB870}
[data-theme="dark"] .libc-auth{color:#7A756C}

/* Shop */
[data-theme="dark"] .shopmod{background:#35322E;border-color:#443F39}
[data-theme="dark"] .shopmod-head{border-bottom-color:#3A3632}
[data-theme="dark"] .shopmod-title{color:#F0EDE8}
[data-theme="dark"] .shopmod-title svg{color:#A48CD2}
[data-theme="dark"] .shopmod-link{color:#FFB870}
[data-theme="dark"] .shopc{background:#302D29;border-color:#3A3632}
[data-theme="dark"] .shopc:hover{border-color:#A48CD2}
[data-theme="dark"] .shopc-cover{background:#3A3632;border-color:#443F39}
[data-theme="dark"] .shopc-cover svg{color:#A48CD2}
[data-theme="dark"] .shopc-name{color:#F0EDE8}
[data-theme="dark"] .shopc-price{color:#FFB870}

/* Footer */
[data-theme="dark"] .foot{background:#35322E;border-top-color:#443F39}
[data-theme="dark"] .foot-logo{color:#F0EDE8}
[data-theme="dark"] .foot-desc{color:#B0AAA0}
[data-theme="dark"] .foot-col-t{color:#7A756C}
[data-theme="dark"] .foot-links a{color:#B0AAA0}
[data-theme="dark"] .foot-links a:hover{color:#FF9D5C}
[data-theme="dark"] .foot-soc{border-color:#443F39}
[data-theme="dark"] .foot-soc:hover{border-color:#FF9D5C;background:rgba(255,157,92,0.12)}
[data-theme="dark"] .foot-soc svg{color:#B0AAA0}
[data-theme="dark"] .foot-soc:hover svg{color:#FF9D5C}
[data-theme="dark"] .foot-bot{border-top-color:#3A3632;color:#7A756C}
[data-theme="dark"] .foot-bot-links a{color:#7A756C}
[data-theme="dark"] .foot-bot-links a:hover{color:#FF9D5C}

/* ================================================
   RESPONSIVE
   ================================================ */
@media(max-width:768px){
  .nav{padding:0 16px;height:70px}
  .hero{padding:76px 16px 20px}
  .hero h1{font-size:28px}
  .hero-sub{font-size:14px;margin-bottom:18px}
  .sw-btn{padding:7px 20px;font-size:13px}
  .wrap{padding:0 14px 32px}
  .stitle{font-size:19px;margin:24px 0 4px}
  .duo{grid-template-columns:1fr;gap:12px}
  .cats{grid-template-columns:repeat(3,1fr);gap:8px}
  .cat{padding:10px 8px}.cat-name{font-size:12px}
  .bandeau{flex-direction:column}
  .bandeau-img{width:100%;min-height:160px}
  .bandeau-body{padding:18px 20px}
  .rm-bar{padding:10px 16px}
  .rm-exit{padding:6px 14px;font-size:13px}
  .rm-body{padding:24px 20px 60px}
  .rm-title{font-size:26px}
  .rm-cat{display:none}
  .rm-article.sz-sm{font-size:16px}
  .rm-article.sz-md{font-size:18px}
  .rm-article.sz-lg{font-size:20px}
  .rm-article.sz-xl{font-size:22px}
  .libgrid{grid-template-columns:repeat(2,1fr)}
  .shopgrid{grid-template-columns:repeat(2,1fr)}
  .foot-grid{grid-template-columns:1fr 1fr;gap:20px}
  .foot-brand{grid-column:1/-1}
}
@media(max-width:480px){
  .cats{grid-template-columns:repeat(2,1fr)}
  .foot-bot{flex-direction:column;gap:8px;text-align:center}
  .rm-body{padding:20px 16px 50px}
  .rm-title{font-size:24px}
  .rm-bar-r{gap:2px}
  .rm-tool{width:32px;height:32px}
}
@media(min-width:1200px){
  .rm-body{padding:48px 24px 80px;max-width:840px}
  .rm-title{font-size:36px}
}
@media(min-width:1440px){
  .rm-body{padding:56px 24px 100px;max-width:900px}
}

/* ===== CATEGORY BROWSER OVERLAY ===== */
.cat-browser {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 15000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cat-browser.on {
    display: flex;
}

.cat-browser-box {
    background: #FAF9F7;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .cat-browser-box {
    background: #1A1A1A;
}

.cat-browser-header {
    padding: 20px 24px;
    border-bottom: 1px solid #E8E4DE;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #FFFFFF;
}

[data-theme="dark"] .cat-browser-header {
    background: #2A2622;
    border-bottom-color: #3A3632;
}

.cat-back {
    background: transparent;
    border: none;
    color: #1A1A1A;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.cat-back:hover {
    background: rgba(218, 123, 58, 0.1);
    color: #C46A2C;
}

[data-theme="dark"] .cat-back {
    color: #E8E4DE;
}

[data-theme="dark"] .cat-back:hover {
    background: rgba(224, 138, 77, 0.15);
    color: #FF9D5C;
}

.cat-back svg {
    width: 18px;
    height: 18px;
}

.cat-browser-title {
    margin: 0;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1A1A1A;
    flex: 1;
}

[data-theme="dark"] .cat-browser-title {
    color: #E8E4DE;
}

.cat-browser-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    background: #FAF9F7;
}

[data-theme="dark"] .cat-browser-body {
    background: #1A1A1A;
}

/* Category sections */
.cat-section {
    margin-bottom: 32px;
}

.cat-section:last-child {
    margin-bottom: 0;
}

.cat-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9B9B9B;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #F0EDE8;
}

[data-theme="dark"] .cat-section-title {
    color: #9B9B9B;
    border-bottom-color: #3A3632;
}

/* Subcategories */
.subcats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.subcat {
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid #E8E4DE;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subcat:hover {
    background: rgba(218, 123, 58, 0.07);
    border-color: #DA7B3A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 123, 58, 0.15);
}

.subcat-name {
    font-weight: 600;
    font-size: 14px;
    color: #1A1A1A;
}

.subcat:hover .subcat-name {
    color: #C46A2C;
}

/* Dark mode subcategories */
[data-theme="dark"] .subcat {
    background: #2A2622;
    border-color: #3A3632;
}

[data-theme="dark"] .subcat:hover {
    background: rgba(224, 138, 77, 0.12);
    border-color: #FF9D5C;
    box-shadow: 0 4px 12px rgba(224, 138, 77, 0.2);
}

[data-theme="dark"] .subcat-name {
    color: #E8E4DE;
}

[data-theme="dark"] .subcat:hover .subcat-name {
    color: #FF9D5C;
}

/* Category articles list */
.cat-articles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-article {
    padding: 14px 16px;
    background: #FFFFFF;
    border: 1px solid #E8E4DE;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-article:hover {
    background: rgba(218, 123, 58, 0.07);
    border-color: #DA7B3A;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(218, 123, 58, 0.12);
}

[data-theme="dark"] .cat-article {
    background: #2A2622;
    border-color: #3A3632;
}

[data-theme="dark"] .cat-article:hover {
    background: rgba(224, 138, 77, 0.12);
    border-color: #FF9D5C;
    box-shadow: 0 2px 8px rgba(224, 138, 77, 0.15);
}

.cat-article-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.cat-article-title {
    font-weight: 600;
    font-size: 14px;
    color: #1A1A1A;
    flex: 1;
    line-height: 1.4;
}

.cat-article:hover .cat-article-title {
    color: #C46A2C;
}

[data-theme="dark"] .cat-article-title {
    color: #E8E4DE;
}

[data-theme="dark"] .cat-article:hover .cat-article-title {
    color: #FF9D5C;
}

.empty-msg {
    text-align: center;
    color: #9B9B9B;
    padding: 40px 20px;
    font-size: 15px;
}

/* ===== PAGINATION ===== */
.cmod-pagination {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-top: 1px solid #F0EDE8;
    margin-top: 16px;
}

[data-theme="dark"] .cmod-pagination {
    border-top-color: #3A3632;
}

.pag-btn {
    padding: 10px 24px;
    background: #DA7B3A;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.pag-btn:hover {
    background: #C46A2C;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(218, 123, 58, 0.3);
}

.pag-btn:active {
    transform: scale(0.98);
}

[data-theme="dark"] .pag-btn {
    background: #FF9D5C;
    color: #1A1A1A;
}

[data-theme="dark"] .pag-btn:hover {
    background: #F09A5D;
    box-shadow: 0 4px 12px rgba(224, 138, 77, 0.4);
}

.pag-info {
    font-size: 14px;
    color: #5C5C5C;
    font-weight: 600;
}

[data-theme="dark"] .pag-info {
    color: #9B9B9B;
}

/* "Shiko të gjithë artikujt" button */
.cmod-more {
    padding: 16px;
    text-align: center;
    border-top: 1px solid #F0EDE8;
    margin-top: 8px;
}
.cmod-more-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #DA7B3A;
    color: #FFF;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.cmod-more-btn:hover {
    background: #C46A2C;
    color: #FFF;
    transform: translateY(-1px);
}
[data-theme="dark"] .cmod-more { border-top-color: #3A3632; }
[data-theme="dark"] .cmod-more-btn { background: #FF9D5C; color: #1A1A1A; }
[data-theme="dark"] .cmod-more-btn:hover { background: #FFB870; }

/* Articles + Videos side by side */
.cmod-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}
.cmod-half {
    min-width: 0;
    overflow: hidden;
}
@media (max-width: 768px) {
    .cmod-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cmod-half .cmod-list {
        padding: 4px 6px;
    }
    .cmod-half .ci {
        padding: 8px 8px;
        gap: 8px;
        font-size: 13px;
    }
    .cmod-half .ci-t {
        font-size: 13px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cat-browser-box {
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }
    
    .subcats {
        grid-template-columns: 1fr;
    }
    
    .cmod-pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pag-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Read Mode Mobile */
    .rm-bar {
        padding: 10px 16px;
    }
    
    .rm-exit {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .rm-exit svg {
        width: 16px;
        height: 16px;
    }
    
    .rm-tool {
        width: 32px;
        height: 32px;
    }
    
    .rm-body {
        padding: 24px 16px 60px;
    }
    
    .rm-title {
        font-size: 24px !important;
    }
    
    .rm-article.sz-sm { font-size: 16px; }
    .rm-article.sz-md { font-size: 17px; }
    .rm-article.sz-lg { font-size: 18px; }
    .rm-article.sz-xl { font-size: 19px; }
    
    /* Video Mobile - ensure it displays properly */
    .rm-article .video-wrapper {
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
        border-radius: 0;
        margin-bottom: 1.5em !important;
    }
    
    .rm-article iframe {
        border-radius: 0;
    }
    
    .rm-share {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .rm-share-btn {
        width: 36px;
        height: 36px;
    }
}

/* Loading spinner */
.ld {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #9B9B9B;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.spin {
    width: 20px;
    height: 20px;
    border: 2px solid #E8E4DE;
    border-top-color: #DA7B3A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

[data-theme="dark"] .spin {
    border-color: #3A3632;
    border-top-color: #FF9D5C;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================================
   SEO ARTICLE PAGE (single-artikull, single-libri, single-video)
   Visible content for Google, styled nicely as fallback
   ================================================ */
.seo-article {
    padding: 80px 24px 60px;
    max-width: 760px;
    margin: 0 auto;
}
.seo-article-inner {}
.seo-article-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(218,123,58,0.07);
    color: #C46A2C;
    margin-bottom: 16px;
}
.seo-article-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: #1A1A1A;
}
.seo-article-author {
    font-size: 15px;
    color: #5C5C5C;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F0EDE8;
}
.seo-article-content {
    font-family: 'Source Serif 4', Georgia, serif;
    color: #1A1A1A;
    line-height: 1.65;
}
.seo-article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: #F5F3EF;
    border: 1px solid #E8E4DE;
    color: #1A1A1A;
    transition: all 0.2s;
}
.seo-article-back:hover {
    background: #DA7B3A;
    color: #FFF;
    border-color: #DA7B3A;
}

/* Dark mode SEO article */
[data-theme="dark"] .seo-article-cat { background: rgba(255,157,92,0.12); color: #FF9D5C; }
[data-theme="dark"] .seo-article-title { color: #E8E4DE; }
[data-theme="dark"] .seo-article-author { color: #B0AAA0; border-bottom-color: #3A3632; }
[data-theme="dark"] .seo-article-content { color: #E0DCD4; }
[data-theme="dark"] .seo-article-back { background: #35322E; border-color: #443F39; color: #E8E4DE; }
[data-theme="dark"] .seo-article-back:hover { background: #FF9D5C; color: #1A1A1A; border-color: #FF9D5C; }

/* ================================================
   SEO ARCHIVE PAGE
   ================================================ */
.seo-archive {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 0 40px;
}
.seo-archive-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.seo-archive-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #1A1A1A;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.seo-archive-item:hover {
    background: rgba(218,123,58,0.04);
    border-color: rgba(218,123,58,0.15);
    transform: translateX(4px);
}
.seo-archive-title {
    font-weight: 600;
    flex: 1;
}
.seo-archive-item:hover .seo-archive-title { color: #C46A2C; }
.seo-archive-meta {
    font-size: 12px;
    color: #9B9B9B;
    flex-shrink: 0;
    margin-left: 12px;
}

[data-theme="dark"] .seo-archive-item { color: #F0EDE8; }
[data-theme="dark"] .seo-archive-item:hover { background: rgba(255,157,92,0.12); }
[data-theme="dark"] .seo-archive-item:hover .seo-archive-title { color: #FFB870; }

/* WP pagination links */
.seo-archive-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 0;
    margin-top: 20px;
}
.seo-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #5C5C5C;
    text-decoration: none;
    transition: all 0.2s;
}
.seo-archive-pagination .page-numbers.current {
    background: #DA7B3A;
    color: #FFF;
}
.seo-archive-pagination .page-numbers:hover:not(.current) {
    background: #F5F3EF;
    color: #DA7B3A;
}
.seo-archive-pagination .prev,
.seo-archive-pagination .next {
    padding: 0 14px;
    color: #DA7B3A;
    font-weight: 700;
}
[data-theme="dark"] .seo-archive-pagination .page-numbers { color: #B0AAA0; }
[data-theme="dark"] .seo-archive-pagination .page-numbers.current { background: #FF9D5C; color: #1A1A1A; }
[data-theme="dark"] .seo-archive-pagination .page-numbers:hover:not(.current) { background: #35322E; color: #FF9D5C; }
[data-theme="dark"] .seo-archive-pagination .prev,
[data-theme="dark"] .seo-archive-pagination .next { color: #FF9D5C; }

.seo-archive .page-numbers {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #5C5C5C;
    transition: all 0.2s;
}
.seo-archive .page-numbers.current {
    background: #DA7B3A;
    color: #FFF;
}
.seo-archive .page-numbers:hover:not(.current) {
    background: #F5F3EF;
    color: #DA7B3A;
}
[data-theme="dark"] .seo-archive .page-numbers { color: #B0AAA0; }
[data-theme="dark"] .seo-archive .page-numbers.current { background: #FF9D5C; color: #1A1A1A; }
[data-theme="dark"] .seo-archive .page-numbers:hover:not(.current) { background: #35322E; color: #FF9D5C; }

/* ================================================
   PDF VIEWER (inside Read Mode)
   ================================================ */
.pdf-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.pdf-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}
.pdf-download-btn {
    background: #DA7B3A;
    color: #FFF;
}
.pdf-download-btn:hover { background: #C46A2C; color: #FFF; }
.pdf-open-btn {
    background: #F5F3EF;
    color: #1A1A1A;
    border: 1px solid #E8E4DE;
}
.pdf-open-btn:hover { background: #E8E4DE; color: #1A1A1A; }
.pdf-viewer-container {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E8E4DE;
}
.pdf-viewer-frame {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    border: none;
}
[data-theme="dark"] .pdf-download-btn { background: #FF9D5C; color: #1A1A1A; }
[data-theme="dark"] .pdf-download-btn:hover { background: #FFB870; }
[data-theme="dark"] .pdf-open-btn { background: #35322E; color: #E8E4DE; border-color: #443F39; }
[data-theme="dark"] .pdf-open-btn:hover { background: #443F39; }
[data-theme="dark"] .pdf-viewer-container { border-color: #443F39; }
.seo-pdf-actions { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }

/* ================================================
   SHOP — Archive Grid
   ================================================ */
.shop-archive { max-width: 900px; margin: 0 auto; padding: 20px 0 40px; }
.shop-archive-header { text-align: center; margin-bottom: 32px; }
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.shop-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid #E8E4DE;
    overflow: hidden;
    transition: all 0.25s;
    position: relative;
    color: #1A1A1A;
    text-decoration: none;
    background: #FDFCFA;
}
.shop-card:hover {
    border-color: #DA7B3A;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.shop-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #DA7B3A;
    color: #FFF;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    z-index: 1;
}
.shop-card-image { aspect-ratio: 3/4; overflow: hidden; background: #F5F3EF; }
.shop-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.shop-card:hover .shop-card-image img { transform: scale(1.04); }
.shop-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #C9C4BA;
}
.shop-card-placeholder svg { width: 48px; height: 48px; }
.shop-card-body { padding: 14px; }
.shop-card-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
}
.shop-card-price { font-size: 16px; font-weight: 700; }
.shop-price-current { color: #DA7B3A; }
.shop-price-old, .shop-price-old-sm {
    text-decoration: line-through;
    color: #9B9B9B;
    font-weight: 400;
    font-size: 13px;
    margin-right: 6px;
}
.shop-card-out { font-size: 12px; color: #E74C3C; font-weight: 600; margin-top: 4px; display: block; }

[data-theme="dark"] .shop-card { background: #2A2724; border-color: #3A3632; color: #E8E4DE; }
[data-theme="dark"] .shop-card:hover { border-color: #FF9D5C; }
[data-theme="dark"] .shop-card-image { background: #35322E; }
[data-theme="dark"] .shop-card-badge { background: #FF9D5C; color: #1A1A1A; }
[data-theme="dark"] .shop-price-current { color: #FF9D5C; }

/* ================================================
   SHOP — Single Product Page
   ================================================ */
.shop-single { max-width: 860px; margin: 0 auto; padding: 20px 24px 40px; }
.shop-single-inner {}
.shop-single-top { display: flex; gap: 32px; margin-bottom: 32px; }
.shop-single-image {
    flex: 0 0 280px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E8E4DE;
}
.shop-single-image img { width: 100%; height: auto; display: block; }
.shop-single-info { flex: 1; }
.shop-single-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #1A1A1A;
}
.shop-single-price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.shop-single-price .shop-price-old { font-size: 18px; }
.shop-single-status {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}
.shop-status-available { color: #10b981; }
.shop-status-out { color: #E74C3C; }
.shop-status-preorder { color: #DA7B3A; }
.shop-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    background: #25D366;
    color: #FFF;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 20px;
}
.shop-whatsapp-btn:hover { background: #1EB954; transform: translateY(-1px); color: #FFF; }
.shop-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.shop-share-label { font-size: 13px; color: #9B9B9B; }
.shop-share-btn {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    color: #5C5C5C;
    transition: all 0.2s;
}
.shop-share-btn svg { width: 16px; height: 16px; }
.shop-share-btn:hover { background: #F5F3EF; color: #DA7B3A; }
.shop-single-content {
    border-top: 1px solid #F0EDE8;
    padding-top: 24px;
}
@media (max-width: 700px) {
    .shop-single-top { flex-direction: column; }
    .shop-single-image { flex: none; max-width: 300px; }
}

[data-theme="dark"] .shop-single-title { color: #E8E4DE; }
[data-theme="dark"] .shop-single-image { border-color: #443F39; }
[data-theme="dark"] .shop-share-btn { color: #B0AAA0; }
[data-theme="dark"] .shop-share-btn:hover { background: #35322E; color: #FF9D5C; }
[data-theme="dark"] .shop-single-content { border-top-color: #3A3632; }

/* Shop module on homepage */
.shopmod { margin-top: 32px; }
.shopmod-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.shopmod-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 18px; font-weight: 700; color: #1A1A1A;
}
.shopmod-title svg { width: 22px; height: 22px; color: #DA7B3A; }
.shopmod-link { font-size: 13px; font-weight: 600; color: #DA7B3A; }
.shopmod-link:hover { text-decoration: underline; }
.shopgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}
.shopc {
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    transition: all 0.2s;
}
.shopc:hover { transform: translateY(-2px); }
.shopc-cover {
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    background: #F5F3EF;
    margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center;
}
.shopc-cover svg { width: 32px; height: 32px; color: #C9C4BA; }
.shopc-name { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 2px; color: #1A1A1A; }
.shopc-price { font-size: 14px; font-weight: 700; color: #DA7B3A; }
.shop-price-old-sm { text-decoration: line-through; color: #9B9B9B; font-weight: 400; font-size: 12px; margin-right: 4px; }

[data-theme="dark"] .shopmod-title { color: #E8E4DE; }
[data-theme="dark"] .shopmod-title svg { color: #FF9D5C; }
[data-theme="dark"] .shopmod-link { color: #FF9D5C; }
[data-theme="dark"] .shopc-cover { background: #35322E; }
[data-theme="dark"] .shopc-name { color: #E8E4DE; }
[data-theme="dark"] .shopc-price { color: #FF9D5C; }

/* ================================================
   FOOTER
   ================================================ */
.footer {
    margin-top: 60px;
    border-top: 1px solid #E8E4DE;
    padding: 40px 24px 0;
    background: #FDFCFA;
}
.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}
.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.footer-logo-img {
    height: 50px;
    width: auto;
    display: block;
}
.footer-logo-dark { display: none; }
[data-theme="dark"] .footer-logo-light { display: none; }
[data-theme="dark"] .footer-logo-dark { display: block; }
.footer-desc { font-size: 13px; color: #7A7A7A; line-height: 1.5; }
.footer-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1A1A1A;
    margin-bottom: 12px;
}
.footer-link {
    display: block;
    font-size: 14px;
    color: #5C5C5C;
    padding: 3px 0;
    transition: color 0.2s;
}
.footer-link:hover { color: #DA7B3A; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social-link {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: #F5F3EF;
    color: #5C5C5C;
    transition: all 0.2s;
}
.footer-social-link svg { width: 18px; height: 18px; }
.footer-social-link:hover { background: #DA7B3A; color: #FFF; }
.footer-bottom {
    max-width: 900px;
    margin: 32px auto 0;
    padding: 20px 0;
    border-top: 1px solid #F0EDE8;
    text-align: center;
}
.footer-copyright {
    font-size: 13px;
    font-weight: 600;
    color: #5C5C5C;
    margin-bottom: 6px;
}
.footer-notice {
    font-size: 11px;
    color: #9B9B9B;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}
@media (max-width: 700px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

[data-theme="dark"] .footer { background: #1F1D1A; border-top-color: #3A3632; }
[data-theme="dark"] .footer-desc { color: #B0AAA0; }
[data-theme="dark"] .footer-heading { color: #E8E4DE; }
[data-theme="dark"] .footer-link { color: #B0AAA0; }
[data-theme="dark"] .footer-link:hover { color: #FF9D5C; }
[data-theme="dark"] .footer-social-link { background: #35322E; color: #B0AAA0; }
[data-theme="dark"] .footer-social-link:hover { background: #FF9D5C; color: #1A1A1A; }
[data-theme="dark"] .footer-bottom { border-top-color: #3A3632; }

/* ================================================
   STATIC PAGES (Kush Jemi, Kontakti)
   ================================================ */
.static-page { max-width: 760px; margin: 0 auto; padding: 20px 24px 40px; }
.static-page-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 24px;
}
.static-page-content { margin-bottom: 32px; }
[data-theme="dark"] .static-page-title { color: #E8E4DE; }

/* ================================================
   CONTACT FORM
   ================================================ */
.contact-form-wrap { margin-top: 32px; }
.contact-form { max-width: 560px; }
.contact-field { margin-bottom: 18px; }
.contact-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 6px;
}
.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E8E4DE;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Source Serif 4', Georgia, serif;
    background: #FFF;
    color: #1A1A1A;
    transition: border-color 0.2s;
}
.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #DA7B3A;
    box-shadow: 0 0 0 3px rgba(218,123,58,0.1);
}
.contact-field textarea { resize: vertical; min-height: 120px; }
.contact-submit {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 8px;
    background: #DA7B3A;
    color: #FFF;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.contact-submit:hover { background: #C46A2C; transform: translateY(-1px); }
.contact-result { margin-top: 14px; font-size: 14px; font-weight: 600; }
.contact-success { color: #10b981; }
.contact-error { color: #E74C3C; }

[data-theme="dark"] .contact-field label { color: #E8E4DE; }
[data-theme="dark"] .contact-field input,
[data-theme="dark"] .contact-field textarea {
    background: #2A2724;
    border-color: #443F39;
    color: #E8E4DE;
}
[data-theme="dark"] .contact-field input:focus,
[data-theme="dark"] .contact-field textarea:focus {
    border-color: #FF9D5C;
    box-shadow: 0 0 0 3px rgba(255,157,92,0.15);
}
[data-theme="dark"] .contact-submit { background: #FF9D5C; color: #1A1A1A; }
[data-theme="dark"] .contact-submit:hover { background: #FFB870; }

/* ================================================
   CATEGORY SHARE BUTTONS (in browser overlay)
   ================================================ */
.cat-browser-share { margin-top: 8px; }
.cat-share-row { display: flex; gap: 6px; align-items: center; }
.cat-share-btn {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    background: none;
    border: 1px solid #E8E4DE;
    color: #7A7A7A;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    text-decoration: none;
}
.cat-share-btn svg { width: 14px; height: 14px; }
.cat-share-btn:hover { border-color: #DA7B3A; color: #DA7B3A; background: rgba(218,123,58,0.05); }
[data-theme="dark"] .cat-share-btn { border-color: #443F39; color: #B0AAA0; }
[data-theme="dark"] .cat-share-btn:hover { border-color: #FF9D5C; color: #FF9D5C; background: rgba(255,157,92,0.1); }

/* Subcategory links on taxonomy page */
.seo-subcats {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.seo-subcat-link {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: #F5F3EF;
    color: #5C5C5C;
    border: 1px solid #E8E4DE;
    transition: all 0.2s;
}
.seo-subcat-link:hover { background: #DA7B3A; color: #FFF; border-color: #DA7B3A; }
.seo-archive-breadcrumb {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #DA7B3A;
    margin-bottom: 12px;
}
.seo-archive-breadcrumb:hover { text-decoration: underline; }
[data-theme="dark"] .seo-subcat-link { background: #35322E; color: #B0AAA0; border-color: #443F39; }
[data-theme="dark"] .seo-subcat-link:hover { background: #FF9D5C; color: #1A1A1A; border-color: #FF9D5C; }
[data-theme="dark"] .seo-archive-breadcrumb { color: #FF9D5C; }