/*
Theme Name: WTHAYQ
Theme URI: https://wthayq.com
Author: WTHAYQ Team
Description: منصة أتمتة المستندات القانونية - WTHAYQ
Version: 1.0.0
Text Domain: wthayq
*/

/* ===========================
   VARIABLES & RESET
=========================== */
:root {
  --navy: #0D1B3E;
  --navy-light: #1A2D5A;
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --blue-hover: #1D4ED8;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --gold: #F59E0B;
  --green: #10B981;
  --red: #EF4444;
  --sidebar-width: 220px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
}

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

html { direction: rtl; font-size: 16px; }

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* ===========================
   TYPOGRAPHY
=========================== */
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--gray-100); }
.btn-sm { padding: 7px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ===========================
   NAVBAR
=========================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px; height: 64px;
}
.navbar-brand { display: flex; align-items: center; gap: 8px; }
.navbar-brand .logo-text { font-size: 1.4rem; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.navbar-brand .logo-icon { color: var(--blue); font-size: 1.5rem; }
.navbar-nav { display: flex; align-items: center; gap: 4px; }
.navbar-nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--gray-600);
  transition: all 0.2s;
}
.navbar-nav a:hover, .navbar-nav a.active { color: var(--blue); background: rgba(37,99,235,0.07); }
.navbar-actions { display: flex; align-items: center; gap: 10px; }

/* ===========================
   HERO SECTION
=========================== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1e3a7a 100%);
  padding: 80px 24px 70px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.15) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; line-height: 1.3; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 36px; }
.search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: var(--radius);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-md);
  max-width: 600px; margin: 0 auto 20px;
}
.search-bar input {
  flex: 1; border: none; outline: none; font-family: inherit;
  font-size: 1rem; color: var(--gray-800); background: transparent;
  text-align: right;
}
.search-bar input::placeholder { color: var(--gray-400); }
.search-bar .search-icon { color: var(--gray-400); font-size: 1.1rem; }

/* ===========================
   CATEGORY ICONS
=========================== */
.categories-section { padding: 48px 24px 40px; background: var(--white); }
.categories-grid {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  max-width: 900px; margin: 0 auto;
}
.category-item { text-align: center; cursor: pointer; transition: all 0.2s; }
.category-item:hover { transform: translateY(-4px); }
.category-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gray-100); border: 2px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--navy);
  margin: 0 auto 12px;
  transition: all 0.2s;
}
.category-item:hover .category-icon { background: var(--navy); color: var(--white); border-color: var(--navy); }
.category-item span { font-size: 0.9rem; font-weight: 600; color: var(--gray-700); }

/* ===========================
   WHY US SECTION
=========================== */
.why-section { padding: 64px 24px; background: var(--gray-50); }
.section-title { font-size: 1.6rem; font-weight: 700; color: var(--navy); margin-bottom: 36px; text-align: right; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 24px; text-align: center;
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card .icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.7; }

/* ===========================
   PRODUCTS SECTION
=========================== */
.products-section { padding: 64px 24px; background: var(--white); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.product-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 24px; text-align: center;
  transition: all 0.25s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue-light); }
.product-card .product-icon { font-size: 2.2rem; margin-bottom: 16px; color: var(--navy); }
.product-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.product-card .price { font-size: 1.4rem; font-weight: 800; color: var(--blue); margin-bottom: 16px; }
.product-card .price span { font-size: 0.9rem; font-weight: 500; color: var(--gray-400); }

/* ===========================
   CTA STRIPS
=========================== */
.cta-strip { background: var(--navy); padding: 48px 24px; }
.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; max-width: 1200px; margin: 0 auto; }
.cta-item { color: var(--white); }
.cta-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.cta-item a { color: rgba(255,255,255,0.7); font-size: 0.9rem; display: flex; align-items: center; gap: 6px; margin-top: 8px; transition: color 0.2s; }
.cta-item a:hover { color: var(--white); }

/* ===========================
   FOOTER
=========================== */
.site-footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.1); padding: 48px 24px 24px; color: rgba(255,255,255,0.8); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 40px; }
.footer-brand .logo-text { color: var(--white); font-size: 1.3rem; font-weight: 800; }
.footer-brand p { font-size: 0.875rem; margin-top: 12px; line-height: 1.8; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-payment { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.footer-payment img { height: 24px; filter: brightness(0) invert(1) opacity(0.7); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); max-width: 1200px; margin: 0 auto; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.9rem; transition: background 0.2s; }
.social-links a:hover { background: var(--blue); }

/* ===========================
   DASHBOARD LAYOUT
=========================== */
.dashboard-wrapper { display: flex; min-height: 100vh; background: var(--gray-50); }

.dashboard-sidebar {
  width: var(--sidebar-width);
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  padding: 24px 0;
  position: sticky; top: 64px; height: calc(100vh - 64px);
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar-user { padding: 0 16px 20px; border-bottom: 1px solid var(--gray-200); margin-bottom: 12px; }
.sidebar-user .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin: 0 auto 10px; }
.sidebar-user .name { font-size: 0.9rem; font-weight: 700; color: var(--navy); text-align: center; }
.sidebar-user .role { font-size: 0.75rem; color: var(--gray-400); text-align: center; }
.sidebar-nav { padding: 0 8px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--gray-600);
  margin-bottom: 2px; transition: all 0.2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(37,99,235,0.08); color: var(--blue); font-weight: 600; }
.sidebar-nav a.active { border-right: 3px solid var(--blue); }
.sidebar-nav .icon { font-size: 1rem; width: 20px; }

.dashboard-main { flex: 1; padding: 32px; min-width: 0; }
.dashboard-header { margin-bottom: 28px; }
.dashboard-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.dashboard-header p { color: var(--gray-400); font-size: 0.9rem; margin-top: 4px; }

/* STATS CARDS */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px 16px; border: 1px solid var(--gray-200);
  text-align: center;
}
.stat-card .stat-label { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 8px; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.stat-card .btn-sm { font-size: 0.78rem; padding: 6px 14px; }

/* RECENT DOCS TABLE */
.recent-docs { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); overflow: hidden; }
.recent-docs-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }
.recent-docs-header h3 { font-size: 1rem; font-weight: 700; color: var(--navy); }
.doc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s;
}
.doc-row:last-child { border-bottom: none; }
.doc-row:hover { background: var(--gray-50); }
.doc-row .doc-name { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.doc-row .doc-icon { font-size: 1rem; color: var(--blue); }
.doc-row .doc-date { font-size: 0.8rem; color: var(--gray-400); }
.doc-row .doc-status { font-size: 0.75rem; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.status-signed { background: rgba(16,185,129,0.1); color: var(--green); }
.status-pending { background: rgba(245,158,11,0.1); color: var(--gold); }

/* ===========================
   CONTRACTS PAGE
=========================== */
.contracts-page { display: flex; gap: 24px; }
.contracts-sidebar {
  width: 200px; flex-shrink: 0;
  background: var(--white); border-radius: var(--radius);
  padding: 16px; border: 1px solid var(--gray-200); height: fit-content;
}
.contracts-sidebar h4 { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.contracts-sidebar ul li a {
  display: block; padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 0.85rem; color: var(--gray-600); transition: all 0.2s;
}
.contracts-sidebar ul li a:hover, .contracts-sidebar ul li a.active {
  background: rgba(37,99,235,0.08); color: var(--blue); font-weight: 600;
  border-right: 3px solid var(--blue);
}
.contracts-main { flex: 1; }
.contracts-search { position: relative; margin-bottom: 20px; }
.contracts-search input {
  width: 100%; padding: 10px 40px 10px 16px; border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.9rem;
  background: var(--white); outline: none; text-align: right;
}
.contracts-search input:focus { border-color: var(--blue); }
.contracts-search .search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }

/* GRID VIEW */
.contracts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.contract-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200);
  padding: 24px 16px; text-align: center; cursor: pointer; transition: all 0.2s;
}
.contract-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.contract-card .card-icon { font-size: 2rem; color: var(--blue); margin-bottom: 12px; }
.contract-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.contract-card .count { font-size: 0.8rem; color: var(--gray-400); }
.contract-card .arrow { font-size: 0.8rem; color: var(--blue); margin-top: 8px; }

/* LIST VIEW */
.contracts-list { display: flex; flex-direction: column; gap: 12px; }
.contract-list-item {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200);
  padding: 16px 20px; display: flex; align-items: center; gap: 16px;
  transition: all 0.2s;
}
.contract-list-item:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.contract-list-item .item-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: rgba(37,99,235,0.08); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 1.1rem; flex-shrink: 0; }
.contract-list-item .item-info { flex: 1; }
.contract-list-item .item-name { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.contract-list-item .item-desc { font-size: 0.8rem; color: var(--gray-400); }
.contract-list-item .item-star { color: var(--gold); cursor: pointer; }
.contract-list-item .item-star.empty { color: var(--gray-200); }

/* ===========================
   DOCUMENT DETAIL PAGE
=========================== */
.doc-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
.doc-viewer {
  background: var(--gray-800); border-radius: var(--radius); overflow: hidden;
  min-height: 500px; position: relative;
}
.doc-viewer-toolbar {
  background: var(--gray-700); padding: 10px 16px; display: flex; align-items: center; gap: 12px;
}
.doc-viewer-toolbar span { color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.doc-viewer-content { padding: 32px; color: var(--white); font-size: 0.9rem; line-height: 2; direction: rtl; }
.doc-viewer-content h2 { text-align: center; font-size: 1.2rem; margin-bottom: 20px; }
.doc-info-panel { display: flex; flex-direction: column; gap: 16px; }
.doc-info-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 20px; }
.doc-info-card h4 { font-size: 0.875rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.info-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.info-row .label { font-size: 0.8rem; color: var(--gray-400); }
.info-row .value { font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.doc-actions { display: flex; flex-direction: column; gap: 10px; }

/* ===========================
   DOCUMENT CREATION WIZARD
=========================== */
.wizard-steps { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
.wizard-step { display: flex; align-items: center; gap: 8px; }
.step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700;
  border: 2px solid var(--gray-200); color: var(--gray-400);
  background: var(--white);
}
.step-circle.active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.step-circle.done { background: var(--green); border-color: var(--green); color: var(--white); }
.step-label { font-size: 0.8rem; color: var(--gray-400); }
.step-label.active { color: var(--blue); font-weight: 600; }
.step-line { flex: 1; height: 2px; background: var(--gray-200); margin: 0 8px; }
.step-line.done { background: var(--blue); }

.wizard-form { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.9rem;
  color: var(--gray-800); background: var(--white); outline: none;
  transition: border-color 0.2s; text-align: right;
}
.form-group input:focus, .form-group select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wizard-actions { display: flex; justify-content: space-between; margin-top: 24px; }
.wizard-sidebar { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 20px; height: fit-content; }
.wizard-sidebar h4 { font-size: 0.875rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.wizard-sidebar ul li { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.85rem; color: var(--gray-600); }
.wizard-sidebar ul li .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-200); flex-shrink: 0; }
.wizard-sidebar ul li.done .dot { background: var(--blue); }

/* ===========================
   PAYWALL / BLUR EFFECT
=========================== */
.paywall-wrapper { position: relative; overflow: hidden; }
.paywall-content { max-height: 300px; overflow: hidden; position: relative; }
.paywall-blur {
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.97));
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 24px;
}
.paywall-lock { text-align: center; }
.paywall-lock .lock-icon { font-size: 2rem; color: var(--navy); margin-bottom: 10px; }
.paywall-lock p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 14px; }

/* ===========================
   SETTINGS PAGE
=========================== */
.settings-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.settings-sidebar { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 16px; height: fit-content; }
.settings-sidebar ul li a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--gray-600); margin-bottom: 2px; transition: all 0.2s;
}
.settings-sidebar ul li a:hover, .settings-sidebar ul li a.active { background: rgba(37,99,235,0.08); color: var(--blue); font-weight: 600; }
.settings-content { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 32px; }
.settings-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.settings-content .subtitle { font-size: 0.875rem; color: var(--gray-400); margin-bottom: 28px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 24px; }

/* ===========================
   SUBSCRIPTIONS PAGE
=========================== */
.subscription-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 28px;
}
.subscription-card .plan-name { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.subscription-card .plan-price { font-size: 1.1rem; font-weight: 700; color: var(--blue); margin-bottom: 16px; }
.plan-features { list-style: none; margin-bottom: 20px; }
.plan-features li { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--gray-600); margin-bottom: 8px; }
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; }
.subscription-meta { display: flex; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.meta-item .label { font-size: 0.75rem; color: var(--gray-400); margin-bottom: 4px; }
.meta-item .value { font-size: 0.9rem; font-weight: 600; color: var(--navy); }

/* ===========================
   FAVORITES PAGE
=========================== */
.favorites-list { display: flex; flex-direction: column; gap: 10px; }
.favorite-item {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200);
  padding: 14px 20px; display: flex; align-items: center; gap: 12px;
}
.favorite-item .fav-icon { color: var(--blue); font-size: 1rem; }
.favorite-item .fav-name { flex: 1; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.favorite-item .fav-star { color: var(--gold); }

/* ===========================
   BREADCRUMB
=========================== */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.breadcrumb a { font-size: 0.8rem; color: var(--blue); }
.breadcrumb span { font-size: 0.8rem; color: var(--gray-400); }

/* ===========================
   ALERTS / BADGES
=========================== */
.badge { display: inline-flex; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-blue { background: rgba(37,99,235,0.1); color: var(--blue); }
.badge-green { background: rgba(16,185,129,0.1); color: var(--green); }
.badge-gold { background: rgba(245,158,11,0.1); color: var(--gold); }

/* ===========================
   FLAGS
=========================== */
.flags { display: flex; gap: 6px; align-items: center; }
.flag { width: 24px; height: 16px; border-radius: 3px; object-fit: cover; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-detail-layout { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .hero h1 { font-size: 1.8rem; }
  .dashboard-sidebar { display: none; }
  .dashboard-main { padding: 20px 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contracts-page { flex-direction: column; }
  .contracts-sidebar { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .wizard-steps { overflow-x: auto; }
}
