/* Biblotech English dictionary (flashcards) */
.bd{direction:rtl;font-family:"Cairo","Noto Sans Arabic",Tahoma,sans-serif;color:#0f172a;max-width:1100px;margin:0 auto;padding:18px 16px 60px}
.bd *{box-sizing:border-box}
.bd a{text-decoration:none}
.bd-hero{background:linear-gradient(135deg,#4f46e5,#7c3aed 55%,#db2777);color:#fff;border-radius:22px;padding:26px 24px;display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between;box-shadow:0 10px 30px rgba(79,70,229,.25)}
.bd-hero h1{margin:0 0 6px;font-size:28px;font-weight:800;color:#fff}
.bd-hero p{margin:0;opacity:.92;font-size:15px;line-height:1.7}
.bd-stats{display:flex;gap:10px;flex-wrap:wrap}
.bd-stat{background:rgba(255,255,255,.16);border-radius:14px;padding:8px 14px;text-align:center;min-width:92px}
.bd-stat b{display:block;font-size:22px;line-height:1.2}
.bd-stat span{font-size:12px;opacity:.9}
.bd-search{display:flex;gap:8px;margin:18px 0 6px}
.bd-search input{flex:1;border:2px solid #e2e8f0;border-radius:14px;padding:11px 14px;font:inherit;font-size:16px;direction:auto;outline:none}
.bd-search input:focus{border-color:#7c3aed}
.bd-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:14px;padding:11px 18px;font:inherit;font-weight:700;font-size:15px;cursor:pointer;background:#7c3aed;color:#fff !important;transition:transform .08s}
.bd-btn:active{transform:scale(.97)}
.bd-btn.ghost{background:#f1f5f9;color:#0f172a !important}
.bd-btn.ok{background:#16a34a}.bd-btn.no{background:#f59e0b}
.bd-sec{margin-top:28px}
.bd-sec h2{font-size:20px;font-weight:800;margin:0 0 2px;display:flex;align-items:center;gap:8px}
.bd-sec h2 i{width:12px;height:12px;border-radius:50%;display:inline-block}
.bd-sec .bd-note{color:#64748b;font-size:14px;margin:0 0 12px}
.bd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.bd-tile{display:block;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:14px;color:#0f172a !important;box-shadow:0 2px 0 rgba(15,23,42,.04);transition:transform .12s,box-shadow .12s}
.bd-tile:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(15,23,42,.08)}
.bd-tile .n{font-size:26px;font-weight:800;line-height:1}
.bd-tile .c{font-size:13px;color:#64748b;margin-top:4px}
.bd-bar{height:7px;background:#eef2f7;border-radius:9px;overflow:hidden;margin-top:10px}
.bd-bar i{display:block;height:100%;border-radius:9px}
.bd-tile.done{border-color:#86efac;background:#f0fdf4}
/* game */
.bd-game{max-width:560px;margin:22px auto 0;text-align:center}
.bd-top{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#475569;margin-bottom:8px;gap:8px;flex-wrap:wrap}
.bd-prog{height:9px;background:#eef2f7;border-radius:9px;overflow:hidden;margin-bottom:16px}
.bd-prog i{display:block;height:100%;width:0;background:linear-gradient(90deg,#22c55e,#16a34a);transition:width .3s}
.bd-scene{perspective:1200px;height:380px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.bd-card{position:relative;width:100%;height:100%;transition:transform .5s;transform-style:preserve-3d}
.bd-card.flip{transform:rotateY(180deg)}
.bd-face{position:absolute;inset:0;border-radius:24px;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px;box-shadow:0 14px 34px rgba(15,23,42,.14)}
.bd-front{background:#fff;border:1px solid #e2e8f0}
.bd-back{background:linear-gradient(160deg,#eef2ff,#fdf4ff);border:1px solid #ddd6fe;transform:rotateY(180deg);overflow:auto;justify-content:flex-start;padding-top:26px}
.bd-word{font-size:44px;font-weight:800;direction:ltr;color:#1e1b4b;line-height:1.2;word-break:break-word}
.bd-pos{margin-top:8px;font-size:14px;background:#f1f5f9;color:#475569;border-radius:20px;padding:3px 12px}
.bd-hint{position:absolute;bottom:14px;font-size:13px;color:#94a3b8}
.bd-say{border:0;background:#ede9fe;color:#6d28d9;border-radius:50%;width:44px;height:44px;font-size:20px;cursor:pointer;margin-top:14px}
.bd-ar{font-size:30px;font-weight:800;color:#6d28d9;line-height:1.5}
.bd-en-w{font-size:20px;font-weight:700;direction:ltr;color:#1e1b4b}
.bd-def{direction:ltr;font-size:16px;color:#334155;margin:8px 0 2px}
.bd-ex{background:#fff;border-radius:14px;padding:10px 12px;margin-top:10px;width:100%;text-align:right;font-size:15px;line-height:1.7}
.bd-ex .en{direction:ltr;text-align:left;color:#0f172a;font-style:italic}
.bd-ex .ar{color:#475569}
.bd-fam{font-size:13px;color:#64748b;margin-top:8px}
.bd-acts{display:flex;gap:10px;justify-content:center;margin-top:18px}
.bd-acts .bd-btn{flex:1;max-width:220px;padding:14px}
.bd-modes{display:flex;gap:6px;justify-content:center;margin:10px 0 0;flex-wrap:wrap}
.bd-chip{border:1px solid #e2e8f0;background:#fff;border-radius:20px;padding:6px 14px;font:inherit;font-size:13px;cursor:pointer}
.bd-chip.on{background:#0f172a;color:#fff;border-color:#0f172a}
.bd-done{padding:40px 10px}
.bd-done .em{font-size:64px}
.bd-intro{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:22px;margin-top:18px;text-align:center}
.bd-intro h2{margin:0 0 6px;font-weight:800}
.bd-intro ol{display:inline-block;text-align:right;color:#475569;line-height:2;margin:8px 0 14px}
/* list */
.bd-filters{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 10px}
.bd-filters input,.bd-filters select{border:2px solid #e2e8f0;border-radius:12px;padding:9px 12px;font:inherit;font-size:15px}
.bd-filters input{flex:1;min-width:200px;direction:auto}
.bd-count{color:#64748b;font-size:14px;margin-bottom:8px}
.bd-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.bd-item{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:14px 16px}
.bd-item .h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.bd-item .w{direction:ltr;font-size:20px;font-weight:800;color:#1e1b4b}
.bd-item .a{font-size:17px;font-weight:700;color:#6d28d9;margin-top:2px}
.bd-item .d{direction:ltr;text-align:left;font-size:14px;color:#334155;margin-top:6px}
.bd-item .x{direction:ltr;text-align:left;font-size:14px;color:#0f172a;font-style:italic;margin-top:6px}
.bd-item .xa{font-size:14px;color:#64748b}
.bd-item .m{font-size:12px;color:#94a3b8;margin-top:6px;display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap}
.bd-item .say{border:0;background:#ede9fe;color:#6d28d9;border-radius:50%;width:34px;height:34px;cursor:pointer;flex:none}
.bd-more{text-align:center;margin-top:16px}
@media (max-width:600px){.bd-hero h1{font-size:23px}.bd-word{font-size:36px}.bd-scene{height:360px}.bd-ar{font-size:26px}}
