/**
 * Amjad Smart Hub — Core Stylesheet v7.0
 * Design Language: Refined Academic Dark-Neutral
 * Fonts: Syne (display) + Noto Kufi Arabic (body)
 */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Noto+Kufi+Arabic:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --color-ink:        #0d1117;
  --color-ink-soft:   #1c2333;
  --color-surface:    #ffffff;
  --color-surface-2:  #f6f8fc;
  --color-surface-3:  #eef1f7;
  --color-border:     #e1e6ef;
  --color-border-soft:#f0f3f8;

  --color-blue:       #2563eb;
  --color-blue-dark:  #1d4ed8;
  --color-blue-light: #dbeafe;
  --color-teal:       #0d9488;
  --color-amber:      #d97706;
  --color-rose:       #e11d48;
  --color-green:      #16a34a;
  --color-purple:     #7c3aed;

  --color-text:       #111827;
  --color-text-soft:  #4b5563;
  --color-text-muted: #9ca3af;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 999px;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.06);
  --shadow-xl: 0 32px 64px rgba(0,0,0,.14), 0 16px 32px rgba(0,0,0,.08);

  --transition: 220ms cubic-bezier(.4,0,.2,1);
  --font-display: 'Syne', sans-serif;
  --font-body:    'Noto Kufi Arabic', sans-serif;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
.amjad-hub-container *,
.amjad-hub-container *::before,
.amjad-hub-container *::after { box-sizing: border-box; margin: 0; padding: 0; }

.amjad-hub-container {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.65;
  direction: rtl;
  background: var(--color-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════
   PLATFORM HEADER
═══════════════════════════════════════════ */
.amjad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 68px;
  background: var(--color-ink);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.amjad-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.amjad-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-teal));
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.amjad-logo h1 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .4px;
}

.amjad-user-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wallet-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
}

.wallet-summary .balance-label { color: rgba(255,255,255,.5); }
.wallet-summary .balance-value  { color: #4ade80; font-weight: 700; font-size: 15px; }
.wallet-summary .currency       { color: rgba(255,255,255,.4); font-size: 11px; }

.amjad-injected-slider-wrapper {
  margin-bottom: -10px; /* Bring slider closer to header */
  position: relative;
  z-index: 101;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.nav-btn, .action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav-btn, .wallet-btn {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
}
.nav-btn:hover { background: rgba(255,255,255,.18); }

.action-btn {
  background: var(--color-blue);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(37,99,235,0);
}
.action-btn:hover {
  background: var(--color-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
}

.action-btn.secondary {
  background: var(--color-surface-3);
  color: var(--color-text);
}
.action-btn.secondary:hover { background: var(--color-border); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.amjad-hero {
  background: var(--color-ink);
  padding: 48px 32px 56px; /* Reduced from 72px 32px 80px */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.amjad-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(37,99,235,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(13,148,136,.12) 0%, transparent 60%);
  pointer-events: none;
}

.amjad-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-blue), var(--color-teal), transparent);
}

.hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

.hero-content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px; /* Reduced from 16px */
  letter-spacing: -.5px;
}

.hero-typing-wrapper {
  font-size: 18px;
  color: var(--color-blue);
  font-weight: 600;
  margin-bottom: 16px;
  min-height: 27px;
}

.typing-cursor {
  animation: blink 0.8s infinite;
  margin-right: 4px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,.6);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* Search Bar */
.search-bar {
  display: flex;
  max-width: 540px;
  margin: 0 auto;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: all var(--transition);
}
.search-bar:focus-within {
  background: rgba(255,255,255,.12);
  border-color: rgba(37,99,235,.6);
  box-shadow: 0 0 0 3px rgba(37,99,235,.18);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 20px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
}
.search-bar input::placeholder { color: rgba(255,255,255,.35); }

.search-bar button {
  padding: 12px 24px;
  background: var(--color-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition);
  border-radius: 0;
}
.search-bar button:hover { background: var(--color-blue-dark); }

/* ═══════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════ */
.main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: calc(100vh - 68px);
}

@media (max-width: 960px) {
  .main-layout { grid-template-columns: 1fr; }
  .amjad-sidebar { border-left: none; border-bottom: 1px solid var(--color-border); }
}

/* ═══════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════ */
.amjad-sidebar {
  border-left: 1px solid var(--color-border);
  background: var(--color-surface-2);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}

.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-soft);
}

.tool-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.tool-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-align: right;
  font-family: var(--font-body);
}
.tool-btn:hover {
  background: var(--color-blue-light);
}
.tool-btn:hover .tool-icon { transform: scale(1.15); }

.tool-icon { font-size: 20px; transition: transform var(--transition); flex-shrink: 0; }
.tool-name  { font-size: 13.5px; font-weight: 600; color: var(--color-text); }

/* Referral in sidebar */
.sidebar-card p { font-size: 13px; color: var(--color-text-soft); margin-bottom: 12px; line-height: 1.55; }

.referral-link-box {
  display: flex;
  gap: 6px;
}
.referral-link-box input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 12px;
  background: var(--color-surface-2);
  color: var(--color-text-soft);
  outline: none;
  min-width: 0;
}
.referral-link-box button {
  padding: 8px 14px;
  background: var(--color-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: background var(--transition);
}
.referral-link-box button:hover { background: var(--color-blue-dark); }

/* ═══════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════ */
.amjad-content { padding: 32px; overflow-x: hidden; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -.3px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 6px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--color-text-soft);
  transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--color-blue); color: var(--color-blue); }
.filter-tab.active {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}

/* ═══════════════════════════════════════════
   BOOKS GRID
═══════════════════════════════════════════ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.book-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,.2);
}

.book-cover {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--color-surface-3);
}
.book-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 380ms ease;
}
.book-card:hover .book-cover img { transform: scale(1.05); }

.book-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,.9) 40%, transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  opacity: 0;
  transition: opacity var(--transition);
}
.book-card:hover .book-overlay { opacity: 1; }

.read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #fff;
  color: var(--color-ink);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.read-btn:hover { background: var(--color-blue); color: #fff; }
.read-btn.buy-btn { background: var(--color-amber); color: #fff; }
.read-btn.buy-btn:hover { background: #b45309; }

.book-info { padding: 14px; }
.book-info h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 5px;
  line-height: 1.4;
}
.book-info .author {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.book-meta .category {
  font-size: 11px;
  background: var(--color-surface-3);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  color: var(--color-text-soft);
  font-weight: 600;
}
.book-meta .views { font-size: 11px; color: var(--color-text-muted); }

/* ═══════════════════════════════════════════
   MODAL
═══════════════════════════════════════════ */
.amjad-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,.6);
  z-index: 9000;
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.amjad-modal.open { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: slideUp .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.close-modal {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px; height: 32px;
  background: var(--color-surface-3);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--color-text-soft);
  transition: all var(--transition);
  z-index: 1;
}
.close-modal:hover { background: var(--color-rose); color: #fff; }

/* ═══════════════════════════════════════════
   AI TOOL MODAL CONTENT
═══════════════════════════════════════════ */
.ai-tool-header {
  padding: 28px 28px 16px;
  border-bottom: 1px solid var(--color-border);
}
.ai-tool-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-tool-body { padding: 24px 28px; }

.ai-textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition);
  color: var(--color-text);
}
.ai-textarea:focus { border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

.ai-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.ai-result {
  margin-top: 20px;
  padding: 18px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text);
  min-height: 60px;
  white-space: pre-wrap;
  display: none;
}
.ai-result.visible { display: block; animation: fadeIn .2s ease; }

.ai-loading {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: var(--color-text-soft);
  font-size: 13px;
}
.ai-loading.visible { display: flex; }

.spinner-sm {
  width: 18px; height: 18px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Lang selector */
.lang-select {
  padding: 9px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  outline: none;
}

/* ═══════════════════════════════════════════
   CARDS & ALERTS
═══════════════════════════════════════════ */
.amjad-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.amjad-alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.amjad-alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.amjad-alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.amjad-alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.amjad-alert-error   { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }

/* ═══════════════════════════════════════════
   LOGIN REQUIRED
═══════════════════════════════════════════ */
.login-required {
  text-align: center;
  padding: 80px 20px;
  max-width: 480px;
  margin: 0 auto;
}
.login-required h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--color-ink);
}
.login-required p {
  color: var(--color-text-soft);
  margin-bottom: 28px;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   FLOATING ACTIONS (Dark Toggle + Notif)
═══════════════════════════════════════════ */
#amjad-floating-actions {
  position: fixed;
  bottom: 90px;
  left: 18px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#amjad-dark-toggle {
  width: 48px; height: 48px;
  background: var(--color-ink);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
#amjad-dark-toggle:hover { transform: scale(1.1); background: var(--color-blue); }

#amjad-notif-wrap { position: relative; }

#amjad-notif-bell {
  width: 48px; height: 48px;
  background: var(--color-ink);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  position: relative;
}
#amjad-notif-bell:hover { transform: scale(1.1); background: var(--color-blue); }

#amjad-notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--color-rose);
  color: #fff;
  border-radius: 50%;
  min-width: 18px; height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--color-surface);
}

#amjad-notif-panel {
  position: absolute;
  bottom: 56px;
  left: 0;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: none;
  animation: slideUp .2s ease;
}
#amjad-notif-panel.open { display: block; }

.amjad-notif-header {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--color-surface);
}

#amjad-notif-mark-read {
  font-size: 11px;
  color: var(--color-blue);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.amjad-notif-item {
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border-soft);
  cursor: pointer;
  transition: background var(--transition);
}
.amjad-notif-item:hover { background: var(--color-surface-2); }
.amjad-notif-item.unread { border-right: 3px solid var(--color-blue); }

.amjad-notif-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.amjad-notif-msg   { font-size: 12px; color: var(--color-text-soft); line-height: 1.4; }
.amjad-notif-time  { font-size: 11px; color: var(--color-text-muted); margin-top: 4px; }

/* ═══════════════════════════════════════════
   LOADING & EMPTY STATES
═══════════════════════════════════════════ */
.loading-spinner {
  text-align: center;
  padding: 48px;
  color: var(--color-text-muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

.no-results {
  text-align: center;
  padding: 48px;
  color: var(--color-text-muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

.error-box {
  padding: 20px;
  background: #fff1f2;
  border-radius: var(--radius-md);
  color: #9f1239;
  grid-column: 1 / -1;
  font-size: 14px;
}

/* ═══════════════════════════════════════════
   TABLES
═══════════════════════════════════════════ */
.amjad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.amjad-table th {
  background: var(--color-surface-2);
  padding: 11px 14px;
  text-align: right;
  font-weight: 700;
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  border-bottom: 2px solid var(--color-border);
}
.amjad-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--color-text);
  vertical-align: middle;
}
.amjad-table tr:last-child td { border-bottom: none; }
.amjad-table tr:hover td { background: var(--color-surface-2); }

.amount-positive { color: var(--color-green); font-weight: 700; }
.amount-negative { color: var(--color-rose);  font-weight: 700; }

/* ═══════════════════════════════════════════
   STAT BOXES (Dashboard)
═══════════════════════════════════════════ */
.stat-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
}
.stat-box:hover { box-shadow: var(--shadow-sm); }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.blue   { background: var(--color-blue-light); }
.stat-icon.green  { background: #dcfce7; }
.stat-icon.amber  { background: #fef3c7; }
.stat-icon.purple { background: #ede9fe; }

.stat-info { flex: 1; }
.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }

/* ═══════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════ */
.amjad-hub-container input[type="text"],
.amjad-hub-container input[type="number"],
.amjad-hub-container input[type="email"],
.amjad-hub-container input[type="password"],
.amjad-hub-container textarea,
.amjad-hub-container select {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.amjad-hub-container input:focus,
.amjad-hub-container textarea:focus,
.amjad-hub-container select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .amjad-header { padding: 0 16px; }
  .amjad-content { padding: 20px 16px; }
  .amjad-hero { padding: 48px 16px 56px; }
  .hero-content h2 { font-size: 26px; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  #amjad-floating-actions { bottom: 80px; left: 12px; }
}

/* ═══════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════ */
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
