/**
 * Premium enhancements – modal forms, icon links, empty states
 * Include on all dashboard & form pages
 */

/* Sidebar footer links with icons */
.orbit-sidebar-footer a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.orbit-sidebar-footer .footer-icon {
  width: 18px;
  height: 18px;
  opacity: 0.9;
  flex-shrink: 0;
}

/* Premium form layout – split: image left, form right (modal/page) */
.premium-form-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
}
@media (min-width: 640px) {
  .premium-form-wrap {
    grid-template-columns: 320px 1fr;
  }
}
.premium-form-visual {
  background: linear-gradient(135deg, #fff8f5 0%, #ffefe8 100%);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.premium-form-visual img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.premium-form-visual .visual-icon {
  font-size: 4rem;
  opacity: 0.5;
}
.premium-form-body {
  padding: var(--space-6);
}
.premium-form-body .label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-1);
}
.premium-form-body .input {
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  padding: 10px 14px;
}
.premium-form-body .input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(250, 86, 8, 0.12);
}
.premium-form-body .input.w-full { width: 100%; }

/* Empty state – premium */
.empty-state {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.6;
}
.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--space-2);
}
.empty-state-desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: var(--space-4);
}

/* Button with icon */
.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.btn-with-icon .btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Page header with back + icon */
.page-header-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 56px;
  padding: 0 var(--space-4);
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.page-header-bar .back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}
.page-header-bar .back-link svg {
  width: 20px;
  height: 20px;
}

/* ========== Rentomojo-style Profile & Dashboard ========== */
.rm-header {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-3) var(--space-4);
  padding-top: max(var(--space-3), env(safe-area-inset-top));
}
.rm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: var(--space-2);
}
.rm-header-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}
.rm-header-back svg { width: 22px; height: 22px; }
.rm-header-title { font-size: 1.125rem; font-weight: 700; }
.rm-header-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-full);
  color: var(--white);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
}
.rm-header-help:hover { background: rgba(255,255,255,0.25); color: var(--white); }
.rm-hero {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-5) var(--space-4) var(--space-6);
}
.rm-hero-title { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--space-1); }
.rm-hero-meta { font-size: 0.875rem; opacity: 0.95; }
.rm-hero-meta span + span::before { content: ' · '; opacity: 0.8; }

.rm-content { background: var(--gray-50); min-height: 60vh; padding: var(--space-4); padding-bottom: 5rem; }
.rm-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-700);
  margin: var(--space-5) 0 var(--space-2);
  padding-left: var(--space-1);
}
.rm-section-title:first-child { margin-top: 0; }
.rm-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.rm-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 500;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s;
}
.rm-row:last-child { border-bottom: none; }
.rm-row:hover { background: var(--gray-50); }
.rm-row-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  color: var(--primary);
  flex-shrink: 0;
}
.rm-row-icon svg { width: 20px; height: 20px; }
.rm-row-text { flex: 1; }
.rm-row-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #22c55e;
  color: var(--white);
  margin-left: var(--space-2);
}
.rm-row-arrow { color: var(--gray-400); flex-shrink: 0; }
.rm-row-arrow svg { width: 20px; height: 20px; }

.rm-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.rm-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-decoration: none;
  color: var(--gray-800);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.rm-quick-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); color: var(--gray-800); }
.rm-quick-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(250, 86, 8, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rm-quick-card .icon-wrap svg { width: 24px; height: 24px; }

.rm-welcome-card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.rm-welcome-card-text h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: var(--space-1); }
.rm-welcome-card-text p { font-size: 0.875rem; opacity: 0.95; margin-bottom: var(--space-3); }
.rm-welcome-card .btn {
  background: var(--white);
  color: var(--primary);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.rm-welcome-card .btn:hover { background: var(--gray-100); color: var(--primary-dark); }
.rm-welcome-card-visual { font-size: 3rem; opacity: 0.9; }

/* Service detail: sub-service options & add-ons */
.service-options-list,
.service-addons-list { display: flex; flex-direction: column; gap: var(--space-2); }
.service-option-row,
.service-addon-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.service-option-row:hover,
.service-addon-row:hover { border-color: var(--primary); background: rgba(250, 86, 8, 0.04); }
.service-option-row input:checked + .service-option-name,
.service-option-row input:checked ~ .service-option-price,
.service-addon-row input:checked + .service-addon-name,
.service-addon-row input:checked ~ .service-addon-price { font-weight: 600; }
.service-option-row input,
.service-addon-row input { flex-shrink: 0; }
.service-option-name,
.service-addon-name { flex: 1; }
.service-option-price,
.service-addon-price { color: var(--primary); }
