/*
Theme Name: Books Fibitek
Theme URI: https://books.fibitek.shop
Author: Fibitek Team
Description: متجر كتب احترافي – تصميم عصري دافئ لبيع الكتب والروايات أونلاين
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Tested up to: 6.5
License: GPL v2 or later
Text Domain: books-fibitek
Domain Path: /languages
Tags: books, woocommerce, rtl, arabic, responsive, custom-colors, blog
*/

:root {
  --font: 'Tajawal', 'Noto Naskh Arabic', 'Cairo', 'Tahoma', sans-serif;
  --font-heading: 'Noto Naskh Arabic', 'Tajawal', 'Cairo', serif;
  --transition: all 0.25s ease;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.12);

  --bg: #f5f0eb;
  --bg-card: #ffffff;
  --bg-section: #ede7df;
  --text: #2c1810;
  --text-muted: #78716c;
  --text-light: #a8a29e;
  --primary: #c2410c;
  --primary-dark: #9a3412;
  --primary-light: #fed7aa;
  --primary-rgb: 194, 65, 12;
  --accent: #b45309;
  --accent-light: #fef3c7;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --border: #e6ddd5;
  --border-light: #f0e9e2;
  --header-bg: #1c1917;
  --header-text: #f5f0eb;
  --footer-bg: #1c1917;
  --footer-text: #d6d3d1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

input, textarea, select, button { font-family: var(--font); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.page-wrapper main { flex: 1; }

/* ─── Header ─── */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.site-logo:hover { color: var(--primary-light); }
.site-logo svg { flex-shrink: 0; }

.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  transition: var(--transition);
}
.header-search input::placeholder { color: rgba(255,255,255,0.5); }
.header-search input:focus {
  outline: none;
  background: rgba(255,255,255,0.18);
}
.header-search button {
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
}
.header-search button:hover { background: var(--primary-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions a {
  color: var(--header-text);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.header-actions a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.cart-count {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ─── Mobile Nav ─── */
.mobile-nav {
  display: none;
  background: var(--header-bg);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: var(--header-text);
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--primary-light); }

/* ─── Footer ─── */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 20px 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 32px;
}
.footer-col h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col p { font-size: 14px; line-height: 1.8; color: var(--footer-text); }
.footer-col a {
  display: block;
  color: var(--footer-text);
  font-size: 14px;
  padding: 4px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: var(--text-light);
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── Hero Section ─── */
.hero {
  background: linear-gradient(135deg, #1c1917 0%, #292524 50%, #1c1917 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 {
  font-size: 44px;
  font-weight: 900;
  margin-bottom: 16px;
  color: #fff;
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.hero .btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ─── Sections ─── */
.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 28px;
  color: var(--text);
  margin-bottom: 8px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ─── Book Grid ─── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.book-grid.cols-5 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.book-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.book-card-thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f0e9e2;
}
.book-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.book-card:hover .book-card-thumb img { transform: scale(1.05); }

.book-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.book-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.book-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.book-card-author {
  font-size: 13px;
  color: var(--text-muted);
}
.book-card-author a { color: var(--primary); }
.book-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}
.book-card-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.book-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.book-card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.book-card-price .old {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 6px;
}
.book-card .add-to-cart-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.book-card .add-to-cart-btn:hover { background: var(--primary-dark); }

/* ─── Breadcrumbs ─── */
.breadcrumbs {
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 1200px;
  margin: 0 auto;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--text); }

/* ─── Single Book ─── */
.single-book-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
}

.book-gallery {
  position: sticky;
  top: 100px;
  align-self: start;
}
.book-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3/4;
}
.book-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-details h1 {
  font-size: 28px;
  margin-bottom: 8px;
}
.book-details .book-author {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.book-details .book-author a { color: var(--primary); font-weight: 600; }

.book-price-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.book-price-section .price {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
}
.book-price-section .old-price {
  font-size: 16px;
  color: var(--text-light);
  text-decoration: line-through;
}
.book-price-section .stock-status {
  font-size: 14px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
}
.stock-status.in-stock { background: #dcfce7; color: #166534; }
.stock-status.out-of-stock { background: #fee2e2; color: #991b1b; }

.book-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.book-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  font-size: 14px;
}
.book-meta-item .label {
  color: var(--text-muted);
  font-weight: 600;
  min-width: 50px;
}
.book-meta-item .value {
  font-weight: 700;
  color: var(--text);
}

.book-description {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.book-description h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.book-description p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-muted);
}

.add-to-cart-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.add-to-cart-form .qty-input {
  width: 60px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  background: var(--bg-card);
}
.add-to-cart-form .qty-input:focus { outline: none; border-color: var(--primary); }
.add-to-cart-form .single-add-to-cart {
  flex: 1;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.add-to-cart-form .single-add-to-cart:hover { background: var(--primary-dark); }

/* ─── Related Books ─── */
.related-books {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.related-books h2 {
  font-size: 22px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* ─── Sidebar / Filters ─── */
.archive-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-sidebar {
  align-self: start;
  position: sticky;
  top: 100px;
}
.filter-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.filter-widget h3 {
  font-size: 15px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.filter-widget ul { list-style: none; }
.filter-widget li { margin-bottom: 6px; }
.filter-widget a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}
.filter-widget a:hover,
.filter-widget a.active { background: var(--accent-light); color: var(--primary); }

/* ─── Toolbar ─── */
.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 24px;
}
.archive-toolbar .result-count {
  font-size: 14px;
  color: var(--text-muted);
}
.archive-toolbar select {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--bg-card);
  cursor: pointer;
}

/* ─── Pagination ─── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 32px 0;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text);
  transition: var(--transition);
}
.pagination a:hover { background: var(--accent-light); color: var(--primary); }
.pagination .current {
  background: var(--primary);
  color: #fff;
}

/* ─── Categories Grid ─── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.cat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.cat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.cat-card .cat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card h3 { font-size: 15px; margin-bottom: 4px; }
.cat-card .cat-count { font-size: 13px; color: var(--text-muted); }

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.feature-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.feature-card svg { color: var(--primary); margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--text-muted); }

/* ─── Newsletter ─── */
.newsletter {
  background: var(--header-bg);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.newsletter h2 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.newsletter p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 8px;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
}
.newsletter-form button {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.newsletter-form button:hover { background: var(--primary-dark); }

/* ─── 404 ─── */
.page-404 {
  text-align: center;
  padding: 100px 20px;
}
.page-404 h1 { font-size: 80px; color: var(--primary); margin-bottom: 8px; }
.page-404 h2 { font-size: 24px; margin-bottom: 12px; }
.page-404 p { color: var(--text-muted); margin-bottom: 24px; }
.page-404 .btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  transition: var(--transition);
}
.page-404 .btn-home:hover { background: var(--primary-dark); }

/* ─── Blog / Posts ─── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 20px; }
.post-card-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.post-card-title {
  font-size: 17px;
  margin-bottom: 8px;
}
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.post-card-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* ─── Page Content ─── */
.page-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}
.page-content h1 { font-size: 30px; margin-bottom: 16px; }
.page-content p { margin-bottom: 16px; line-height: 1.9; color: var(--text-muted); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .single-book-wrapper {
    grid-template-columns: 300px 1fr;
    gap: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .site-logo { font-size: 18px; }
  .header-search { order: 3; flex: 0 0 100%; max-width: 100%; }
  .header-actions a span { display: none; }
  .mobile-menu-toggle { display: block; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .single-book-wrapper {
    grid-template-columns: 1fr;
  }
  .book-gallery { position: static; max-width: 320px; margin: 0 auto; }
  .book-meta-grid { grid-template-columns: 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; display: none; }
  .filter-sidebar.open { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .section { padding: 40px 16px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .book-card-body { padding: 12px; }
  .book-card-title { font-size: 13px; }
  .book-card-price { font-size: 15px; }
  .book-card-footer { padding: 10px 12px; flex-direction: column; gap: 8px; }
  .book-card .add-to-cart-btn { width: 100%; justify-content: center; }
}

/* ─── WooCommerce Overrides ─── */
.woocommerce .products ul,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}
.woocommerce .woocommerce-result-count { font-size: 14px; color: var(--text-muted); }
.woocommerce .woocommerce-ordering select {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--bg-card);
}

/* ─── Toast / Notifications ─── */
.fib-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  z-index: 99999;
  box-shadow: var(--shadow-lg);
  animation: fibSlideUp 0.3s ease;
  max-width: 90vw;
}
.fib-toast.success { background: var(--success); }
.fib-toast.error { background: var(--danger); }
@keyframes fibSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
