/* ================================================================
   LEEMDO PROJECT CART — UI Components
   ================================================================ */

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gradient-hero);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(46,125,50,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,125,50,0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--primary-100);
  color: var(--primary);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--primary-200);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--primary-100);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: var(--text-xs); }
.btn-lg { padding: 1rem 2.5rem; font-size: var(--text-base); }
.btn-icon { padding: 0.65rem; border-radius: var(--radius-md); min-width: 40px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: var(--transition-slow);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--primary-200);
}

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* ── Project Cards ─────────────────────────────────────────────── */
.project-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: var(--transition-slow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.project-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-5px);
  border-color: var(--primary-lighter);
}

.project-card-header {
  padding: var(--space-5) var(--space-5) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.project-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-green);
  border: 1px solid var(--primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.project-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  justify-content: flex-end;
}

.project-card-body {
  padding: var(--space-4) var(--space-5);
  flex: 1;
}

.project-card-body h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-body p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: 0 var(--space-5);
  margin-bottom: var(--space-3);
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.project-meta-item .icon { font-size: 0.85rem; }

.project-card-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--gradient-green);
}

.payout-info {
  display: flex;
  flex-direction: column;
}

.payout-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.payout-value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary);
}

/* ── Badges ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-green  { background: var(--primary-100); color: var(--primary-dark); }
.badge-blue   { background: #e3f2fd; color: #1565c0; }
.badge-orange { background: #fff3e0; color: #e65100; }
.badge-purple { background: #f3e5f5; color: #6a1b9a; }
.badge-teal   { background: #e0f7fa; color: #00695c; }
.badge-red    { background: #ffebee; color: #c62828; }
.badge-grey   { background: #f5f5f5; color: #424242; }

.badge-dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Tags ──────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--primary-100);
  color: var(--primary-dark);
  border: 1px solid var(--primary-200);
  transition: var(--transition);
}

.tag:hover {
  background: var(--primary-200);
  cursor: pointer;
}

.tag.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ── Forms ─────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-base);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}

.form-control::placeholder { color: var(--text-light); }

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group .input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.input-group .form-control { padding-left: 2.75rem; }

.input-group-right .form-control { padding-right: 2.75rem; }
.input-group-right .input-icon-right {
  position: absolute;
  right: 1rem;
  color: var(--text-muted);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b8f6b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* ── Checkbox & Radio ──────────────────────────────────────────── */
.check-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  user-select: none;
}

.check-label input[type="checkbox"],
.check-label input[type="radio"] {
  display: none;
}

.check-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.check-label input[type="checkbox"]:checked ~ .check-box {
  background: var(--primary);
  border-color: var(--primary);
}

.check-label input[type="checkbox"]:checked ~ .check-box::after {
  content: '✓';
  color: white;
  font-size: 11px;
  font-weight: 700;
}

/* ── Modal ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-overlay.open {
  display: flex;
  animation: fadeInOverlay 0.25s ease;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.modal-lg { max-width: 720px; }

.modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h2 { font-size: var(--text-xl); }

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
  border: none;
}
.modal-close:hover { background: var(--primary-100); color: var(--primary); }

.modal-body { padding: var(--space-6); }

.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ── Stat Cards ────────────────────────────────────────────────── */
.stat-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon.green  { background: var(--primary-100); }
.stat-icon.blue   { background: #e3f2fd; }
.stat-icon.orange { background: #fff3e0; }
.stat-icon.purple { background: #f3e5f5; }

.stat-content { flex: 1; }
.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}
.stat-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}
.stat-change {
  font-size: var(--text-xs);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-change.up   { color: var(--primary); }
.stat-change.down { color: var(--error); }

/* ── Tab Nav ───────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: var(--space-1);
  background: var(--bg-alt);
  padding: var(--space-1);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  overflow-x: auto;
}

.tab-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border: none;
  background: none;
  font-family: var(--font-base);
}
.tab-btn:hover { color: var(--primary); background: var(--primary-100); }
.tab-btn.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-xs); }

/* ── Progress Bar ──────────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--primary-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gradient-hero);
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}

/* ── Avatar ────────────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-placeholder {
  border-radius: 50%;
  background: var(--gradient-hero);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

/* ── Divider ───────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-6) 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: var(--space-6) 0;
}
.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Pricing Card ──────────────────────────────────────────────── */
.pricing-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border: 2px solid var(--border-light);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--primary);
  background: var(--gradient-hero);
  color: var(--white);
  transform: scale(1.04);
  box-shadow: var(--shadow-xl);
}

.pricing-card:not(.featured):hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-lighter);
}

.pricing-badge {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: var(--accent);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.pricing-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.pricing-price {
  font-size: var(--text-5xl);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-1);
}
.pricing-price span { font-size: var(--text-xl); font-weight: 500; vertical-align: top; margin-top: 8px; display: inline-block; }
.pricing-period { font-size: var(--text-sm); opacity: 0.7; margin-bottom: var(--space-6); }

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-8);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pricing-card:not(.featured) .pricing-features li {
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.pricing-features li .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  color: var(--white);
}
.pricing-card:not(.featured) .pricing-features li .check {
  background: var(--primary-100);
  color: var(--primary);
}

/* ── Step Card ─────────────────────────────────────────────────── */
.step-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: var(--white);
  font-size: var(--text-2xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  box-shadow: 0 4px 16px rgba(46,125,50,0.35);
  position: relative;
  z-index: 1;
}

.step-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-size: 2rem;
  border: 2px solid var(--primary-200);
}

/* ── Search Bar ────────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46,125,50,0.12);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-base);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: transparent;
}
.search-bar input::placeholder { color: var(--text-light); }

.search-bar .search-icon {
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-bar .btn { border-radius: 0 calc(var(--radius-full) - 2px) calc(var(--radius-full) - 2px) 0; margin-right: -2px; }

/* ── Alert / Info Box ──────────────────────────────────────────── */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  border-left: 4px solid var(--primary);
  background: var(--primary-100);
  color: var(--primary-dark);
}

/* ── Empty State ───────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: var(--space-4); opacity: 0.5; }
.empty-state h3 { font-size: var(--text-lg); color: var(--text-secondary); margin-bottom: var(--space-2); }
.empty-state p { font-size: var(--text-sm); }

/* ── Skeleton Loader ───────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--primary-100) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ── Testimonial Card ──────────────────────────────────────────── */
.testimonial-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-6);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.testimonial-card .quote-icon {
  font-size: 3rem;
  line-height: 1;
  color: var(--primary-200);
  margin-bottom: var(--space-3);
}

.testimonial-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-5);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-author .info .name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
}
.testimonial-author .info .role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.stars {
  display: flex;
  gap: 2px;
  color: #f9a825;
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

/* ── FAQ Item ──────────────────────────────────────────────────── */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-3);
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary-200); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-base);
  gap: var(--space-4);
  transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-question { color: var(--primary); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-4);
}

/* ══════════════════════════════════════════════════════════════
   FRANCHISE CARDS
══════════════════════════════════════════════════════════════ */
.franchise-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border-light);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.franchise-card:hover {
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-5px);
}
.franchise-card.featured {
  border-color: var(--primary-200);
  background: linear-gradient(145deg, var(--white) 0%, var(--primary-100) 100%);
}
.franchise-card.featured:hover {
  border-color: var(--primary);
}

.franchise-featured-ribbon {
  position: absolute;
  top: 14px;
  right: -28px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 36px;
  transform: rotate(35deg);
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(46,125,50,0.4);
}

.franchise-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.franchise-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--gradient-green);
  border: 1.5px solid var(--primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.franchise-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.franchise-card-sector {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.franchise-card-tagline {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.franchise-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--border-light);
}

.franchise-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}

.franchise-metric-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.franchise-metric-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.franchise-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.franchise-highlight-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-100);
  border: 1px solid var(--primary-200);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 900;
  flex-shrink: 0;
}

.franchise-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  margin-top: auto;
}

/* ══════════════════════════════════════════════════════════════
   FRANCHISE MODAL
══════════════════════════════════════════════════════════════ */
.modal-xl { max-width: 900px !important; }

.franchise-modal-hero {
  background: var(--gradient-hero);
  padding: 32px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
  overflow: hidden;
}
.franchise-modal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.franchise-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1.5px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.franchise-modal-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  margin-top: 24px;
  overflow: hidden;
}

.franchise-modal-stat {
  flex: 1;
  text-align: center;
  padding: 16px 12px;
}

.franchise-modal-stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.franchise-modal-stat-lbl {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.franchise-modal-stat-div {
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: stretch;
}

.franchise-modal-content {
  padding: 28px;
}

.franchise-modal-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

@media (max-width: 768px) {
  .franchise-modal-grid { grid-template-columns: 1fr; }
}

.franchise-modal-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.franchise-modal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.franchise-modal-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.franchise-modal-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.franchise-modal-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.franchise-modal-highlight-check {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.franchise-modal-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.franchise-req-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.franchise-req-item:last-child { border-bottom: none; }

.franchise-req-key {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.franchise-req-val {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.franchise-cta-card {
  background: var(--gradient-green);
  border: 1.5px solid var(--primary-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   FRANCHISE STATS BAR
══════════════════════════════════════════════════════════════ */
.franchise-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 32px;
}

.franchise-stats-bar-item {
  padding: 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.franchise-stats-bar-item:last-child { border-right: none; }

.franchise-stats-bar-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.franchise-stats-bar-lbl {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

@media (max-width: 768px) {
  .franchise-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .franchise-stats-bar-item { border-bottom: 1px solid rgba(255,255,255,0.15); }
  .franchise-modal-highlights-grid { grid-template-columns: 1fr; }
  .franchise-metrics { grid-template-columns: repeat(3, 1fr); }
}
