/* Rabari user library — Designed & Developed by Diar.Kurd/ K.T */
.rb-account-shell{--rb-blue:#1e5aa8;--rb-navy:#071827;--rb-surface:#fff;--rb-surface-2:#eef3f8;--rb-border:#d7dce3;--rb-text:#1b2530;--rb-muted:#667085;width:min(100% - 28px,1240px);margin:34px auto 70px;direction:rtl;color:var(--rb-text);font-family:var(--rb-font-body,Tahoma,Arial,sans-serif)}
.rb-account-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:28px;border-radius:24px;background:linear-gradient(135deg,#071827,#164e79);color:#fff}
.rb-account-head span{color:#83bff0;font-size:.76rem;font-weight:900}.rb-account-head h1{margin:3px 0;font-size:clamp(2rem,4vw,3.6rem)}.rb-account-head p{margin:0;color:#c7d8e7}.rb-account-head>a{padding:10px 14px;border:1px solid rgba(255,255,255,.24);border-radius:11px;color:#fff;text-decoration:none}
.rb-account-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.rb-account-tabs a{padding:10px 14px;border:1px solid var(--rb-border);border-radius:12px;background:var(--rb-surface);color:var(--rb-blue);text-decoration:none;font-weight:900}.rb-account-tabs b{display:inline-grid;place-items:center;min-width:25px;height:25px;margin-inline-start:5px;border-radius:99px;background:var(--rb-surface-2)}
.rb-account-section{margin-top:28px}.rb-account-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.rb-account-section-head h2{font-size:1.8rem}.rb-account-section-head button,.rb-history-actions button{border:1px solid var(--rb-border);border-radius:9px;background:var(--rb-surface);padding:8px 11px;cursor:pointer}
.rb-account-books{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.rb-account-empty{padding:35px;border:1px dashed var(--rb-border);border-radius:18px;text-align:center;color:var(--rb-muted);background:var(--rb-surface-2)}
.rb-history-list{display:grid;gap:10px}.rb-history-row{display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:14px;align-items:center;padding:13px;border:1px solid var(--rb-border);border-radius:16px;background:var(--rb-surface)}
.rb-history-cover{width:74px;aspect-ratio:3/4;border-radius:9px;overflow:hidden;background:var(--rb-surface-2)}.rb-history-cover img{width:100%;height:100%;object-fit:contain}.rb-history-copy h3{margin:0 0 3px;font-size:1rem}.rb-history-copy a{color:var(--rb-text);text-decoration:none}.rb-history-copy p,.rb-history-copy small{margin:0;color:var(--rb-muted);font-size:.72rem}
.rb-history-progress{height:6px;margin:8px 0;border-radius:99px;background:var(--rb-surface-2);overflow:hidden}.rb-history-progress span{display:block;height:100%;background:var(--rb-blue)}
.rb-history-actions{display:grid;gap:6px}.rb-history-actions a,.rb-history-actions button{padding:7px 10px;border-radius:9px;text-decoration:none;text-align:center;font-size:.72rem}.rb-history-actions a{background:var(--rb-blue);color:#fff}
.rb-account-login{max-width:560px;margin:70px auto;padding:28px;border:1px solid var(--rb-border);border-radius:22px;background:#fff;box-shadow:0 14px 38px rgba(7,24,39,.1)}.rb-account-login label{display:block;font-weight:800}.rb-account-login input[type=text],.rb-account-login input[type=password]{width:100%;padding:11px;border:1px solid var(--rb-border);border-radius:10px}.rb-account-login input[type=submit]{padding:11px 18px;border:0;border-radius:10px;background:var(--rb-blue);color:#fff;font-weight:900}
.rb-account-footer{margin-top:32px;padding-top:15px;border-top:1px solid var(--rb-border);color:var(--rb-muted);font-size:.72rem}.rb-user-library-toast{position:fixed;z-index:999999;left:18px;bottom:18px;max-width:320px;padding:11px 14px;border-radius:11px;background:#071827;color:#fff;opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s}.rb-user-library-toast.is-visible{opacity:1;transform:translateY(0)}
@media(max-width:960px){.rb-account-books{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.rb-account-books{grid-template-columns:repeat(2,minmax(0,1fr))}.rb-history-row{grid-template-columns:62px 1fr}.rb-history-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.rb-account-head{align-items:flex-start;flex-direction:column}}


.rb-account-books .rb-book-card{background:#fff;border:1px solid #d7dce3;border-radius:20px;overflow:hidden;box-shadow:0 10px 28px rgba(7,24,39,.08);display:flex;flex-direction:column;min-width:0}
.rb-account-books .rb-cover{aspect-ratio:4/5.2;position:relative;padding:18px;display:flex;align-items:flex-end;overflow:hidden}
.rb-account-books .rb-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(0,0,0,.62))}
.rb-account-books .rb-cover-1{background:linear-gradient(135deg,#123b5d,#2e78b7)}.rb-account-books .rb-cover-2{background:linear-gradient(135deg,#071827,#1e5aa8)}.rb-account-books .rb-cover-3{background:linear-gradient(135deg,#17466d,#5aa7e3)}.rb-account-books .rb-cover-4{background:linear-gradient(135deg,#253746,#61788e)}
.rb-account-books .rb-cover-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#eef3f8}
.rb-account-books .rb-book-label{position:absolute;z-index:3;top:12px;right:12px;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.92);color:#172033;font-size:.67rem;font-weight:900}
.rb-account-books .rb-cover-title{position:relative;z-index:2;color:#fff;min-width:0}.rb-account-books .rb-cover-title small,.rb-account-books .rb-cover-title strong{display:block}.rb-account-books .rb-cover-title small{font-size:.7rem;opacity:.82}.rb-account-books .rb-cover-title strong{font-size:1.05rem;line-height:1.4;margin-top:4px}
.rb-account-books .rb-book-body{padding:17px;display:flex;flex-direction:column;flex:1}.rb-account-books .rb-book-body h3{font-size:.96rem;line-height:1.5;margin:0 0 5px}.rb-account-books .rb-book-body h3 a{color:#1b2530;text-decoration:none}.rb-account-books .rb-book-body p{margin:0 0 13px;color:#667085;font-size:.75rem}.rb-account-books .rb-book-meta{display:flex;justify-content:space-between;gap:8px;color:#667085;font-size:.69rem}.rb-account-books .rb-rating{color:#1e5aa8;font-weight:900}
.rb-account-books .rb-book-actions{display:grid;grid-template-columns:1fr 44px;gap:8px;margin-top:auto;padding-top:14px}.rb-account-books .rb-download,.rb-account-books .rb-save{min-height:45px;border-radius:13px;display:grid;place-items:center;font-weight:900;text-decoration:none}.rb-account-books .rb-download{background:#eef3f8;color:#1e5aa8}.rb-account-books .rb-save{width:44px;border:1px solid #d7dce3;background:#fff;color:#1b2530}.rb-account-books .rb-save svg{width:19px;height:19px}

.rb-account-shell>.rb-language-switcher{margin:0 0 14px auto;width:max-content}
html[dir="ltr"] .rb-account-shell>.rb-language-switcher{margin-left:0;margin-right:auto}
