*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Segoe UI',Tahoma,sans-serif;background:#0a0a0a;color:#fff;line-height:1.6;direction:rtl}
header{background:linear-gradient(135deg,#111,#1a1a1a);border-bottom:2px solid #ff6b00;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}
header h1{color:#ff6b00}
header nav a{color:#ccc;margin:0 8px;text-decoration:none}
header nav a:hover{color:#ff6b00}
.hero{background:linear-gradient(135deg,#1a0f00,#2a1a00);padding:40px 20px;text-align:center;border-bottom:1px solid #ff6b00}
.hero h2{color:#ff6b00;font-size:28px;margin-bottom:10px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:15px;padding:20px}
.card{background:#151515;border:1px solid #333;border-radius:10px;padding:12px;transition:0.2s}
.card:hover{border-color:#ff6b00}
.card h4{color:#fff;margin:8px 0}
.card a{color:#ff6b00;text-decoration:none}
.form-page{max-width:500px;margin:40px auto;padding:20px;background:#111;border-radius:12px;border:1px solid #333}
.form-page input,.form-page textarea,.form-page select{width:100%;padding:12px;margin:8px 0;border-radius:8px;border:1px solid #444;background:#0a0a0a;color:#fff}
.form-page button{width:100%;padding:12px;background:#ff6b00;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:bold;margin-top:10px}
.form-page button:hover{background:#ff7a18}
@media(max-width:600px){.grid{grid-template-columns:1fr 1fr} header{flex-direction:column;gap:10px}}


/* Rufuf 1.6.1 UI system */
:root{--rufuf-bg:#0a0a0a;--rufuf-panel:#151515;--rufuf-border:#2f2f2f;--rufuf-orange:#ff6b00;--rufuf-muted:#aaa;--rufuf-danger:#ff4d4d;--rufuf-success:#45d483}
body{min-height:100vh;background:radial-gradient(circle at 50% -20%,#211300 0,#0a0a0a 42%)}
main{max-width:1200px;margin:0 auto} section>h3{padding:22px 20px 0;color:#fff;font-size:21px}
.hero{position:relative;overflow:hidden;padding:56px 20px 48px;min-height:300px;display:flex;flex-direction:column;justify-content:center;align-items:center;background:radial-gradient(circle at 50% 20%,#4a2200 0,#241200 35%,#0d0d0d 78%);border-bottom:1px solid #ff6b00;box-shadow:inset 0 -40px 80px #0008}
.hero:before{content:'📚';position:absolute;font-size:150px;opacity:.055;left:4%;top:10%;transform:rotate(-12deg)} .hero:after{content:'رفوف';position:absolute;font-size:150px;font-weight:900;opacity:.035;right:0;bottom:-40px}
.hero h2{font-size:clamp(30px,7vw,48px);margin-bottom:8px;position:relative}.hero p{color:#ddd;max-width:700px;position:relative}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:22px;position:relative}
.btn,.form-page button,.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 18px;border:1px solid var(--rufuf-orange);border-radius:9px;background:var(--rufuf-orange);color:#fff;text-decoration:none;font-weight:700;cursor:pointer;transition:.18s ease;box-shadow:0 4px 18px #ff6b001f}
.btn:hover,.form-page button:hover,.button:hover{background:#ff7a18;transform:translateY(-1px)} .btn.secondary,.button.secondary{background:transparent;color:#ff8a32;border-color:#6b3514}.btn.ghost,.button.ghost{background:#181818;border-color:#3d3d3d;color:#ddd}.btn:disabled,.button:disabled,button:disabled{opacity:.55;cursor:not-allowed;transform:none}
.card{overflow:hidden;box-shadow:0 8px 30px #0005}.card img{display:block;width:100%;height:230px;object-fit:cover;border-radius:7px;background:#0d0d0d}.card .btn,.card .button{width:100%;margin-top:10px}.grid{padding-top:16px}
.loading,.empty-state{margin:20px;padding:28px;text-align:center;border:1px dashed #333;border-radius:12px;color:var(--rufuf-muted);background:#101010}.spinner{width:22px;height:22px;border:3px solid #444;border-top-color:var(--rufuf-orange);border-radius:50%;display:inline-block;vertical-align:middle;animation:spin .75s linear infinite;margin-left:8px}@keyframes spin{to{transform:rotate(360deg)}}
#rufuf-toast{position:fixed;z-index:99999;bottom:20px;left:50%;transform:translate(-50%,20px);min-width:min(92vw,340px);max-width:92vw;padding:13px 16px;border:1px solid #444;border-radius:10px;background:#181818;color:#fff;box-shadow:0 12px 35px #0009;opacity:0;pointer-events:none;transition:.2s ease;text-align:center}.toast-show{opacity:1!important;transform:translate(-50%,0)!important}.toast-error{border-color:#7a2d2d}.toast-success{border-color:#2d6b4a}
[aria-busy="true"]{position:relative}@media(max-width:600px){header nav{display:flex;flex-wrap:wrap;justify-content:center;gap:5px}header nav a{margin:3px 5px}.hero{min-height:280px;padding:45px 16px}.hero:before,.hero:after{font-size:100px}.grid{grid-template-columns:1fr 1fr;gap:10px;padding-left:12px;padding-right:12px}.card img{height:180px}.btn,.form-page button,.button{min-height:46px}.form-page{margin:20px 12px}}@media(max-width:390px){.grid{grid-template-columns:1fr}.card img{height:230px}}
