/* ══════════════════════════════════════════════════════════════
   Dictionary — Bengali-English
   Inline-compatible with quiz.php's edu.css theme
   ══════════════════════════════════════════════════════════════ */

   html, body { margin: 0; padding: 0; }
   body { padding-top: 3.25rem; min-height: 100vh; min-height: 100dvh; }
   
   /* ══════ MAIN LAYOUT ══════ */
   #dict-main-layout {
       display: flex; width: 100%; max-width: 1700px;
       margin: 0 auto; gap: 0.75rem; padding: 1rem; box-sizing: border-box;
   }
   @media (min-width: 1025px) {
       html, body { overflow: hidden; }
       #dict-main-layout { height: calc(100dvh - 3.25rem); overflow: hidden; }
   }
   .dict-col-left {
       width: 60px; flex-shrink: 0; overflow-y: auto; scrollbar-width: none;
   }
   .dict-col-left::-webkit-scrollbar { display: none; }
   @media (min-width: 1279px) { .dict-col-left { width: 240px; } }
   
   .dict-col-main {
       flex: 1; min-width: 0; overflow-y: auto;
       scrollbar-width: none; padding-right: .5rem;
   }
   .dict-col-main::-webkit-scrollbar { display: none; }
   @media (min-width: 1025px) { .dict-col-left, .dict-col-main, .dict-col-right { height: 100%; } }
   
   .dict-col-right {
       width: 320px; flex-shrink: 0; overflow-y: auto; scrollbar-width: none;
   }
   .dict-col-right::-webkit-scrollbar { display: none; }
   @media (max-width: 1279px) { .dict-col-right { display: none; } }
   @media (max-width: 1024px) {
       .dict-col-left { display: none; }
       html, body { overflow-x: hidden; overflow-y: auto; height: auto !important; }
       body { padding-bottom: 70px; }
       #dict-main-layout { height: auto !important; padding: 0.75rem; gap: 0; }
   }
   
   /* ══════ TOP BAR ══════ */
   .dict-topbar {
       display: flex; align-items: center; gap: .75rem;
       margin-bottom: 1rem; flex-wrap: wrap;
   }
   .dict-topbar-icon {
       width: 40px; height: 40px; border-radius: .75rem;
       background: rgba(249, 115, 22, .15);
       display: flex; align-items: center; justify-content: center;
       color: #f97316; font-size: 1.1rem; flex-shrink: 0;
   }
   .dict-topbar-title { min-width: 0; flex: 1; }
   .dict-topbar-title h1 {
       font-size: 1.15rem; font-weight: 800; line-height: 1.2;
       color: #0f172a; margin: 0;
   }
   html.dark .dict-topbar-title h1 { color: #f8fafc; }
   .dict-topbar-title p {
       font-size: .65rem; color: #71717a; line-height: 1.2;
       margin: .125rem 0 0 0;
   }
   
   /* Google Translate widget */
   .dict-lang-widget {
       background: #ffffff; border: 1px solid #e4e4e7;
       padding: .3rem .6rem; border-radius: .5rem;
       font-size: .75rem; flex-shrink: 0;
   }
   html.dark .dict-lang-widget { background: #0b0d19; border-color: #27272a; }
   .dict-lang-widget .goog-te-combo {
       background: transparent !important; border: none !important;
       color: #0f172a !important; font-weight: 700 !important;
       font-size: .75rem !important; padding: 0 !important;
       outline: none !important; cursor: pointer;
   }
   html.dark .dict-lang-widget .goog-te-combo { color: #e4e4e7 !important; }
   .goog-logo-link, .goog-te-gadget span { display: none !important; }
   .goog-te-gadget { font-size: 0 !important; }
   .goog-te-gadget .goog-te-combo { font-size: .75rem !important; }
   
   /* ══════ INFO BANNER ══════ */
   .dict-info-banner {
       background: rgba(249, 115, 22, .08);
       border: 1px solid rgba(249, 115, 22, .25);
       border-radius: .75rem; padding: .75rem 1rem;
       margin-bottom: 1rem;
       display: flex; align-items: flex-start; gap: .65rem;
       font-size: .75rem; line-height: 1.5;
       color: #475569;
   }
   html.dark .dict-info-banner { color: #cbd5e1; }
   .dict-info-banner i { color: #f97316; font-size: .9rem; margin-top: 2px; }
   .dict-info-banner strong { color: #f97316; font-weight: 700; }
   .dict-info-banner span { color: #64748b; }
   html.dark .dict-info-banner span { color: #94a3b8; }
   
   /* ══════ TABS ══════ */
   .dict-tabs-row { margin-bottom: 1rem; }
   .dict-tabs-scroll {
       width: 100%; overflow-x: auto; overflow-y: hidden;
       -webkit-overflow-scrolling: touch; scrollbar-width: none;
       padding-bottom: 2px;
       display: flex; justify-content: flex-start;
       padding-left: .25rem; padding-right: .25rem;
   }
   .dict-tabs-scroll::-webkit-scrollbar { display: none; }
   @media (min-width: 640px) {
       .dict-tabs-scroll { justify-content: center; padding-left: 0; padding-right: 0; }
   }
   .dict-tabs-group {
       display: inline-flex; gap: .25rem;
       background: rgba(241, 245, 249, .6);
       border-radius: .75rem; padding: .375rem;
       min-width: max-content;
   }
   html.dark .dict-tabs-group { background: rgba(24, 24, 27, .9); }
   
   .dict-tab {
       display: inline-flex; align-items: center; gap: .375rem;
       padding: .5rem .875rem; border-radius: .5rem;
       font-size: .75rem; font-weight: 700; white-space: nowrap;
       color: #a1a1aa; background: transparent; border: 1px solid transparent;
       cursor: pointer; transition: all .15s ease; text-decoration: none;
       flex-shrink: 0;
   }
   .dict-tab:hover { color: #e4e4e7; background: rgba(249, 115, 22, .08); }
   .dict-tab.active {
       color: #ffffff;
       background: linear-gradient(135deg, #f97316, #ea580c);
       border-color: rgba(249, 115, 22, .5);
       box-shadow: 0 4px 12px -4px rgba(249, 115, 22, .6);
   }
   .dict-tab-count {
       background: rgba(255, 255, 255, .25);
       padding: 0 .4rem; border-radius: 999px;
       font-size: .65rem; font-weight: 800; min-width: 16px;
       display: inline-block; text-align: center;
   }
   
   /* ══════ SEARCH WRAP ══════ */
   .dict-search-wrap {
       position: relative; width: 100%; margin-bottom: 1rem;
   }
   .dict-search-wrap .search-icon {
       position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
       color: #71717a; font-size: .85rem; pointer-events: none;
   }
   .dict-search-input {
       width: 100%; padding: .7rem .85rem .7rem 2.25rem;
       border-radius: .75rem;
       background: #ffffff; border: 1px solid #e4e4e7;
       font-size: .85rem; color: #0f172a; outline: none;
       transition: border .15s;
   }
   html.dark .dict-search-input {
       background: #0b0d19; border-color: #27272a; color: #e4e4e7;
   }
   .dict-search-input:focus { border-color: #f97316; }
   
   /* ══════ SUGGEST BOX ══════ */
   .dict-suggest-box {
       position: absolute; top: calc(100% + 4px); left: 0; right: 0;
       background: #ffffff; border: 1px solid #e4e4e7;
       border-radius: .75rem; overflow: hidden; z-index: 50;
       box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .15);
       max-height: 320px; overflow-y: auto;
   }
   html.dark .dict-suggest-box { background: #0b0d19; border-color: #27272a; }
   .dict-suggest-item {
       padding: .6rem .9rem; cursor: pointer;
       display: flex; align-items: center; justify-content: space-between;
       gap: .75rem; border-bottom: 1px solid #f1f5f9;
       transition: background .12s;
   }
   html.dark .dict-suggest-item { border-bottom-color: #1e293b; }
   .dict-suggest-item:last-child { border-bottom: none; }
   .dict-suggest-item:hover { background: rgba(249, 115, 22, .06); }
   .dict-suggest-word { font-weight: 700; font-size: .85rem; color: #0f172a; }
   html.dark .dict-suggest-word { color: #f1f5f9; }
   .dict-suggest-eng {
       font-size: .72rem; color: #64748b;
       max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
   }
   html.dark .dict-suggest-eng { color: #94a3b8; }
   
   /* ══════ SPINNER ══════ */
   .dict-spin {
       display: inline-block; width: 18px; height: 18px;
       border: 2px solid rgba(255, 255, 255, .2);
       border-top-color: #f97316; border-radius: 50%;
       animation: dictSpin .8s linear infinite;
   }
   @keyframes dictSpin { to { transform: rotate(360deg); } }
   
   /* ══════ STATS ROW ══════ */
   .dict-stats-row {
       display: grid; grid-template-columns: 1fr 1fr;
       gap: .75rem; margin-bottom: 1rem;
   }
   .dict-stat {
       padding: 1rem 1.25rem; border-radius: .75rem;
       background: linear-gradient(135deg, rgba(249, 115, 22, .08), rgba(249, 115, 22, .02));
       border: 1px solid rgba(249, 115, 22, .2);
       display: flex; flex-direction: column; gap: .25rem;
   }
   .dict-stat-num {
       font-size: 1.4rem; font-weight: 900;
       color: #f97316; line-height: 1;
   }
   .dict-stat-lbl {
       font-size: .7rem; font-weight: 700;
       color: #64748b; text-transform: uppercase;
       letter-spacing: .03em;
   }
   html.dark .dict-stat-lbl { color: #94a3b8; }
   
   /* ══════ SECTION TITLE ══════ */
   .dict-section-title {
       font-size: .85rem; font-weight: 800;
       color: #0f172a; margin: 1rem 0 .75rem 0;
       display: flex; align-items: center; gap: .45rem;
   }
   html.dark .dict-section-title { color: #f1f5f9; }
   .dict-section-title i { color: #f97316; font-size: .9rem; }
   
   /* ══════ LETTER GRID ══════ */
   .dict-letter-grid {
       display: grid;
       grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
       gap: .5rem;
   }
   .dict-letter-btn {
       aspect-ratio: 1; border-radius: .75rem;
       background: rgba(15, 23, 42, .5);
       border: 1px solid rgba(39, 39, 42, .8);
       display: flex; flex-direction: column;
       align-items: center; justify-content: center;
       gap: .15rem; cursor: pointer;
       transition: all .15s ease;
       color: #e4e4e7;
       padding: .4rem;
   }
   html:not(.dark) .dict-letter-btn {
       background: #ffffff; border-color: #e4e4e7; color: #0f172a;
   }
   .dict-letter-btn:hover {
       border-color: #f97316;
       background: rgba(249, 115, 22, .08);
       transform: translateY(-2px);
   }
   .dict-letter-char {
       font-size: 1.35rem; font-weight: 800; color: #f97316;
       line-height: 1;
   }
   .dict-letter-count {
       font-size: .65rem; color: #64748b; font-weight: 700;
   }
   html.dark .dict-letter-count { color: #94a3b8; }
   
   /* ══════ HEADER ROW ══════ */
   .dict-header-row {
       display: flex; align-items: center; gap: .75rem;
       margin-bottom: 1rem; flex-wrap: wrap;
   }
   .dict-back-btn {
       display: inline-flex; align-items: center; gap: .4rem;
       padding: .45rem .85rem; border-radius: .5rem;
       background: rgba(15, 23, 42, .6); color: #e4e4e7;
       border: 1px solid rgba(249, 115, 22, .35);
       cursor: pointer; font-size: .72rem; font-weight: 700;
       transition: all .15s;
   }
   html:not(.dark) .dict-back-btn { background: rgba(241, 245, 249, .8); color: #0f172a; }
   .dict-back-btn:hover { border-color: #f97316; color: #f97316; }
   
   .dict-letter-badge {
       width: 38px; height: 38px; border-radius: .5rem;
       background: linear-gradient(135deg, #f97316, #ea580c);
       color: #fff; font-size: 1.2rem; font-weight: 900;
       display: flex; align-items: center; justify-content: center;
       box-shadow: 0 4px 12px -4px rgba(249, 115, 22, .6);
   }
   .dict-header-count {
       font-size: .75rem; font-weight: 700;
       color: #64748b;
   }
   html.dark .dict-header-count { color: #94a3b8; }
   .dict-header-count strong { color: #f97316; }
   
   /* ══════ WORD LIST ══════ */
   .dict-word-list {
       display: flex; flex-direction: column; gap: .4rem;
   }
   .dict-word-row {
       display: flex; align-items: center; gap: .75rem;
       padding: .75rem 1rem; border-radius: .625rem;
       background: rgba(15, 23, 42, .5);
       border: 1px solid rgba(39, 39, 42, .8);
       cursor: pointer; transition: all .15s ease;
       text-decoration: none; color: inherit;
   }
   html:not(.dark) .dict-word-row {
       background: #ffffff; border-color: #e4e4e7;
   }
   .dict-word-row:hover {
       border-color: rgba(249, 115, 22, .55);
       background: rgba(249, 115, 22, .05);
       transform: translateX(3px);
   }
   .dict-word-info {
       flex: 1; min-width: 0;
       display: flex; flex-wrap: wrap;
       align-items: baseline; gap: .5rem;
   }
   .dict-word-title {
       font-size: .95rem; font-weight: 800;
       color: #0f172a; line-height: 1.2;
   }
   html.dark .dict-word-title { color: #f1f5f9; }
   .dict-word-pron {
       font-size: .72rem; color: #f97316; font-weight: 600;
   }
   .dict-word-pos {
       font-size: .62rem; font-weight: 700;
       background: rgba(249, 115, 22, .15); color: #fb923c;
       padding: .1rem .45rem; border-radius: 999px;
       border: 1px solid rgba(249, 115, 22, .3);
   }
   .dict-word-eng {
       flex-basis: 100%;
       font-size: .75rem; color: #64748b;
       overflow: hidden; text-overflow: ellipsis;
       display: -webkit-box; -webkit-line-clamp: 1;
       -webkit-box-orient: vertical;
   }
   html.dark .dict-word-eng { color: #94a3b8; }
   .dict-word-arrow {
       color: #71717a; font-size: .75rem; flex-shrink: 0;
   }
   
   /* ══════ PAGINATION ══════ */
   .dict-pagination {
       display: flex; align-items: center; justify-content: space-between;
       gap: .75rem; margin: 1.25rem 0 1rem 0;
       padding: 1rem 1.25rem;
       background: linear-gradient(135deg, rgba(249,115,22,.06), rgba(249,115,22,.01));
       border: 1px solid rgba(249,115,22,.25);
       border-radius: .75rem;
       flex-wrap: wrap;
   }
   .dict-page-info {
       font-size: .72rem; font-weight: 700; color: #64748b;
   }
   html.dark .dict-page-info { color: #94a3b8; }
   
   /* ══════ BUTTONS ══════ */
   .dict-btn {
       display: inline-flex; align-items: center; gap: .45rem;
       padding: .55rem .95rem; border-radius: .55rem;
       font-size: .75rem; font-weight: 700;
       background: rgba(15, 23, 42, .6); color: #e4e4e7;
       border: 1px solid rgba(249, 115, 22, .35);
       cursor: pointer; transition: all .15s ease;
       text-decoration: none; white-space: nowrap;
   }
   html:not(.dark) .dict-btn { background: rgba(241, 245, 249, .8); color: #0f172a; }
   .dict-btn:hover {
       border-color: #f97316; color: #f97316;
       background: rgba(249, 115, 22, .08);
       transform: translateY(-1px);
   }
   .dict-btn-primary {
       background: linear-gradient(135deg, #f97316, #ea580c);
       color: #fff; border-color: transparent;
       box-shadow: 0 4px 14px -4px rgba(249, 115, 22, .55);
   }
   .dict-btn-primary:hover { color: #fff; transform: translateY(-2px); }
   .dict-btn-danger {
       background: rgba(239, 68, 68, .1);
       color: #f87171; border-color: rgba(239, 68, 68, .35);
   }
   html:not(.dark) .dict-btn-danger {
       background: rgba(239, 68, 68, .1);
       color: #b91c1c;
   }
   .dict-btn-danger:hover {
       background: rgba(239, 68, 68, .2);
       border-color: #ef4444;
       color: #f87171;
   }
   .dict-btn-disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
   .dict-btn-sm { padding: .35rem .7rem; font-size: .68rem; }
   
   /* ══════ WORD DETAIL CARD ══════ */
   .dict-word-detail { animation: dictFadeIn .25s ease; }
   @keyframes dictFadeIn {
       from { opacity: 0; transform: translateY(6px); }
       to   { opacity: 1; transform: translateY(0); }
   }
   .dict-detail-card {
       background: rgba(15, 23, 42, .5);
       border: 1px solid rgba(39, 39, 42, .8);
       border-radius: 1rem;
       padding: 1.5rem;
       margin-top: 1rem;
   }
   html:not(.dark) .dict-detail-card {
       background: #ffffff; border-color: #e4e4e7;
       box-shadow: 0 4px 16px -6px rgba(0, 0, 0, .06);
   }
   .dict-detail-header {
       display: flex; align-items: flex-start;
       justify-content: space-between;
       gap: 1rem; flex-wrap: wrap;
       padding-bottom: 1.25rem;
       border-bottom: 1px dashed rgba(249, 115, 22, .25);
       margin-bottom: 1.25rem;
   }
   .dict-detail-word {
       font-size: 2rem; font-weight: 900;
       color: #0f172a; line-height: 1.15;
       margin: 0 0 .5rem 0;
   }
   html.dark .dict-detail-word { color: #f8fafc; }
   .dict-detail-meta {
       display: flex; flex-wrap: wrap; gap: .4rem;
   }
   .dict-meta-pill {
       display: inline-flex; align-items: center; gap: .3rem;
       padding: .25rem .65rem; border-radius: 999px;
       font-size: .7rem; font-weight: 700;
       background: rgba(249, 115, 22, .12);
       color: #fb923c;
       border: 1px solid rgba(249, 115, 22, .3);
   }
   .dict-meta-pos {
       background: rgba(34, 197, 94, .12);
       color: #4ade80;
       border-color: rgba(34, 197, 94, .35);
   }
   
   /* ══════ DETAIL SECTIONS ══════ */
   .dict-detail-section {
       padding: 1rem 0;
       border-bottom: 1px solid rgba(63, 63, 70, .3);
   }
   .dict-detail-section:last-child { border-bottom: none; padding-bottom: 0; }
   html:not(.dark) .dict-detail-section { border-bottom-color: #f1f5f9; }
   .dict-section-label {
       font-size: .7rem; font-weight: 800;
       text-transform: uppercase; letter-spacing: .06em;
       color: #f97316;
       margin: 0 0 .65rem 0;
       display: flex; align-items: center; gap: .4rem;
   }
   .dict-section-label i { font-size: .8rem; }
   
   /* English list */
   .dict-eng-list {
       display: flex; flex-wrap: wrap; gap: .4rem;
   }
   .dict-eng-tag {
       display: inline-flex; align-items: center;
       padding: .35rem .7rem; border-radius: .5rem;
       background: rgba(59, 130, 246, .1);
       color: #60a5fa;
       border: 1px solid rgba(59, 130, 246, .3);
       font-size: .78rem; font-weight: 700;
   }
   html:not(.dark) .dict-eng-tag {
       background: rgba(59, 130, 246, .08);
       color: #2563eb;
   }
   
   /* Bangla meanings */
   .dict-meanings-list {
       list-style: none; padding: 0; margin: 0;
       display: flex; flex-direction: column; gap: .5rem;
   }
   .dict-meanings-list li {
       font-size: .85rem; line-height: 1.6;
       color: #0f172a;
       padding: .5rem .75rem;
       background: rgba(249, 115, 22, .04);
       border-left: 3px solid #f97316;
       border-radius: .35rem;
   }
   html.dark .dict-meanings-list li { color: #e4e4e7; }
   
   /* Examples */
   .dict-example {
       font-size: .85rem; line-height: 1.7;
       color: #334155;
       font-style: italic;
       padding: .65rem .9rem;
       background: rgba(34, 197, 94, .05);
       border-left: 3px solid #22c55e;
       border-radius: .35rem;
       margin: 0;
   }
   html.dark .dict-example { color: #cbd5e1; }
   
   /* Etymology */
   .dict-etymology {
       font-size: .82rem; line-height: 1.6;
       color: #64748b;
       padding: .5rem .75rem;
       background: rgba(168, 85, 247, .05);
       border-left: 3px solid #a855f7;
       border-radius: .35rem;
       margin: 0;
   }
   html.dark .dict-etymology { color: #94a3b8; }
   
   /* ══════ TOAST ══════ */
   .dict-toast {
       position: fixed;
       bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(20px);
       background: #1e293b; color: #f1f5f9;
       padding: .7rem 1.5rem; border-radius: 999px;
       font-size: .8rem; font-weight: 700;
       box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .3);
       opacity: 0; pointer-events: none;
       transition: opacity .25s, transform .25s;
       z-index: 9999;
   }
   .dict-toast.show {
       opacity: 1;
       transform: translateX(-50%) translateY(0);
   }
   
   /* ══════ RESPONSIVE ══════ */
   @media (max-width: 600px) {
       .dict-detail-card { padding: 1rem; }
       .dict-detail-word { font-size: 1.5rem; }
       .dict-detail-header { flex-direction: column; }
       .dict-detail-header .dict-btn { width: 100%; justify-content: center; }
       .dict-stats-row { grid-template-columns: 1fr; }
       .dict-letter-grid {
           grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
       }
       .dict-pagination { flex-direction: column; }
       .dict-pagination .dict-btn { width: 100%; justify-content: center; }
   }