:root {
    --ink: #102a43;
    --ink-2: #173f5f;
    --gold: #d5a021;
    --gold-light: #f3d985;
    --paper: #f7f5ef;
    --muted: #64748b;
    --line: #e6e9ee;
}
* { box-sizing: border-box; }
body { font-family: "Tajawal", sans-serif; color: #15263a; background: #fbfcfe; }
a { color: inherit; }
.site-navbar { background: linear-gradient(110deg, #0b1f33, #173f5f); box-shadow: 0 8px 24px rgba(10, 28, 45, .14); }
.brand-mark { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; color: #fff; text-decoration: none; }
.brand-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.btn-gold { color: #15263a; background: linear-gradient(135deg, var(--gold-light), var(--gold)); border: 0; font-weight: 700; box-shadow: 0 6px 16px rgba(213, 160, 33, .24); }
.btn-gold:hover { color: #0b1f33; filter: brightness(.96); }
.hero { position: relative; overflow: hidden; padding: 6.5rem 0 5.5rem; color: #fff; background: radial-gradient(circle at 20% 20%, rgba(213,160,33,.2), transparent 32%), linear-gradient(135deg,#0b1f33,#173f5f 65%,#22577a); }
.hero:after { content:""; position:absolute; inset:auto -10% -130px; height:230px; background:#fbfcfe; transform:rotate(-4deg); }
.hero .container { position:relative; z-index:2; }
.hero-badge { display:inline-flex; align-items:center; gap:.5rem; background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.18); padding:.5rem .85rem; border-radius:999px; margin-bottom:1.2rem; }
.hero h1 { max-width: 780px; font-size: clamp(2.2rem, 5vw, 4.1rem); font-weight: 800; line-height: 1.18; }
.hero p { max-width:720px; color:rgba(255,255,255,.75); font-size:1.12rem; }
.hero-search { margin-top:2rem; max-width:760px; background:#fff; border-radius:18px; padding:.55rem; display:flex; gap:.5rem; box-shadow:0 25px 60px rgba(0,0,0,.22); position:relative; }
.hero-search input { border:0; box-shadow:none!important; padding:.85rem 1rem; }
.live-search-wrap { position:relative; flex:1; }
.search-results { position:absolute; z-index:20; top:calc(100% + 12px); inset-inline:0; background:#fff; color:#172b3f; border-radius:14px; box-shadow:0 18px 45px rgba(15,23,42,.18); overflow:hidden; }
.search-result { display:flex; justify-content:space-between; gap:1rem; padding:.85rem 1rem; text-decoration:none; border-bottom:1px solid #eef1f5; }
.search-result:hover { background:#f6f8fb; }
.search-result small { color:var(--muted); white-space:nowrap; }
.search-empty { padding:1rem; color:var(--muted); }
.section-space { padding:4.5rem 0; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:1rem; margin-bottom:1.6rem; }
.section-heading h2 { font-weight:800; color:var(--ink); margin:0; }
.section-heading p { margin:0; color:var(--muted); }
.stat-card, .feature-card, .panel { background:#fff; border:1px solid var(--line); border-radius:20px; box-shadow:0 14px 40px rgba(32,55,78,.07); }
.stat-card { padding:1.4rem; display:flex; align-items:center; gap:1rem; }
.stat-card i { width:50px; height:50px; border-radius:16px; display:grid; place-items:center; font-size:1.35rem; color:var(--ink); background:#f7efd7; }
.stat-card strong { display:block; font-size:1.45rem; color:var(--ink); }
.stat-card span { color:var(--muted); }
.publication-card { background:#fff; border:1px solid var(--line); border-radius:20px; overflow:hidden; box-shadow:0 12px 34px rgba(32,55,78,.06); transition:.2s ease; }
.publication-card:hover { transform:translateY(-5px); box-shadow:0 20px 45px rgba(32,55,78,.12); }
.publication-cover { display:block; height:245px; position:relative; background:#e9eef4; overflow:hidden; }
.publication-cover img { width:100%; height:100%; object-fit:cover; transition:.3s; }
.publication-card:hover .publication-cover img { transform:scale(1.03); }
.cover-placeholder { width:100%; height:100%; display:grid; place-items:center; align-content:center; gap:.75rem; color:#fff; background:linear-gradient(135deg,#173f5f,#0b1f33); }
.cover-placeholder i { font-size:3rem; color:var(--gold-light); }
.type-chip { position:absolute; top:12px; right:12px; background:rgba(255,255,255,.92); padding:.35rem .65rem; border-radius:999px; font-size:.78rem; font-weight:700; color:var(--ink); }
.publication-body { padding:1.15rem; }
.publication-body h3 { font-size:1.08rem; font-weight:800; line-height:1.5; min-height:3.2rem; }
.publication-body h3 a { text-decoration:none; }
.publication-body p { color:var(--muted); min-height:3.6rem; font-size:.92rem; }
.publication-meta { display:flex; justify-content:space-between; gap:.75rem; color:var(--muted); font-size:.82rem; }
.feature-card { padding:1.7rem; height:100%; }
.feature-card .icon { width:56px; height:56px; border-radius:18px; display:grid; place-items:center; color:var(--ink); background:linear-gradient(135deg,#f8e8ac,#d5a021); font-size:1.45rem; margin-bottom:1rem; }
.feature-card h3 { font-size:1.15rem; font-weight:800; color:var(--ink); }
.page-header { background:var(--paper); border-bottom:1px solid #e9e4d6; padding:3.2rem 0; }
.page-header h1 { font-weight:800; color:var(--ink); }
.filter-panel { padding:1.25rem; position:sticky; top:88px; }
.form-control, .form-select { border-radius:12px; border-color:#dbe2ea; padding:.72rem .85rem; }
.form-control:focus, .form-select:focus { border-color:#caa033; box-shadow:0 0 0 .25rem rgba(213,160,33,.14); }
.auth-shell { min-height:calc(100vh - 76px); display:grid; place-items:center; padding:3rem 0; background:linear-gradient(135deg,#f7f5ef,#eef4f8); }
.auth-card { width:min(100%, 560px); padding:2rem; }
.item-hero { padding:3.5rem 0; background:linear-gradient(135deg,#f7f5ef,#eef4f8); border-bottom:1px solid var(--line); }
.item-cover { border-radius:20px; overflow:hidden; background:#173f5f; min-height:360px; box-shadow:0 20px 45px rgba(15,40,62,.18); }
.item-cover img { width:100%; height:100%; min-height:360px; object-fit:cover; }
.item-title { font-weight:800; color:var(--ink); line-height:1.35; }
.metadata-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.metadata-item { background:#fff; border:1px solid var(--line); border-radius:14px; padding:.85rem; }
.metadata-item small { display:block; color:var(--muted); }
.favorite-btn.active { background:#fff4cf; border-color:#d5a021; color:#8b6200; }
.dashboard-layout { padding:3rem 0; }
.dashboard-nav { padding:1rem; position:sticky; top:90px; }
.dashboard-nav a { display:flex; gap:.7rem; align-items:center; padding:.8rem .9rem; border-radius:12px; text-decoration:none; color:#334155; }
.dashboard-nav a:hover, .dashboard-nav a.active { background:#eef4f8; color:var(--ink); }
.table-modern { overflow:hidden; border-radius:16px; border:1px solid var(--line); }
.table-modern table { margin:0; }
.table-modern th { background:#f7f9fb; color:#475569; font-size:.85rem; }
.reader-page { background:#0d1720; min-height:100vh; }
.reader-toolbar { position:sticky; top:0; z-index:20; min-height:64px; color:#fff; background:#122536; border-bottom:1px solid rgba(255,255,255,.09); display:flex; align-items:center; }
.reader-toolbar a { color:#fff; text-decoration:none; }
.reader-grid { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:16px; padding:16px; max-width:1800px; margin:auto; }
.pdf-frame { width:100%; height:calc(100vh - 96px); border:0; border-radius:10px; background:#fff; }
.reader-sidebar { display:flex; flex-direction:column; gap:16px; }
.reader-info { background:#172b3f; color:#fff; border-radius:14px; padding:1rem; }
.reader-info p { color:rgba(255,255,255,.68); }
.ad-card { position:relative; border-radius:14px; overflow:hidden; background:#fff; border:1px solid rgba(255,255,255,.12); }
.ad-card img { width:100%; display:block; object-fit:cover; }
.ad-label { position:absolute; z-index:2; top:8px; left:8px; font-size:.67rem; background:rgba(0,0,0,.58); color:#fff; border-radius:999px; padding:.2rem .45rem; }
.reader-bottom-ad { display:none; margin:0 16px 16px; }
.site-footer { background:#0b1f33; color:#fff; }
.site-footer a { color:rgba(255,255,255,.68); display:block; text-decoration:none; margin:.45rem 0; }
.site-footer a:hover { color:#fff; }
.rich-content { line-height:2; font-size:1.05rem; }
.rich-content h2, .rich-content h3 { color:var(--ink); font-weight:800; margin-top:1.7rem; }
.empty-state { text-align:center; padding:3rem 1rem; color:var(--muted); }
.empty-state i { display:block; font-size:3rem; color:#cbd5e1; margin-bottom:1rem; }
@media (max-width: 991.98px) {
    .reader-grid { grid-template-columns:1fr; }
    .reader-sidebar .ad-card { display:none; }
    .reader-bottom-ad { display:block; }
    .pdf-frame { height:calc(100vh - 150px); }
    .filter-panel, .dashboard-nav { position:static; }
}
@media (max-width: 575.98px) {
    .hero { padding:4.5rem 0 4rem; }
    .hero-search { flex-direction:column; }
    .hero-search .btn { width:100%; }
    .publication-cover { height:220px; }
    .metadata-list { grid-template-columns:1fr; }
}

/* V2: الحسابات الأكاديمية، التصنيفات الهرمية، ومحرر المقالات */
.auth-card-wide { width:min(100%, 940px); }
.auth-icon { width:64px; height:64px; display:grid; place-items:center; margin:0 auto 1rem; border-radius:20px; font-size:1.7rem; color:var(--ink); background:linear-gradient(135deg,var(--gold-light),var(--gold)); }
.account-type-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.8rem; }
.account-type-card { position:relative; cursor:pointer; display:flex; flex-direction:column; gap:.35rem; min-height:150px; padding:1rem; border:1px solid var(--line); border-radius:16px; background:#fff; transition:.2s ease; }
.account-type-card:hover { transform:translateY(-2px); border-color:#d8b75d; }
.account-type-card.selected { border-color:var(--gold); background:#fffaf0; box-shadow:0 0 0 3px rgba(213,160,33,.12); }
.account-type-card input { position:absolute; opacity:0; pointer-events:none; }
.account-type-card > i { font-size:1.5rem; color:var(--ink-2); }
.account-type-card strong { color:var(--ink); }
.account-type-card small { color:var(--muted); line-height:1.55; }
.panel-soft { border:1px solid #e6e9ee; border-radius:16px; background:#f8fafc; }

.mega-dropdown { position:static; }
.mega-menu { width:min(1000px,calc(100vw - 2rem)); right:50%; transform:translateX(50%); border:0; border-radius:18px; box-shadow:0 24px 60px rgba(8,27,44,.22); }
.mega-menu-title { display:flex; align-items:center; gap:.55rem; color:var(--ink); font-weight:800; text-decoration:none; margin-bottom:.55rem; }
.mega-menu-title i { color:#a5790a; }
.mega-menu-links { display:grid; gap:.3rem; }
.mega-menu-links a { color:#526174; text-decoration:none; font-size:.9rem; padding:.18rem 0; }
.mega-menu-links a:hover { color:var(--ink); }
.mega-menu-footer { border-top:1px solid var(--line); margin-top:1rem; padding-top:.8rem; text-align:center; }
.mega-menu-footer a { color:var(--ink); font-weight:700; text-decoration:none; }

.category-multi { min-height:142px; }
.conditional-fields { border:1px solid var(--line); border-radius:16px; padding:1rem; background:#fbfcfe; }
.editor-word-count { color:var(--muted); font-size:.85rem; }
.word-editor { overflow:hidden; border:1px solid #cfd8e3; border-radius:16px; background:#eef2f6; box-shadow:0 12px 34px rgba(31,52,73,.08); }
.word-editor:focus-within { border-color:#caa033; box-shadow:0 0 0 .25rem rgba(213,160,33,.12); }
.word-editor-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem; padding:.6rem; border-bottom:1px solid #d8e0e8; background:#fff; position:sticky; top:76px; z-index:10; }
.word-editor-toolbar button, .word-editor-toolbar select { min-height:36px; border:1px solid transparent; border-radius:8px; color:#334155; background:#fff; }
.word-editor-toolbar button { min-width:36px; display:grid; place-items:center; }
.word-editor-toolbar button:hover, .word-editor-toolbar select:hover { border-color:#d7dee7; background:#f5f7fa; }
.word-editor-toolbar select { padding:.25rem .55rem; }
.toolbar-separator { width:1px; height:24px; background:#d9e0e8; margin:.15rem .25rem; }
.word-editor-page { width:min(100% - 2rem,850px); min-height:620px; margin:1rem auto; padding:3.4rem 3.7rem; outline:0; color:#1d2735; background:#fff; box-shadow:0 5px 24px rgba(28,45,65,.13); font-family:"Tajawal",sans-serif; font-size:1.04rem; line-height:2; }
.word-editor-page:empty:before { content:"ابدأ كتابة المقال هنا…"; color:#94a3b8; }
.word-editor-page h2 { font-size:1.6rem; font-weight:800; margin:1.5rem 0 .75rem; color:var(--ink); }
.word-editor-page h3 { font-size:1.3rem; font-weight:800; margin:1.3rem 0 .65rem; color:var(--ink); }
.word-editor-page blockquote { border-right:4px solid var(--gold); margin:1rem 0; padding:.7rem 1rem; background:#fffaf0; }
.word-editor-page table, .rich-content table { width:100%; border-collapse:collapse; margin:1rem 0; }
.word-editor-page td, .word-editor-page th, .rich-content td, .rich-content th { border:1px solid #cfd8e3; padding:.55rem; vertical-align:top; }
.word-editor-page th, .rich-content th { background:#f3f6f9; }
.word-editor-status { display:flex; justify-content:space-between; gap:1rem; padding:.45rem .8rem; color:#64748b; background:#fff; border-top:1px solid #d8e0e8; font-size:.78rem; }

.category-tree-list { list-style:none; padding:0; margin:0; }
.category-tree-list ul { list-style:none; padding-right:1.5rem; margin:.45rem 0; border-right:1px dashed #ccd5df; }
.category-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem .8rem; border:1px solid var(--line); border-radius:12px; margin:.45rem 0; background:#fff; }
.category-row.inactive { opacity:.58; background:#f7f7f7; }
.category-info { display:flex; align-items:center; gap:.65rem; min-width:0; }
.category-info i { width:34px; height:34px; border-radius:10px; display:grid; place-items:center; background:#f7efd7; color:var(--ink); }
.category-info small { display:block; color:var(--muted); }

.profile-summary { display:flex; align-items:center; gap:1rem; }
.profile-summary-icon { width:64px; height:64px; display:grid; place-items:center; border-radius:18px; background:#eef4f8; color:var(--ink); font-size:1.7rem; }
.rich-content a { color:#0b5cab; }
.rich-content blockquote { border-right:4px solid var(--gold); padding:.75rem 1rem; background:#fffaf0; }
.taxonomy-chip { display:inline-flex; align-items:center; padding:.35rem .65rem; border-radius:999px; background:#eef4f8; color:#334155; font-size:.82rem; text-decoration:none; margin:.15rem; }
.taxonomy-chip:hover { background:#dfeaf2; color:var(--ink); }

@media (max-width: 991.98px) {
    .account-type-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .mega-menu { width:100%; transform:none; right:auto; max-height:70vh; overflow:auto; }
    .word-editor-toolbar { top:0; }
    .word-editor-page { min-height:500px; padding:2.2rem 1.5rem; }
}
@media (max-width: 575.98px) {
    .account-type-grid { grid-template-columns:1fr; }
    .account-type-card { min-height:auto; }
    .word-editor-page { width:calc(100% - 1rem); margin:.5rem auto; padding:1.5rem 1rem; }
    .word-editor-status { flex-direction:column; gap:.2rem; }
}

/* V3: المنصة المتكاملة، المتجر، الإدارة والاستجابة للهاتف */
.brand-logo{width:42px;height:42px;object-fit:contain;border-radius:10px;background:#fff}.verification-banner{background:#fff3cd;color:#6b4f00;padding:.65rem 0;border-bottom:1px solid #ead48d}.verification-banner a{color:inherit;font-weight:700}.mobile-bottom-nav{display:none}.dashboard-avatar{width:64px;height:64px;border-radius:18px;object-fit:cover}.dashboard-nav-label{margin:.75rem .85rem .25rem;color:#94a3b8;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.dash-kpi{display:flex;flex-direction:column;align-items:flex-start;gap:.2rem;padding:1.1rem;border:1px solid var(--line);border-radius:18px;background:#fff;text-decoration:none;color:var(--ink);box-shadow:0 8px 24px rgba(18,39,58,.04)}.dash-kpi i{font-size:1.35rem;color:var(--gold)}.dash-kpi strong{font-size:1.45rem;line-height:1.2}.dash-kpi span{color:var(--muted);font-size:.83rem}.publisher-kpis .dash-kpi{background:linear-gradient(145deg,#fff,#fbfaf6)}

.wizard-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:1.25rem;align-items:start}.wizard-steps{position:sticky;top:95px;padding:1rem;border:1px solid var(--line);border-radius:18px;background:#fff}.wizard-steps button{width:100%;display:flex;align-items:center;gap:.75rem;border:0;background:transparent;padding:.8rem;border-radius:12px;text-align:start;color:#64748b}.wizard-steps button span{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#eef2f6;font-weight:800}.wizard-steps button.active{background:#fff8e7;color:var(--ink);font-weight:800}.wizard-steps button.active span{background:var(--gold);color:#fff}.wizard-form{min-width:0}.wizard-pane{display:none;padding:1.5rem;border:1px solid var(--line);border-radius:18px;background:#fff}.wizard-pane.active{display:block}.wizard-pane>h2{font-size:1.35rem;font-weight:800;margin-bottom:1.25rem}.wizard-footer{position:sticky;bottom:12px;z-index:15;display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;padding:.75rem 1rem;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);box-shadow:0 12px 30px rgba(15,35,52,.12)}.review-summary{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:1.2rem;border-radius:16px;background:#f7fafc}.review-summary>div>i{font-size:2rem;color:#198754}.review-summary h3{font-weight:800;margin:.4rem 0}.review-summary ul{margin:0;align-self:center;line-height:2}

.admin-shell{background:#f5f7fa;min-height:calc(100vh - 74px)}.admin-nav{position:sticky;top:88px;display:grid;gap:.25rem}.admin-nav-title{display:flex;align-items:center;gap:.7rem;padding:.55rem .65rem .9rem;border-bottom:1px solid var(--line);margin-bottom:.5rem}.admin-nav-title>i{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:var(--ink);color:#fff}.admin-nav-title small{display:block;color:var(--muted)}.admin-nav>a{display:flex;align-items:center;gap:.7rem;padding:.7rem .75rem;border-radius:11px;color:#475569;text-decoration:none}.admin-nav>a:hover,.admin-nav>a.active{background:#eaf0f5;color:var(--ink);font-weight:700}.admin-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.admin-stat{display:flex;align-items:center;gap:.85rem;padding:1rem;border-radius:18px;background:#fff;border:1px solid var(--line)}.admin-stat>i{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#edf3f7;color:var(--ink);font-size:1.25rem}.admin-stat strong,.admin-stat span,.admin-stat small{display:block}.admin-stat strong{font-size:1.3rem}.admin-stat span{font-weight:700}.admin-stat small{color:var(--muted)}.period-filter{display:flex;gap:.35rem;padding:.3rem;border:1px solid var(--line);border-radius:12px;background:#fff}.period-filter button{border:0;border-radius:9px;padding:.45rem .7rem;background:transparent}.period-filter button.active{background:var(--ink);color:#fff}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.module-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.8rem;padding:1rem;border:1px solid var(--line);border-radius:17px;background:#fff;text-decoration:none;color:var(--ink)}.module-card>i:first-child{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#fff5d9;color:#8b6200;font-size:1.25rem}.module-card h3{font-size:1rem;font-weight:800;margin:0}.module-card p{font-size:.82rem;color:var(--muted);margin:.2rem 0 0}.order-mini{display:flex;justify-content:space-between;gap:1rem;padding:.75rem 0;border-bottom:1px solid var(--line)}.order-mini:last-child{border-bottom:0}.order-mini small,.order-mini b{display:block}

.settings-section{padding:1rem 0;border-bottom:1px solid var(--line)}.settings-section:first-child{padding-top:0}.settings-section:last-of-type{border-bottom:0}.settings-section h2,.settings-card h2{font-size:1.08rem;font-weight:800;margin-bottom:1rem}.settings-card h2 i{color:var(--gold);margin-inline-end:.35rem}.account-settings-grid{display:grid;gap:1rem}.settings-switches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.settings-switches .form-check{padding:1rem 3rem 1rem 1rem;border:1px solid var(--line);border-radius:13px;background:#fbfcfd}.avatar-editor{display:flex;align-items:center;gap:1rem}.avatar-editor img,.avatar-editor>span{width:78px;height:78px;border-radius:20px;object-fit:cover;display:grid;place-items:center;background:#e9eff4;color:var(--ink);font-size:2rem;font-weight:800}.avatar-editor>div{flex:1}.social-connections{display:grid;gap:.6rem}.social-connection{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem;border:1px solid var(--line);border-radius:13px}.social-connection>div{display:flex;align-items:center;gap:.75rem}.social-connection i{font-size:1.35rem}.social-connection small{display:block;color:var(--muted)}

.shop-shell{background:#f7f8fa;min-height:70vh}.shop-hero{display:grid;grid-template-columns:1.4fr .8fr;align-items:center;gap:2rem;padding:2rem;border-radius:24px;background:linear-gradient(135deg,var(--ink),#173f5f);color:#fff}.shop-hero>div>span{color:#f3cf6f;font-weight:800}.shop-hero h1{font-weight:800;margin:.5rem 0}.shop-hero p{color:rgba(255,255,255,.74)}.shop-hero form{display:flex;gap:.5rem}.shop-filters{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.5rem 0}.shop-filters a{padding:.55rem 1rem;border:1px solid var(--line);border-radius:999px;background:#fff;color:#475569;text-decoration:none}.shop-filters a.active{background:var(--ink);color:#fff;border-color:var(--ink)}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem}.product-card{overflow:hidden;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(20,39,57,.05)}.product-cover{height:280px;display:grid;place-items:center;background:#e9eff4}.product-cover img{width:100%;height:100%;object-fit:cover}.product-cover>span{font-size:3rem;color:#6b7d8d}.product-card-body{padding:1rem}.product-card-body h2{font-size:1.02rem;font-weight:800;line-height:1.5;margin:.55rem 0}.product-card-body h2 a{text-decoration:none;color:var(--ink)}.product-card-body>p:not(.author-line){font-size:.86rem;color:var(--muted)}.product-types{display:flex;gap:.35rem}.product-types span{font-size:.7rem;padding:.2rem .45rem;border-radius:999px;background:#eef3f7}.product-card-footer{display:flex;justify-content:space-between;align-items:center}.product-card-footer strong{color:#8b6200}.product-detail{display:grid;grid-template-columns:280px minmax(0,1fr) 330px;gap:2rem;align-items:start}.product-detail-cover{overflow:hidden;min-height:380px;border-radius:22px;background:var(--ink);display:grid;place-items:center;box-shadow:0 18px 40px rgba(19,40,58,.16)}.product-detail-cover img{width:100%;height:100%;min-height:380px;object-fit:cover}.product-detail-cover span{color:#fff;font-size:4rem}.product-detail-main h1{font-weight:800}.product-detail-main h2{font-size:1.1rem;color:var(--muted)}.author-line{color:#64748b;font-size:.88rem}.rich-summary{line-height:1.9;color:#475569}.book-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin:1.2rem 0}.book-meta>div{padding:.7rem;border:1px solid var(--line);border-radius:12px;background:#fff}.book-meta small,.book-meta strong{display:block}.purchase-box{position:sticky;top:95px}.variant-options{display:grid;gap:.65rem}.variant-option{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.7rem;padding:.85rem;border:1px solid var(--line);border-radius:14px;cursor:pointer}.variant-option:has(input:checked){border-color:var(--gold);background:#fffaf0}.variant-option.disabled{opacity:.5;cursor:not-allowed}.variant-option small{display:block;color:var(--muted)}.purchase-trust{display:grid;gap:.55rem;margin-top:1rem;color:#475569;font-size:.83rem}.purchase-trust i{color:#198754;margin-inline-end:.35rem}

.cart-item{display:grid;grid-template-columns:90px minmax(0,1fr) auto auto;gap:1rem;align-items:center;padding:1rem;border-bottom:1px solid var(--line)}.cart-cover{width:90px;height:115px;border-radius:12px;overflow:hidden;background:#e9eff4}.cart-cover img{width:100%;height:100%;object-fit:cover}.cart-info h2{font-size:1rem;font-weight:800}.cart-qty{width:90px}.cart-summary,.payment-summary{position:sticky;top:95px}.checkout-line{display:flex;justify-content:space-between;gap:1rem;padding:.7rem 0;border-bottom:1px solid var(--line)}.checkout-total{display:flex;justify-content:space-between;font-size:1.1rem;font-weight:800;padding-top:1rem}.payment-options{display:grid;gap:.7rem}.account-order,.ticket-row{padding:1rem;border-bottom:1px solid var(--line)}.account-order:last-child,.ticket-row:last-child{border-bottom:0}.gateway-admin-grid,.language-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}

.notification-list{overflow:hidden}.notification-row{display:grid;grid-template-columns:auto 1fr auto;gap:1rem;align-items:start;padding:1rem;border-bottom:1px solid var(--line)}.notification-row.unread{background:#fffaf0}.notification-row h2{font-size:1rem;font-weight:800;margin:0 0 .25rem}.notification-row p{margin:0;color:#475569}.notification-row small{color:var(--muted)}.notification-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#edf3f7;color:var(--ink)}.notification-actions{display:flex;gap:.4rem}.locked-content>i{font-size:3rem;color:#aab5c0}.locked-content h2{font-weight:800;margin-top:1rem}

.reader-grid-clean{grid-template-columns:1fr}.reader-document-wrap{position:relative;min-width:0}.reader-license-watermark{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);pointer-events:none;padding:.35rem .7rem;border-radius:999px;background:rgba(255,255,255,.74);color:rgba(24,41,55,.56);font-size:.7rem;max-width:80%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reader-icon-btn{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.08)}

@media (max-width:1199.98px){.admin-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-detail{grid-template-columns:240px minmax(0,1fr)}.purchase-box{grid-column:1/-1;position:static}.admin-nav{position:static}}
@media (max-width:991.98px){body{padding-bottom:72px}.mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);align-items:end;left:0;right:0;bottom:0;z-index:1050;padding:.45rem max(.45rem,env(safe-area-inset-right)) calc(.35rem + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(14px);box-shadow:0 -8px 24px rgba(20,36,51,.08)}.mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:.12rem;color:#64748b;text-decoration:none;font-size:.68rem}.mobile-bottom-nav i{font-size:1.2rem}.mobile-bottom-nav .mobile-publish{width:52px;height:52px;justify-self:center;margin-top:-25px;border-radius:50%;justify-content:center;background:var(--gold);color:#fff;box-shadow:0 8px 22px rgba(213,160,33,.38)}.wizard-layout{grid-template-columns:1fr}.wizard-steps{position:static;display:flex;overflow:auto;gap:.35rem}.wizard-steps button{min-width:max-content;width:auto}.wizard-steps button span{flex:0 0 30px}.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-hero{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-detail{grid-template-columns:210px minmax(0,1fr)}.settings-switches{grid-template-columns:1fr}.admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gateway-admin-grid,.language-settings-grid{grid-template-columns:1fr}.cart-summary,.payment-summary{position:static}}
@media (max-width:767.98px){.product-detail{grid-template-columns:1fr}.product-detail-cover{width:min(100%,280px);margin:auto}.review-summary{grid-template-columns:1fr}.module-grid{grid-template-columns:1fr}.admin-stat-grid{grid-template-columns:1fr 1fr}.cart-item{grid-template-columns:70px 1fr}.cart-cover{width:70px;height:92px}.cart-qty,.cart-item>strong{grid-column:2}.notification-row{grid-template-columns:auto 1fr}.notification-actions{grid-column:2}.shop-hero{padding:1.35rem}.shop-hero form{flex-direction:column}.wizard-pane{padding:1rem}.wizard-footer{bottom:78px}.word-editor-page{min-height:420px}.avatar-editor{align-items:flex-start}}
@media (max-width:575.98px){.product-grid{grid-template-columns:1fr 1fr;gap:.7rem}.product-cover{height:220px}.product-card-body{padding:.75rem}.product-card-body h2{font-size:.9rem}.product-card-body>p:not(.author-line){display:none}.product-card-footer{align-items:flex-end;gap:.35rem}.dashboard-kpis{gap:.65rem}.dash-kpi{padding:.85rem}.admin-stat-grid{grid-template-columns:1fr}.period-filter{width:100%;overflow:auto}.settings-card{padding:1rem!important}.social-connection{align-items:flex-start}.social-connection>div{min-width:0}.social-connection small{overflow:hidden;text-overflow:ellipsis}.wizard-steps button{padding:.55rem}.wizard-steps button:not(.active){font-size:0}.wizard-steps button:not(.active) span{font-size:.8rem}.reader-toolbar strong{font-size:.82rem}.pdf-frame{height:calc(100vh - 148px)}.metadata-list{grid-template-columns:1fr}.item-cover{min-height:300px}.item-cover img{min-height:300px}}

.report-bar{margin:1rem 0}.report-bar>div{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.35rem}.report-bar>i{display:block;height:.55rem;border-radius:999px;background:linear-gradient(90deg,var(--gold,#b28a3b) var(--bar),#eee var(--bar));overflow:hidden}

/* V4 paginated PDF reader */
.reader-document-wrap.reader-paginated{overflow:visible;background:#dfe5e8;min-height:100vh;padding:20px 12px 90px}.pdf-pages{display:flex;flex-direction:column;align-items:center;gap:22px;width:100%;margin:auto}.pdf-page-shell{width:100%;display:flex;flex-direction:column;align-items:center;scroll-margin-top:82px}.pdf-page-heading{width:min(1100px,100%);display:flex;justify-content:flex-end;color:#526675;font-size:.78rem;padding:0 8px 5px}.pdf-page-stage{position:relative;min-height:420px;width:min(1100px,100%);display:grid;place-items:center}.pdf-page-stage canvas{display:block;max-width:100%;height:auto;background:#fff;box-shadow:0 10px 34px #10283b33;border-radius:3px}.pdf-page-spinner{width:38px;height:38px;border:4px solid #cbd5db;border-top-color:#a87918;border-radius:50%;animation:pdfspin .8s linear infinite;position:absolute}.pdf-page-shell.is-rendered .pdf-page-spinner{display:none}@keyframes pdfspin{to{transform:rotate(360deg)}}.pdf-inline-ad{width:min(900px,calc(100% - 12px));padding:12px;border:1px solid #cad5dc;border-radius:18px;background:#f8fafb;box-shadow:0 8px 28px #10283b12}.pdf-inline-ad .ad-card{margin:0;border:0;box-shadow:none;background:#fff}.pdf-inline-ad-note{text-align:center;color:#6a7984;font-size:.72rem;margin:0 0 8px}.reader-loading{width:min(700px,100%);margin:80px auto;background:#fff;padding:32px;border-radius:24px;text-align:center;box-shadow:0 15px 50px #10283b20}.reader-loading-error{color:#8b1e17}.pdf-native-fallback{width:100%;height:calc(100vh - 80px);border:0;background:#fff}.reader-zoom-controls{display:flex;align-items:center;gap:4px}.reader-zoom-controls button{border:1px solid #ffffff44;background:#ffffff12;color:#fff;width:34px;height:34px;border-radius:10px}.reader-zoom-controls span{min-width:48px;text-align:center;font-size:.78rem}.reader-progress-pill{font-size:.75rem;background:#ffffff18;border:1px solid #ffffff2d;border-radius:20px;padding:6px 10px}@media(max-width:991.98px){.reader-document-wrap.reader-paginated{padding:12px 4px 90px}.pdf-page-stage{min-height:300px}.pdf-inline-ad{border-radius:12px}.reader-toolbar .reader-progress-pill{display:none}}@media(max-width:575.98px){.reader-page .reader-toolbar{padding-inline:2px}.reader-zoom-controls button{width:30px;height:30px}.reader-document-wrap.reader-paginated{padding-inline:0}.pdf-page-stage canvas{border-radius:0}.pdf-page-heading{padding-inline:10px}}

/* V4 payments, banking and seller fulfillment */
.bank-account-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:1rem;align-items:center;height:100%;padding:1rem;border:1px solid var(--line);border-radius:18px;background:#fff;cursor:pointer;transition:.2s ease;box-shadow:0 8px 24px rgba(16,40,59,.05)}
.bank-account-card:has(input:checked){border-color:var(--gold);box-shadow:0 0 0 3px rgba(213,160,33,.13),0 12px 28px rgba(16,40,59,.08)}
.bank-account-card>input{position:absolute;inset-inline-start:12px;top:12px}.bank-account-card strong,.bank-account-card small,.bank-account-card code{display:block}.bank-account-card p{margin:.4rem 0;color:#526675}.bank-account-card code{font-size:.75rem;white-space:normal;word-break:break-all}.bank-account-card img{width:82px;height:82px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:#fff;padding:4px}
.bank-admin-row{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1rem 0;border-bottom:1px solid var(--line)}.bank-admin-row:last-child{border-bottom:0}.bank-admin-row img,.bank-qr-preview{width:72px;height:72px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:#fff;padding:4px}.bank-admin-row strong,.bank-admin-row small,.bank-admin-row code{display:block}.bank-icon{width:58px;height:58px;border-radius:15px;display:grid;place-items:center;background:#eef3f7;font-size:1.35rem}
.gateway-list{display:grid;gap:.55rem}.gateway-list-item{display:grid;grid-template-columns:44px 1fr;gap:.8rem;align-items:center;padding:.85rem;border-radius:14px;text-decoration:none;border:1px solid transparent}.gateway-list-item:hover,.gateway-list-item.active{background:#fff9e9;border-color:#ead69b}.gateway-list-item>i{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#eef3f7;font-size:1.3rem}.gateway-list-item strong,.gateway-list-item small{display:block}.gateway-list-item small{color:var(--muted)}
.seller-fulfillment{padding:1rem 0;border-bottom:1px solid var(--line)}.seller-fulfillment:last-child{border-bottom:0}.seller-fulfillment-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.seller-fulfillment-head strong,.seller-fulfillment-head small{display:block}.seller-fulfillment-head small{color:var(--muted)}.fulfillment-address{display:flex;gap:.55rem;padding:.7rem;border-radius:12px;background:#f6f8fa;color:#42576a}.proof-review-form{min-width:220px}.payment-summary{display:grid;grid-template-columns:1fr auto;gap:.45rem 1rem;padding:1rem;margin:1rem 0;border-radius:16px;background:#f6f8fa}.payment-summary strong,.payment-summary b{text-align:end}
@media(max-width:767.98px){.bank-account-card{grid-template-columns:minmax(0,1fr) 72px}.bank-account-card img{width:68px;height:68px}.bank-admin-row{align-items:flex-start;flex-direction:column}.seller-fulfillment-head{flex-direction:column}.seller-fulfillment .d-flex.justify-content-between{align-items:flex-start;flex-direction:column;gap:.5rem}}

/* V4 admin monitoring alerts */
.period-filter a{border:0;border-radius:9px;padding:.45rem .7rem;background:transparent;color:var(--ink);text-decoration:none;white-space:nowrap}.period-filter a.active,.period-filter a:hover{background:var(--ink);color:#fff}.admin-alert-card{display:flex;align-items:center;gap:.8rem;height:100%;padding:1rem;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);text-decoration:none;transition:transform .15s ease,box-shadow .15s ease}.admin-alert-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(16,40,59,.08)}.admin-alert-card>i{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#fff4d8;color:#8b6200;font-size:1.2rem}.admin-alert-card strong,.admin-alert-card span{display:block}.admin-alert-card strong{font-size:1.2rem}.admin-alert-card span{font-size:.8rem;color:var(--muted)}

/* ========================= V5 ARABIC PROFESSIONAL UI ========================= */
.eyebrow{display:inline-flex;align-items:center;gap:.4rem;font-size:.78rem;font-weight:800;letter-spacing:.04em;color:var(--gold);margin-bottom:.35rem}.nav-icon-btn{display:inline-flex;align-items:center;gap:.4rem}.global-search-modal .modal-content{border:0;border-radius:26px;overflow:visible;box-shadow:0 35px 90px rgba(4,24,40,.28)}.search-modal-box{position:relative}.search-modal-box>i{position:absolute;right:22px;top:20px;font-size:1.3rem;color:#6d7d89;z-index:2}.search-modal-box .form-control{height:64px;border-radius:18px;padding-right:58px;font-size:1.05rem;border:1px solid rgba(11,38,61,.14);background:#f7f9fb}.search-modal-box .search-results{position:relative;top:8px;max-height:340px;overflow:auto;border:1px solid rgba(11,38,61,.1);border-radius:16px;background:white;box-shadow:0 20px 50px rgba(11,38,61,.12);z-index:10}.search-shortcuts{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.25rem}.search-shortcuts a{display:flex;align-items:center;gap:.5rem;padding:.7rem 1rem;border-radius:999px;background:#f3f6f8;color:var(--ink);font-weight:700;text-decoration:none}.search-shortcuts a:hover{background:var(--ink);color:#fff}
.cart-drawer{width:min(440px,100vw)!important}.cart-drawer .offcanvas-header{padding:1.4rem 1.4rem .5rem}.cart-drawer .offcanvas-title{font-weight:800}.cart-drawer-loading,.cart-drawer-empty{min-height:360px;display:grid;place-items:center;text-align:center;align-content:center;gap:.7rem;color:#657681}.cart-drawer-empty i{font-size:3rem;color:var(--gold)}.cart-drawer-items{display:grid;gap:.85rem}.cart-drawer-item{display:grid;grid-template-columns:72px 1fr 34px;gap:.8rem;padding:.8rem;border:1px solid rgba(11,38,61,.1);border-radius:18px;background:#fff}.cart-drawer-cover{width:72px;height:94px;border-radius:12px;overflow:hidden;background:#edf1f3;display:grid;place-items:center}.cart-drawer-cover img{width:100%;height:100%;object-fit:cover}.cart-drawer-info h3{font-size:.95rem;font-weight:800;margin:0 0 .25rem;line-height:1.4}.cart-drawer-info small{display:block;color:#71808a}.cart-drawer-info strong{display:block;color:var(--ink);margin:.35rem 0}.cart-drawer-remove{border:0;background:transparent;color:#bf3442;align-self:start}.drawer-qty{display:inline-flex;align-items:center;border:1px solid #dbe2e7;border-radius:999px;overflow:hidden}.drawer-qty button{width:30px;height:28px;border:0;background:#f3f5f7}.drawer-qty b{min-width:28px;text-align:center}.digital-one-copy{font-size:.75rem;background:#eef7f4;color:#16765d;border-radius:999px;padding:.25rem .6rem}.cart-drawer-summary{position:sticky;bottom:0;background:#fff;border-top:1px solid #e8ecef;margin-top:1.1rem;padding:1.2rem 0}.cart-drawer-summary>div:first-child{display:flex;justify-content:space-between;margin-bottom:1rem;font-size:1.05rem}
.checkout-hero{padding:1rem 0}.checkout-hero h1{font-weight:900;color:var(--ink)}.section-icon-title{display:flex;align-items:flex-start;gap:1rem;margin-bottom:1.25rem}.section-icon-title>i{width:45px;height:45px;border-radius:14px;display:grid;place-items:center;background:rgba(213,160,33,.14);color:#9b7114;font-size:1.25rem}.section-icon-title h2{font-size:1.12rem;font-weight:900;margin:0}.section-icon-title p{font-size:.88rem;color:#71808a;margin:.25rem 0 0}.checkout-payment-rule{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:.85rem;padding:1rem;border:1px solid #e3e8eb;border-radius:16px;margin:.7rem 0}.checkout-payment-rule>i{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#eff4f6;color:var(--ink)}.checkout-payment-rule span{display:block;font-size:.84rem;color:#71808a}.checkout-seller-group{padding:.8rem 0;border-bottom:1px dashed #d8e0e5}.checkout-seller-group>strong{font-size:.82rem;color:#7a631e}.checkout-summary h2{font-weight:900;font-size:1.15rem}
.digital-payment-shell{max-width:1050px;margin:auto}.digital-payment-header{display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:1rem;background:linear-gradient(135deg,var(--ink),#164764);color:#fff;border-radius:24px;padding:1.4rem 1.6rem;margin-bottom:1.2rem;box-shadow:0 20px 50px rgba(11,38,61,.2)}.digital-payment-header h1{font-size:1.35rem;font-weight:900;margin:0}.digital-payment-header p{margin:.3rem 0 0;color:rgba(255,255,255,.7)}.digital-payment-header>strong{font-size:1.25rem;color:#f6d983}.payment-lock{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:rgba(255,255,255,.12);font-size:1.35rem}.bank-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.bank-transfer-card{position:relative;display:grid;grid-template-columns:1fr 92px;gap:1rem;align-items:center;padding:1.1rem;border:2px solid transparent;background:#fff;border-radius:20px;box-shadow:0 8px 28px rgba(10,35,53,.08);cursor:pointer;transition:.2s}.bank-transfer-card:hover{transform:translateY(-2px);box-shadow:0 14px 35px rgba(10,35,53,.12)}.bank-transfer-card:has(input:checked){border-color:var(--gold);box-shadow:0 0 0 4px rgba(213,160,33,.12)}.bank-transfer-card>input{position:absolute;opacity:0}.bank-radio-mark{position:absolute;top:12px;left:12px;width:20px;height:20px;border:2px solid #c8d0d6;border-radius:50%}.bank-transfer-card:has(input:checked) .bank-radio-mark{border:6px solid var(--gold)}.bank-transfer-title{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.bank-transfer-title>i{width:40px;height:40px;border-radius:12px;background:#edf2f5;display:grid;place-items:center;color:var(--ink)}.bank-transfer-title strong,.bank-transfer-title small{display:block}.copy-data-row{display:grid;grid-template-columns:92px 1fr 34px;align-items:center;gap:.35rem;margin:.45rem 0;font-size:.83rem}.copy-data-row span{color:#71808a}.copy-data-row code{color:var(--ink);word-break:break-all}.copy-data-btn{width:31px;height:31px;border:0;border-radius:9px;background:#edf2f5;color:var(--ink)}.copy-data-btn.is-copied{background:#dff5eb;color:#147255}.bank-qr-open{border:0;background:#f6f8f9;border-radius:15px;padding:.5rem;display:flex;flex-direction:column;gap:.25rem;align-items:center}.bank-qr-open img{width:76px;height:76px;object-fit:contain}.bank-qr-open span{font-size:.7rem;color:#6a7983}.bank-qr-large{max-height:70vh}.proof-upload-card{border-top:4px solid var(--gold)}
.bank-editor,.seller-bank-card,.bank-review-card{border:1px solid rgba(11,38,61,.09)}.bank-list-grid,.bank-review-list{display:grid;gap:1rem}.seller-bank-card,.bank-review-card{border-radius:18px;padding:1rem;background:#fff}.seller-bank-card.is-default{box-shadow:inset 4px 0 0 var(--gold)}.seller-bank-head{display:grid;grid-template-columns:42px 1fr auto;gap:.7rem;align-items:center}.seller-bank-head small{display:block;color:#71808a}.bank-logo-placeholder,.bank-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#eef3f5;color:var(--ink)}.bank-number{display:block;margin:.8rem 0;padding:.7rem;border-radius:11px;background:#f5f7f8;word-break:break-all}.bank-review-data{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin:1rem 0}.bank-review-data div{background:#f6f8f9;border-radius:12px;padding:.65rem}.bank-review-data dt{font-size:.72rem;color:#71808a}.bank-review-data dd{margin:0;font-weight:700}.bank-qr-preview{width:90px;height:90px;object-fit:contain;border:1px solid #e1e6e9;border-radius:12px}
.admin-order-grid{display:grid;gap:1rem}.admin-order-card{border:1px solid rgba(11,38,61,.09);border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(11,38,61,.06);overflow:hidden}.admin-order-card>header,.admin-order-card>footer{display:flex;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;background:#f8fafb}.admin-order-card header>div{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}.admin-order-card header small{color:#71808a}.admin-order-body{padding:1.2rem}.admin-order-body h2{font-size:1rem;font-weight:800}.order-parties{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin:1rem 0}.order-parties>div{padding:.8rem;border-radius:14px;background:#f5f7f8}.order-parties span,.order-parties small{display:block;color:#71808a;font-size:.75rem}.tracking-panel{display:flex;align-items:center;gap:.9rem;border:1px solid #dfe7eb;border-radius:15px;padding:.8rem 1rem;margin-top:.9rem;background:#f8fbfc}.tracking-panel>i{font-size:1.4rem;color:var(--gold)}.tracking-panel div{flex:1}.tracking-panel b,.tracking-panel code{display:block}.tracking-panel a{font-size:.82rem}
.customer-orders,.review-order-grid,.review-admin-grid{display:grid;gap:1rem}.customer-order-card{background:#fff;border:1px solid rgba(11,38,61,.09);border-radius:22px;padding:1.2rem;box-shadow:0 10px 28px rgba(11,38,61,.06)}.customer-order-card>header{display:flex;justify-content:space-between;gap:1rem;align-items:center}.customer-order-card header>div{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}.customer-order-card h2{font-size:1rem;font-weight:800;margin:1rem 0}.order-status-track{display:grid;grid-template-columns:repeat(4,1fr);gap:.35rem;margin:1rem 0}.order-status-track span{position:relative;text-align:center;font-size:.72rem;color:#97a3aa;padding-top:30px}.order-status-track span i{position:absolute;top:0;right:50%;transform:translateX(50%);width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#e8edef}.order-status-track .is-done{color:#28785e;font-weight:700}.order-status-track .is-done i{background:#28785e;color:#fff}.order-meta-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}.order-meta-grid>div{background:#f6f8f9;border-radius:13px;padding:.7rem}.order-meta-grid span{display:block;color:#71808a;font-size:.72rem}.customer-order-card>footer{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1rem}.verified-purchase{display:inline-flex;align-items:center;gap:.35rem;color:#16745a;font-size:.8rem;font-weight:700}.review-order-card header{display:flex;justify-content:space-between}.review-order-card header small{display:block;color:#71808a}.rating-input{display:inline-flex;flex-direction:row-reverse;margin:.7rem 0}.rating-input input{display:none}.rating-input label{font-size:1.6rem;color:#d6dde1;cursor:pointer}.rating-input input:checked~label,.rating-input label:hover,.rating-input label:hover~label{color:#f2b91c}.stars-static{color:#f2b91c}.review-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.partners-strip{margin-top:4rem;background:#fff;border-block:1px solid #e5eaed;padding:1rem 0 1.2rem;overflow:hidden}.partners-strip-head{display:flex;align-items:center;gap:.8rem;margin-bottom:.75rem}.partners-strip-head span{font-weight:900;color:var(--ink)}.partners-strip-head small{color:#8a969e}.partners-marquee{overflow:hidden;mask-image:linear-gradient(to left,transparent,#000 8%,#000 92%,transparent)}.partners-track{display:flex;width:max-content;gap:2.2rem;animation:partners-scroll 35s linear infinite}.partners-track:hover{animation-play-state:paused}.partner-logo-item{width:150px;height:72px;display:flex;align-items:center;justify-content:center;gap:.5rem;flex-direction:column;text-decoration:none;color:#566771;filter:grayscale(1);opacity:.75;transition:.2s}.partner-logo-item:hover{filter:none;opacity:1}.partner-logo-item img{max-width:120px;max-height:42px;object-fit:contain}.partner-logo-item span{font-size:.68rem;text-align:center}.partner-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.partner-admin-grid article{display:grid;grid-template-columns:80px 1fr auto;align-items:center;gap:1rem}.partner-admin-grid img{width:80px;height:55px;object-fit:contain}.partner-admin-grid small{display:block}.mobile-bottom-nav button{border:0;background:transparent;color:inherit;display:flex;flex-direction:column;align-items:center;font-size:inherit}
@keyframes partners-scroll{from{transform:translateX(0)}to{transform:translateX(50%)}}
@media(max-width:991px){.bank-choice-grid{grid-template-columns:1fr}.digital-payment-header{grid-template-columns:50px 1fr}.digital-payment-header>strong{grid-column:2}.order-parties,.order-meta-grid{grid-template-columns:1fr 1fr}.review-admin-grid{grid-template-columns:1fr}.partner-admin-grid{grid-template-columns:1fr}.site-navbar .navbar-actions{padding-top:.8rem}.site-navbar .navbar-actions>*{flex:0 0 auto}}
@media(max-width:575px){.global-search-modal .modal-content{border-radius:0}.digital-payment-header{border-radius:18px;padding:1rem}.digital-payment-header h1{font-size:1.05rem}.bank-transfer-card{grid-template-columns:1fr}.bank-qr-open{justify-self:start;flex-direction:row}.copy-data-row{grid-template-columns:78px 1fr 32px}.order-parties,.order-meta-grid{grid-template-columns:1fr}.order-status-track{overflow-x:auto;grid-template-columns:repeat(4,90px)}.customer-order-card>header{align-items:flex-start}.admin-order-card>footer form{display:grid!important}.partner-admin-grid article{grid-template-columns:65px 1fr}.partner-admin-grid .btn-group{grid-column:1/-1}.partners-track{animation-duration:25s}.mobile-bottom-nav{z-index:1040}}
.product-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.product-choice-card{display:grid;grid-template-columns:45px 1fr auto;align-items:center;gap:.8rem;padding:1rem;border:1px solid #e1e7ea;border-radius:17px;text-decoration:none;color:var(--ink);transition:.2s;background:#fff}.product-choice-card:hover{transform:translateY(-2px);border-color:var(--gold);box-shadow:0 12px 25px rgba(11,38,61,.08)}.product-choice-card>i{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;background:#f0f4f6;color:var(--ink);font-size:1.2rem}.product-choice-card span{display:block;font-size:.72rem;color:#71808a}.seller-rating-line{display:flex;align-items:center;gap:.45rem}.seller-rating-line small{color:#71808a}.seller-review-snippets{display:grid;gap:.7rem}.seller-review-snippets blockquote{padding:.75rem;border-radius:13px;background:#f6f8f9;margin:0}.seller-review-snippets p{font-size:.82rem;margin:.35rem 0}.seller-review-snippets small{font-size:.7rem;color:#71808a}.publication-card{position:relative}.card-favorite{position:absolute;top:.65rem;left:.65rem;z-index:3;width:39px;height:39px;border-radius:50%;border:0;background:rgba(255,255,255,.94);color:#b23c4b;display:grid;place-items:center;box-shadow:0 7px 18px rgba(0,0,0,.13)}.card-favorite.active{background:#b93045;color:#fff}.favorite-btn.active{background:#b93045;color:#fff;border-color:#b93045}.favorite-filter-pills{display:flex;flex-wrap:wrap;gap:.45rem}.favorite-filter-pills a{padding:.5rem .8rem;border-radius:999px;background:#eff3f5;color:#53646f;text-decoration:none;font-size:.78rem;font-weight:700}.favorite-filter-pills a.active{background:var(--ink);color:#fff}
@media(max-width:991px){.product-choice-grid{grid-template-columns:1fr}}
/* V5 public author/seller profile */
.author-profile-hero{padding:44px 0 24px;background:linear-gradient(180deg,rgba(13,35,52,.07),transparent)}
.author-profile-card{display:flex;align-items:center;gap:22px;padding:28px;border-radius:28px;background:rgba(255,255,255,.88);border:1px solid rgba(15,43,61,.1);box-shadow:0 22px 60px rgba(15,43,61,.09);backdrop-filter:blur(14px)}
.author-avatar-large{width:96px;height:96px;border-radius:28px;display:grid;place-items:center;background:linear-gradient(145deg,#112f44,#1f526e);color:#fff;font-size:38px;overflow:hidden;flex:0 0 auto}
.author-avatar-large img{width:100%;height:100%;object-fit:cover}
.verified-profile-badge,.verified-purchase{display:inline-flex;align-items:center;gap:5px;color:#13734a;font-size:.82rem;font-weight:800}
.author-profile-stats{display:flex;flex-wrap:wrap;gap:12px}.author-profile-stats>div{min-width:92px;padding:10px 14px;border-radius:16px;background:#f5f7f8;text-align:center}.author-profile-stats strong,.author-profile-stats span{display:block}.author-profile-stats span{font-size:.76rem;color:#6a7882}
.profile-definition-list>div{padding:12px 0;border-bottom:1px solid #edf0f2}.profile-definition-list>div:last-child{border:0}.profile-definition-list dt{font-size:.75rem;color:#78858e}.profile-definition-list dd{margin:3px 0 0;font-weight:700}
.seller-public-reviews{display:grid;gap:14px}.stars-static{color:#d49b23}
@media(max-width:700px){.author-profile-card{align-items:flex-start;flex-direction:column;padding:21px}.author-avatar-large{width:76px;height:76px;border-radius:22px}.author-profile-card .btn{width:100%}}

/* V5 reader bookmarks and private notes */
.reader-bookmarks-panel{--bs-offcanvas-width:min(430px,94vw);background:rgba(255,255,255,.97);backdrop-filter:blur(18px)}
.reader-bookmark-compose{padding:1rem;border:1px solid rgba(16,40,59,.1);border-radius:20px;background:linear-gradient(145deg,#fff,#f7f4ec)}
.reader-bookmark-compose textarea{resize:vertical;min-height:110px;border-radius:14px}
.reader-bookmarks-list{display:grid;gap:.75rem}
.reader-bookmark-item{border:1px solid rgba(16,40,59,.1);border-radius:16px;padding:.85rem;background:#fff;box-shadow:0 8px 25px rgba(16,40,59,.05)}
.reader-bookmark-item-head{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.45rem}
.reader-bookmark-item-note{white-space:pre-wrap;overflow-wrap:anywhere;color:#40515e;font-size:.92rem}
.reader-bookmark-actions{display:flex;gap:.35rem;flex-wrap:wrap}
.reader-bookmark-empty{text-align:center;padding:2rem 1rem;border:1px dashed rgba(16,40,59,.18);border-radius:16px;color:#6b7780}
@media(max-width:575.98px){.reader-toolbar .reader-icon-btn{width:36px;height:36px}.reader-bookmarks-panel{--bs-offcanvas-width:100vw}}
