/* ==============================================
   NOVINLIB SHARED STYLES
   Applied globally across all novinlib components
   via novinlib-layout.component.html
   ============================================== */

/* ==============================================
   BASE
   ============================================== */
.novinlib-base {
  direction: rtl;
  font-family: 'Vazir', 'Tahoma', sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
}

/* ==============================================
   HERO SECTION (shared component)
   ============================================== */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #3F51B5 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-icon i {
  font-size: 32px;
  color: white;
}

.hero-content h1 {
  color: white;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin: 0;
}

.hero-shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-shape svg {
  width: 100%;
  height: 60px;
}

/* ==============================================
   MAIN CONTENT
   ============================================== */
.main-content {
  padding: 30px 0 40px;
  position: relative;
  z-index: 2;
  margin-top: -30px;
}

/* ==============================================
   CARD BASE
   ============================================== */
.card-white {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.card-white:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-gradient:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-gradient:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}

.btn-green:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-green:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-outline:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

/* ==============================================
   INPUT FOCUS RING
   ============================================== */
.input-focus-ring {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 4px 16px;
  transition: all 0.2s ease;
}

.input-focus-ring:focus-within {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ==============================================
   SPINNER
   ============================================== */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==============================================
   TRACK CARD (shared: book-request, link-doi, thesis)
   ============================================== */
.track-section {
  padding: 0 0 60px;
}

.track-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.track-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.track-icon i {
  font-size: 24px;
  color: white;
}

.track-card h3 {
  font-size: 22px;
  color: #1f2937;
  margin: 0 0 8px;
}

.track-card>.track-header p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

.track-header {
  margin-bottom: 28px;
}

/* Track Input */
.track-input-wrapper {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.track-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 16px;
  transition: all 0.2s ease;
}

.track-input-group:focus-within {
  border-color: #10b981;
  background: white;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.track-input-group i {
  color: #9ca3af;
  font-size: 14px;
  margin-left: 10px;
}

.track-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  color: #374151;
  outline: none;
  font-family: inherit;
  direction: ltr;
  text-align: left;
}

.track-input::placeholder {
  color: #9ca3af;
}

/* Track Result */
.track-result {
  margin-top: 24px;
  text-align: right;
}

.track-result-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.track-status-header {
  text-align: center;
  margin-bottom: 20px;
}

.track-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
}

.detail-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

.detail-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
}

.track-action {
  text-align: center;
  margin-top: 20px;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
}

.status-requested {
  background: #fef3cd;
  color: #92400e;
}

.status-success {
  background: #d1fae5;
  color: #065f46;
}

.status-fail {
  background: #fee2e2;
  color: #991b1b;
}

.status-not-requested {
  background: #f3f4f6;
  color: #6b7280;
}

/* Track No Result */
.track-no-result {
  margin-top: 20px;
}

.no-result-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #991b1b;
  font-size: 14px;
  font-weight: 500;
}

.no-result-content i {
  font-size: 18px;
}

/* ==============================================
   STEP CARDS (shared: link-doi, thesis)
   ============================================== */
.how-it-works {
  max-width: 800px;
  margin: 0 auto 50px;
}

.section-label {
  text-align: center;
  margin-bottom: 28px;
}

.section-label span {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  position: relative;
  padding-bottom: 10px;
}

.section-label span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
}

.steps-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: center;
}

.step-card {
  flex: 1;
  max-width: 220px;
  text-align: center;
  padding: 28px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.12);
}

.step-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  margin: 0 auto 14px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step-icon {
  margin-bottom: 12px;
}

.step-icon i {
  font-size: 28px;
  color: #667eea;
}

.step-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px;
}

.step-card p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #d1d5db;
  font-size: 20px;
}

/* ==============================================
   MODE TOGGLE (shared: link-doi, thesis)
   ============================================== */
.mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mode-btn:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.12);
}

.mode-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.mode-btn i {
  font-size: 16px;
}

/* ==============================================
   INPUT CARD (shared: link-doi, thesis)
   ============================================== */
.input-card {
  max-width: 600px;
  margin: 0 auto 40px;
  background: white;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.input-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.input-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.input-label i {
  font-size: 20px;
  color: #667eea;
}

.input-label span {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.input-field-wrapper {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 4px 16px;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.input-field-wrapper:focus-within {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-field {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 15px;
  color: #374151;
  outline: none;
  font-family: inherit;
}

.input-field::placeholder {
  color: #9ca3af;
}

.input-hint {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 20px;
  padding-right: 4px;
}

.input-hint i {
  margin-left: 6px;
}

.input-hint strong {
  color: #6b7280;
  font-weight: 600;
}

.btn-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-full:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-full:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==============================================
   HOME PAGE STYLES
   ============================================== */

/* Hero Search Card */
.hero-search-card {
  max-width: 680px;
  margin: 30px auto 0;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 20px 24px;
}

.hero-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 14px;
  padding: 4px 4px 4px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.field-icon {
  color: #9ca3af;
  font-size: 16px;
}

.hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 15px;
  color: #374151;
  outline: none;
  font-family: inherit;
}

.hero-search-input::placeholder {
  color: #9ca3af;
}

.search-btn {
  border-radius: 12px !important;
  padding: 12px 28px !important;
  font-size: 15px !important;
  flex-shrink: 0;
  width: auto !important;
}

.hero-search-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  direction: ltr;
}

/* Stats Section */
.stats-section {
  padding: 50px 0;
  background: #f8faff;
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.stat-icon {
  font-size: 28px;
  color: #667eea;
  margin-bottom: 10px;
}

.stat-count {
  font-size: 28px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

/* Services Section */
.services-section {
  padding: 0 0 50px;
  background: #f8faff;
}

.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-pill:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.12);
}

.service-pill i {
  font-size: 16px;
  color: #667eea;
}

/* Features Section */
.features-section {
  padding: 60px 0;
  background: #f0f2f5;
  direction: rtl;
  text-align: right;
}

.feature-card {
  background: white;
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(102, 126, 234, 0.1);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea15, #764ba215);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: #667eea;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: scale(1.05);
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}

.feature-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: 50px 0;
  background: white;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 44px 50px;
  border-radius: 24px;
  color: white;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.cta-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
}

.cta-text {
  font-size: 15px;
  opacity: 0.9;
  margin: 0;
  line-height: 1.6;
}

.btn-cta {
  background: white;
  color: #667eea;
  border: none;
  padding: 14px 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ==============================================
   BOOK REQUEST STYLES
   ============================================== */

/* Filters Card */
.search-filters-card {
  background: white;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  transition: box-shadow 0.3s ease;
}

.search-filters-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 140px;
}

.filter-actions {
  flex: 0 0 auto;
  min-width: auto;
}

.filter-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  color: #374151;
  background: #f9fafb;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.filter-select:focus,
.filter-input:focus {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Search Section */
.search-section {
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  gap: 12px;
  background: white;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.search-box:focus-within {
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f9fafb;
  border-radius: 12px;
  padding: 0 16px;
  transition: background 0.2s ease;
}

.search-input-wrapper:focus-within {
  background: white;
}

.search-icon {
  color: #9ca3af;
  font-size: 16px;
  margin-left: 10px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 15px;
  color: #374151;
  outline: none;
  font-family: inherit;
}

.search-input::placeholder {
  color: #9ca3af;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
}

.loader-text {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: #6b7280;
  font-size: 15px;
}

.loader-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #667eea;
  border-radius: 50%;
  margin: 0 2px;
  animation: dotBounce 1.4s ease-in-out infinite both;
}

.loader-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0;
}

@keyframes dotBounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Results Header */
.results-header {
  margin-bottom: 20px;
}

.results-count {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 15px;
}

.results-count i {
  color: #667eea;
  font-size: 18px;
}

.results-count strong {
  color: #374151;
}

/* Book List */
.book-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-card {
  animation: cardFadeIn 0.4s ease forwards;
  animation-delay: var(--card-delay, 0s);
  opacity: 0;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.book-card-inner {
  background: white;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  overflow: hidden;
}

.book-card-inner:hover {
  transform: translateX(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.book-card-content {
  display: flex;
  flex-direction: row;
  height: 120px;
  cursor: pointer;
}

.book-card-inner:hover .book-thumbnail img {
  transform: scale(1.1);
}

.book-thumbnail {
  position: relative;
  width: 85px;
  min-width: 85px;
  height: 120px;
  overflow: hidden;
  background: #f3f4f6;
  cursor: pointer;
}

.book-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.book-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0e5ec 0%, #c9d0da 50%, #b8c0cc 100%);
  position: absolute;
  top: 0;
  left: 0;
}

.book-thumbnail-placeholder i {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.book-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102, 126, 234, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.book-card-inner:hover .book-overlay {
  opacity: 1;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: white;
  transform: translateY(5px);
  transition: transform 0.25s ease;
}

.book-card-inner:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content i {
  font-size: 22px;
}

.overlay-content span {
  font-size: 11px;
  font-weight: 600;
}

.book-info {
  padding: 10px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.book-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-author {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6b7280;
  font-size: 12px;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-author i {
  font-size: 11px;
  color: #9ca3af;
}

.book-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #9ca3af;
  font-size: 11px;
}

.meta-item i {
  font-size: 10px;
}

.meta-divider {
  color: #d1d5db;
  font-size: 9px;
  margin: 0 2px;
}

.book-description {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.load-more {
  text-align: center;
  margin-top: 30px;
}

/* Button Styles for Book Request */
.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-reset:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.btn-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-search:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-search:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-load-more:hover:not(:disabled) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-track {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-track:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-track:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Book Card Actions (request button) */
.book-card-actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px 14px 10px;
  background: #fafbfc;
  border-radius: 0 0 14px 14px;
  border-top: 1px solid #f3f4f6;
}

.btn-request-book {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-request-book:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.btn-request-book i {
  font-size: 14px;
}

.no-results {
  padding: 60px 0;
}

.no-results-content {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.no-results-icon {
  width: 80px;
  height: 80px;
  background: #fef3cd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.no-results-icon i {
  font-size: 32px;
  color: #f59e0b;
}

.no-results-content h3 {
  font-size: 20px;
  color: #374151;
  margin: 0 0 10px;
}

.no-results-content p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

.initial-state {
  padding: 40px 0;
}

.initial-state-card {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  padding: 50px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.initial-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.initial-icon i {
  font-size: 40px;
  color: #667eea;
}

.initial-state-card h3 {
  font-size: 22px;
  color: #1f2937;
  margin: 0 0 10px;
}

.initial-state-card>p {
  color: #6b7280;
  font-size: 15px;
  margin: 0 0 30px;
}

.initial-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: #f9fafb;
  border-radius: 14px;
  min-width: 120px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: #f3f4f6;
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feature-icon i {
  font-size: 18px;
  color: #667eea;
}

.feature-item span {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

/* ==============================================
   LINK DOI - Unique Styles
   ============================================== */
.doi-prefix {
  color: #9ca3af;
  font-size: 14px;
  margin-right: 8px;
}

/* ==============================================
   THESIS - Unique Styles
   ============================================== */
.input-icon-suffix {
  color: #9ca3af;
  font-size: 14px;
  margin-right: 8px;
}

/* ==============================================
   PLAGIARISM - Unique Styles
   ============================================== */
.novinlib-plagiarism {
  direction: rtl;
  font-family: 'Vazir', 'Tahoma', sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
}

.submit-result {
  max-width: 800px;
  margin: 0 auto 24px;
}

.alert-custom {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-icon i {
  font-size: 20px;
}

.alert-body p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.tracking-code-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracking-label {
  font-size: 13px;
  font-weight: 600;
}

.tracking-code {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.5);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  direction: ltr;
  display: inline-block;
}

.content-row {
  display: flex;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 40px;
  align-items: flex-start;
}

.form-column {
  flex: 1;
  min-width: 0;
}

.sidebar-column {
  width: 280px;
  min-width: 280px;
}

.form-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.form-card-header i {
  font-size: 20px;
  color: #667eea;
}

.form-card-header span {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.required-label::after {
  content: ' *';
  color: #ef4444;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 4px 14px;
  transition: all 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-icon {
  color: #9ca3af;
  font-size: 14px;
  margin-left: 10px;
}

.custom-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  color: #374151;
  outline: none;
  font-family: inherit;
  text-align: right;
}

.custom-input::placeholder {
  color: #9ca3af;
}

.textarea-wrapper {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 4px 14px;
  transition: all 0.2s ease;
}

.textarea-wrapper:focus-within {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.custom-textarea {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  color: #374151;
  outline: none;
  resize: vertical;
  font-family: inherit;
  min-height: 100px;
  text-align: right;
  direction: rtl;
}

.custom-textarea::placeholder {
  color: #9ca3af;
}

.file-upload-zone {
  position: relative;
}

.file-input-hidden {
  display: none;
}

.file-drop-area {
  display: block;
  padding: 24px;
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.file-drop-area:hover {
  border-color: #667eea;
  background: #f0f2ff;
}

.file-drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.file-drop-content i {
  font-size: 32px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.file-drop-content span {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.file-drop-content small {
  font-size: 12px;
  color: #9ca3af;
}

.file-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.file-selected i {
  font-size: 20px;
  color: #667eea;
}

.file-name {
  font-size: 14px;
  color: #374151;
  font-weight: 600;
}

.btn-remove-file {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 14px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-remove-file:hover {
  background: #fecaca;
}

.form-actions {
  margin-top: 24px;
}

.rules-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.rules-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
}

.rules-header i {
  font-size: 20px;
  color: #f59e0b;
}

.rules-header span {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f9fafb;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.rules-list li:last-child {
  border-bottom: none;
}

.rules-list li i {
  color: #10b981;
  font-size: 14px;
  margin-top: 2px;
}

.requests-section {
  max-width: 1000px;
  margin: 0 auto 40px;
}

.section-header {
  margin-bottom: 20px;
}

.section-line {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0 0 16px;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-wrapper i {
  font-size: 20px;
  color: #667eea;
}

.section-title-wrapper h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  background: white;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-item label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.custom-select-sm {
  padding: 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  background: #f9fafb;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  min-width: 120px;
}

.custom-select-sm:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-search-item {
  flex: 1;
  min-width: 200px;
}

.search-inline {
  display: flex;
  gap: 4px;
}

.custom-input-sm {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  background: #f9fafb;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  direction: ltr;
}

.custom-input-sm:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-search-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-search-sm:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-search-sm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.loading-state-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
  color: #6b7280;
  font-size: 14px;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border: 3px solid #e5e7eb;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.table-empty {
  text-align: center;
  padding: 60px 0;
}

.empty-icon {
  width: 64px;
  height: 64px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.empty-icon i {
  font-size: 24px;
  color: #9ca3af;
}

.table-empty p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

.table-wrapper {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
}

.custom-table thead {
  background: #f9fafb;
}

.custom-table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: right;
  border-bottom: 2px solid #e5e7eb;
}

.custom-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.custom-table tbody tr {
  transition: background 0.2s ease;
}

.custom-table tbody tr:hover {
  background: #f9fafb;
}

.custom-table tbody tr:last-child td {
  border-bottom: none;
}

.cell-id {
  font-family: monospace;
  font-size: 12px !important;
  color: #667eea !important;
  direction: ltr;
}

.cell-title {
  font-weight: 600;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-date {
  font-size: 12px !important;
  color: #6b7280 !important;
  direction: ltr;
}

.cell-comment {
  font-size: 12px !important;
  color: #6b7280 !important;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge-sm.status-requested {
  background: #fef3cd;
  color: #92400e;
}

.status-badge-sm.status-success {
  background: #d1fae5;
  color: #065f46;
}

.status-badge-sm.status-fail {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge-sm.status-not-requested {
  background: #f3f4f6;
  color: #6b7280;
}

.btn-download-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-download-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.btn-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: white;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-page:hover:not(:disabled) {
  border-color: #667eea;
  color: #667eea;
}

.btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-info {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.guest-notice {
  max-width: 600px;
  margin: 0 auto 24px;
}

.alert-info-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  color: #1e40af;
  font-size: 14px;
}

.alert-info-custom i {
  font-size: 18px;
}

.alert-info-custom a {
  color: #1e40af;
  font-weight: 700;
  text-decoration: underline;
}

.track-result-section {
  max-width: 600px;
  margin: 0 auto 24px;
}

.track-card-compact {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  animation: slideUp 0.3s ease;
}

.track-card-compact .track-status-header {
  text-align: center;
  margin-bottom: 16px;
}

.track-card-compact .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
}

.track-card-compact .track-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-card-compact .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
}

.track-card-compact .detail-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

.track-card-compact .detail-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
}

.track-card-compact .track-action {
  text-align: center;
  margin-top: 16px;
}

/* ==============================================
   RESPONSIVE (shared)
   ============================================== */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-shape svg {
    height: 40px;
  }

  .track-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .track-input-wrapper {
    flex-direction: column;
  }

  .btn-green {
    justify-content: center;
  }

  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .step-card {
    max-width: 280px;
    width: 100%;
  }

  .step-arrow {
    padding: 8px 0;
    transform: rotate(90deg);
  }

  .input-card {
    padding: 24px 20px;
    margin: 0 16px 40px;
  }

  /* Home page responsive */
  .hero-search-card {
    margin: 20px 16px 0;
    padding: 16px;
  }

  .hero-search-field {
    flex-direction: column;
    padding: 12px;
  }

  .search-btn {
    width: 100% !important;
    justify-content: center;
  }

  .stat-count {
    font-size: 24px;
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
    gap: 20px;
  }

  .services-row {
    padding: 0 16px;
  }

  .service-pill {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 30px 0 50px;
  }

  .hero-content h1 {
    font-size: 20px;
  }

  .hero-icon {
    width: 60px;
    height: 60px;
  }

  .hero-icon i {
    font-size: 24px;
  }

  .input-card {
    padding: 20px 16px;
  }

  .stat-count {
    font-size: 20px;
  }

  .cta-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .cta-title {
    font-size: 22px;
  }
}