/*
Theme Name:  Khademati Pro
Theme URI:   https://khademati.sa
Description: قالب احترافي متكامل لمنصات تأجير العمالة المنزلية — يدعم WooCommerce، نظام حجز ذكي، PWA، لوحة تحكم العميل، ومنع الحجز المزدوج تلقائياً.
Author:      Khademati Team
Author URI:  https://khademati.sa
Version:     2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khademati-pro
Tags: rtl-language, arabic, woocommerce, booking, e-commerce, services, pwa
*/

/* ═══════════════════════════════════════════════════════
   1. DESIGN TOKENS
═══════════════════════════════════════════════════════ */
:root {
  /* Primary Brand */
  --kp-primary:        #0F6E56;
  --kp-primary-dark:   #085041;
  --kp-primary-light:  #E1F5EE;
  --kp-primary-mid:    #5DCAA5;
  --kp-accent:         #F59E0B;
  --kp-accent-light:   #FEF3C7;

  /* Neutrals */
  --kp-text:           #0F1729;
  --kp-text-muted:     #64748B;
  --kp-text-light:     #94A3B8;
  --kp-bg:             #F8FAFC;
  --kp-surface:        #FFFFFF;
  --kp-border:         #E2E8F0;
  --kp-border-strong:  #CBD5E1;

  /* Status */
  --kp-success:        #10B981;
  --kp-success-bg:     #D1FAE5;
  --kp-warning:        #F59E0B;
  --kp-warning-bg:     #FEF3C7;
  --kp-danger:         #EF4444;
  --kp-danger-bg:      #FEE2E2;
  --kp-info:           #3B82F6;
  --kp-info-bg:        #DBEAFE;

  /* Spacing */
  --kp-radius-xs:      4px;
  --kp-radius-sm:      8px;
  --kp-radius-md:      12px;
  --kp-radius-lg:      16px;
  --kp-radius-xl:      24px;
  --kp-radius-full:    999px;

  /* Shadows */
  --kp-shadow-sm:      0 1px 2px rgba(15,23,41,0.04), 0 1px 3px rgba(15,23,41,0.06);
  --kp-shadow-md:      0 4px 6px rgba(15,23,41,0.04), 0 10px 15px rgba(15,23,41,0.06);
  --kp-shadow-lg:      0 10px 15px rgba(15,23,41,0.06), 0 25px 50px rgba(15,23,41,0.10);

  /* Typography */
  --kp-font-display:   'Tajawal', 'Cairo', system-ui, sans-serif;
  --kp-font-body:      'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
  --kp-font-mono:      'JetBrains Mono', monospace;

  /* Animation */
  --kp-transition:     all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --kp-transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════
   2. RESET
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--kp-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--kp-text);
  background: var(--kp-bg);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--kp-primary); text-decoration: none; transition: var(--kp-transition); }
a:hover { color: var(--kp-primary-dark); }
button { font-family: inherit; cursor: pointer; }

/* ═══════════════════════════════════════════════════════
   3. TYPOGRAPHY
═══════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--kp-font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--kp-text);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }

/* ═══════════════════════════════════════════════════════
   4. LAYOUT
═══════════════════════════════════════════════════════ */
.kp-container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.kp-container-sm { max-width: 880px; margin-inline: auto; padding-inline: 1.5rem; }

.kp-section { padding-block: 5rem; }
.kp-section-sm { padding-block: 3rem; }

.kp-grid { display: grid; gap: 1.5rem; }
.kp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.kp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.kp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.kp-grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.kp-flex { display: flex; }
.kp-flex-center { display: flex; align-items: center; justify-content: center; }
.kp-flex-between { display: flex; align-items: center; justify-content: space-between; }
.kp-gap-1 { gap: 0.5rem; } .kp-gap-2 { gap: 1rem; } .kp-gap-3 { gap: 1.5rem; } .kp-gap-4 { gap: 2rem; }

@media (max-width: 768px) {
  .kp-grid-2, .kp-grid-3, .kp-grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .kp-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .kp-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════
   5. BUTTONS
═══════════════════════════════════════════════════════ */
.kp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--kp-radius-md);
  font-family: var(--kp-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--kp-transition);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.kp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: var(--kp-transition);
}
.kp-btn:hover::before { opacity: 1; }

.kp-btn-primary {
  background: var(--kp-primary);
  color: #fff;
  border-color: var(--kp-primary);
  box-shadow: var(--kp-shadow-sm);
}
.kp-btn-primary:hover {
  background: var(--kp-primary-dark);
  border-color: var(--kp-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15,110,86,0.3);
}

.kp-btn-outline {
  background: transparent;
  color: var(--kp-primary);
  border-color: var(--kp-primary);
}
.kp-btn-outline:hover {
  background: var(--kp-primary-light);
  color: var(--kp-primary-dark);
}

.kp-btn-ghost {
  background: transparent;
  color: var(--kp-text);
  border-color: var(--kp-border);
}
.kp-btn-ghost:hover {
  background: var(--kp-bg);
  border-color: var(--kp-border-strong);
}

.kp-btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.kp-btn-sm { padding: 0.5rem 1.125rem; font-size: 0.85rem; }
.kp-btn-block { width: 100%; }
.kp-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ═══════════════════════════════════════════════════════
   6. CARDS
═══════════════════════════════════════════════════════ */
.kp-card {
  background: var(--kp-surface);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius-lg);
  overflow: hidden;
  transition: var(--kp-transition-slow);
}
.kp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--kp-shadow-md);
  border-color: var(--kp-primary-mid);
}
.kp-card-body { padding: 1.5rem; }
.kp-card-flat { border-radius: var(--kp-radius-md); border-color: var(--kp-border); }
.kp-card-flat:hover { transform: none; }

/* Worker Card */
.kp-worker-card { display: flex; flex-direction: column; height: 100%; }
.kp-worker-img {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--kp-primary-light), #F0FDFA);
  overflow: hidden;
}
.kp-worker-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.kp-worker-card:hover .kp-worker-img img { transform: scale(1.05); }

.kp-worker-img .kp-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}

.kp-availability {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--kp-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.kp-avail-yes  { background: rgba(16,185,129,0.95); color: #fff; }
.kp-avail-no   { background: rgba(239,68,68,0.95);  color: #fff; }
.kp-avail-wait { background: rgba(245,158,11,0.95); color: #fff; }

.kp-fav-btn {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--kp-transition);
  font-size: 1.1rem;
  color: var(--kp-text-muted);
}
.kp-fav-btn:hover, .kp-fav-btn.active { color: var(--kp-danger); transform: scale(1.1); }

.kp-worker-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.kp-worker-name {
  font-family: var(--kp-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.kp-worker-meta { font-size: 0.85rem; color: var(--kp-text-muted); margin-bottom: 0.6rem; }

.kp-stars {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--kp-text-muted);
  margin-bottom: 0.875rem;
}
.kp-stars .kp-star-filled { color: #F59E0B; }
.kp-stars .rating-value { font-weight: 600; color: var(--kp-text); }

.kp-price-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.kp-price-pill {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--kp-radius-sm);
  background: var(--kp-bg);
  color: var(--kp-text-muted);
  font-weight: 500;
}
.kp-price-pill strong { color: var(--kp-primary); font-weight: 700; }

.kp-worker-card .kp-btn { margin-top: auto; }

/* ═══════════════════════════════════════════════════════
   7. BADGES & PILLS
═══════════════════════════════════════════════════════ */
.kp-badge {
  display: inline-flex; align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--kp-radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}
.kp-badge-success { background: var(--kp-success-bg); color: #065F46; }
.kp-badge-warning { background: var(--kp-warning-bg); color: #92400E; }
.kp-badge-danger  { background: var(--kp-danger-bg);  color: #991B1B; }
.kp-badge-info    { background: var(--kp-info-bg);    color: #1E40AF; }
.kp-badge-primary { background: var(--kp-primary-light); color: var(--kp-primary-dark); }

/* ═══════════════════════════════════════════════════════
   8. FORMS
═══════════════════════════════════════════════════════ */
.kp-form-group { margin-bottom: 1.25rem; }
.kp-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--kp-text);
  margin-bottom: 0.5rem;
}
.kp-input, .kp-select, .kp-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--kp-border);
  border-radius: var(--kp-radius-sm);
  font-family: var(--kp-font-body);
  font-size: 0.95rem;
  color: var(--kp-text);
  background: var(--kp-surface);
  transition: var(--kp-transition);
  direction: rtl;
}
.kp-input:focus, .kp-select:focus, .kp-textarea:focus {
  outline: none;
  border-color: var(--kp-primary);
  box-shadow: 0 0 0 4px rgba(15,110,86,0.1);
}
.kp-input::placeholder { color: var(--kp-text-light); }

.kp-input-icon { position: relative; }
.kp-input-icon .kp-input { padding-right: 3rem; }
.kp-input-icon .icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--kp-text-light);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   9. HEADER
═══════════════════════════════════════════════════════ */
.kp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--kp-border);
  padding-block: 0.875rem;
}
.kp-header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: var(--kp-shadow-sm);
}

.kp-logo {
  font-family: var(--kp-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--kp-text);
  text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
  letter-spacing: -0.02em;
}
.kp-logo-icon {
  width: 36px; height: 36px;
  background: var(--kp-primary);
  border-radius: var(--kp-radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}
.kp-logo span { color: var(--kp-primary); }

.kp-nav { display: flex; align-items: center; gap: 2rem; }
.kp-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--kp-text-muted);
  position: relative;
  padding: 0.4rem 0;
}
.kp-nav a:hover, .kp-nav a.active { color: var(--kp-primary); }
.kp-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0; left: 0;
  height: 2px;
  background: var(--kp-primary);
  border-radius: 2px;
}

.kp-header-actions { display: flex; align-items: center; gap: 0.75rem; }

.kp-cart-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: var(--kp-radius-md);
  background: var(--kp-bg);
  border: 1px solid var(--kp-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--kp-text);
  transition: var(--kp-transition);
}
.kp-cart-btn:hover { background: var(--kp-primary-light); border-color: var(--kp-primary-mid); color: var(--kp-primary); }
.kp-cart-count {
  position: absolute;
  top: -4px; left: -4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--kp-danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.kp-mobile-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}
.kp-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--kp-text);
  border-radius: 2px;
  transition: var(--kp-transition);
}

@media (max-width: 768px) {
  .kp-nav { display: none; }
  .kp-mobile-toggle { display: flex; }
}

/* ═══════════════════════════════════════════════════════
   10. HERO
═══════════════════════════════════════════════════════ */
.kp-hero {
  padding: 6rem 0 5rem;
  background:
    radial-gradient(ellipse 800px 400px at 90% 20%, rgba(93,202,165,0.12), transparent),
    radial-gradient(ellipse 600px 300px at 10% 80%, rgba(245,158,11,0.08), transparent),
    linear-gradient(180deg, #F0FDFA 0%, #F8FAFC 100%);
  position: relative;
  overflow: hidden;
}
.kp-hero-content { max-width: 640px; }
.kp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--kp-surface);
  color: var(--kp-primary);
  padding: 0.4rem 1rem;
  border-radius: var(--kp-radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid var(--kp-primary-mid);
  box-shadow: var(--kp-shadow-sm);
}
.kp-hero-eyebrow .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--kp-success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

.kp-hero h1 { margin-bottom: 1.25rem; }
.kp-hero h1 .highlight {
  color: var(--kp-primary);
  position: relative;
  white-space: nowrap;
}
.kp-hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  right: 0; left: 0;
  height: 0.3em;
  background: rgba(245,158,11,0.3);
  z-index: -1;
}

.kp-hero p {
  font-size: 1.15rem;
  color: var(--kp-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.kp-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.kp-hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--kp-border);
}
.kp-trust-avatars { display: flex; }
.kp-trust-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--kp-surface);
  background: var(--kp-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.kp-trust-avatar:not(:first-child) { margin-right: -10px; }
.kp-trust-text { font-size: 0.92rem; }
.kp-trust-text strong { color: var(--kp-text); }

.kp-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.kp-stat .kp-stat-num {
  font-family: var(--kp-font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--kp-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}
.kp-stat .kp-stat-label {
  font-size: 0.85rem;
  color: var(--kp-text-muted);
  margin-top: 0.4rem;
}

/* ═══════════════════════════════════════════════════════
   11. SEARCH / FILTER BAR
═══════════════════════════════════════════════════════ */
.kp-filter-bar {
  background: var(--kp-surface);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius-lg);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  box-shadow: var(--kp-shadow-sm);
}
.kp-filter-bar .kp-form-group { margin-bottom: 0; }
.kp-filter-bar .kp-label { font-size: 0.78rem; margin-bottom: 0.3rem; color: var(--kp-text-muted); }

@media (max-width: 1024px) {
  .kp-filter-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .kp-filter-bar { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   12. SECTION HEADERS
═══════════════════════════════════════════════════════ */
.kp-section-header { margin-bottom: 3rem; }
.kp-section-header.center { text-align: center; }
.kp-section-header.center p { margin-inline: auto; }

.kp-section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--kp-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.85rem;
  background: var(--kp-primary-light);
  border-radius: var(--kp-radius-full);
}
.kp-section-header h2 { margin-bottom: 0.75rem; }
.kp-section-header p {
  color: var(--kp-text-muted);
  max-width: 600px;
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════════════════════
   13. BOOKING WIDGET
═══════════════════════════════════════════════════════ */
.kp-booking-widget {
  background: var(--kp-surface);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius-xl);
  padding: 1.75rem;
  box-shadow: var(--kp-shadow-md);
}
.kp-booking-widget h3 {
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}

.kp-booking-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--kp-bg);
  border-radius: var(--kp-radius-md);
  padding: 0.3rem;
  margin-bottom: 1.5rem;
  gap: 0.25rem;
}
.kp-booking-tab {
  padding: 0.7rem;
  border-radius: var(--kp-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--kp-text-muted);
  transition: var(--kp-transition);
  font-family: var(--kp-font-display);
  cursor: pointer;
}
.kp-booking-tab.active {
  background: var(--kp-surface);
  color: var(--kp-primary);
  box-shadow: var(--kp-shadow-sm);
}
.kp-booking-tab:hover:not(.active) { color: var(--kp-text); }

.kp-booking-summary {
  background: linear-gradient(135deg, var(--kp-primary-light), #F0FDFA);
  border-radius: var(--kp-radius-md);
  padding: 1.25rem;
  margin: 1.25rem 0;
  border: 1px solid rgba(15,110,86,0.1);
}
.kp-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  color: var(--kp-text-muted);
}
.kp-summary-line.total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--kp-primary-dark);
  border-top: 1.5px dashed rgba(15,110,86,0.2);
  margin-top: 0.5rem;
  padding-top: 0.875rem;
}
.kp-summary-line .price-saved {
  font-size: 0.78rem;
  color: var(--kp-success);
  font-weight: 600;
}

/* Time Slots */
.kp-time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.kp-slot {
  padding: 0.5rem;
  text-align: center;
  border-radius: var(--kp-radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--kp-border);
  transition: var(--kp-transition);
  cursor: pointer;
  background: var(--kp-surface);
  user-select: none;
}
.kp-slot.free:hover { border-color: var(--kp-primary); color: var(--kp-primary); }
.kp-slot.taken {
  background: var(--kp-bg);
  color: var(--kp-text-light);
  cursor: not-allowed;
  text-decoration: line-through;
  pointer-events: none;
}
.kp-slot.chosen {
  background: var(--kp-primary);
  color: #fff;
  border-color: var(--kp-primary-dark);
  box-shadow: 0 2px 6px rgba(15,110,86,0.3);
}

/* ═══════════════════════════════════════════════════════
   14. PROFILE PAGE
═══════════════════════════════════════════════════════ */
.kp-profile-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .kp-profile-grid { grid-template-columns: 1fr; }
}

.kp-profile-header {
  background: var(--kp-surface);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius-xl);
  padding: 2rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: start;
}
.kp-profile-avatar {
  width: 140px; height: 140px;
  border-radius: var(--kp-radius-lg);
  object-fit: cover;
  background: var(--kp-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.kp-profile-info h1 { font-size: 1.875rem; margin-bottom: 0.4rem; }
.kp-profile-meta {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--kp-text-muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.kp-profile-meta span { display: flex; align-items: center; gap: 0.3rem; }

.kp-profile-tags {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
}

.kp-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--kp-border);
}
.kp-profile-stat {
  text-align: center;
  padding: 0.75rem;
  background: var(--kp-bg);
  border-radius: var(--kp-radius-md);
}
.kp-profile-stat .val {
  font-family: var(--kp-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--kp-primary);
  line-height: 1;
}
.kp-profile-stat .key {
  font-size: 0.78rem;
  color: var(--kp-text-muted);
  margin-top: 0.4rem;
}

@media (max-width: 640px) {
  .kp-profile-header { grid-template-columns: 1fr; text-align: center; }
  .kp-profile-avatar { margin: 0 auto; }
  .kp-profile-meta { justify-content: center; }
}

/* Photo Gallery */
.kp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.kp-gallery img {
  border-radius: var(--kp-radius-md);
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  transition: var(--kp-transition);
}
.kp-gallery img:hover { opacity: 0.9; transform: scale(1.02); }

/* Video */
.kp-video {
  border-radius: var(--kp-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}
.kp-video iframe { width: 100%; height: 100%; border: none; }

/* Booking sticky */
.kp-sticky { position: sticky; top: 90px; }

/* ═══════════════════════════════════════════════════════
   15. DASHBOARD
═══════════════════════════════════════════════════════ */
.kp-dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .kp-dashboard { grid-template-columns: 1fr; }
}

.kp-sidebar {
  background: var(--kp-surface);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}
.kp-sidebar-user {
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--kp-border);
  margin-bottom: 1.25rem;
}
.kp-sidebar-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--kp-primary-light);
  color: var(--kp-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--kp-font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.kp-sidebar-name { font-weight: 700; font-size: 0.95rem; }
.kp-sidebar-role { font-size: 0.78rem; color: var(--kp-text-muted); }

.kp-sidebar-nav { list-style: none; }
.kp-sidebar-nav li a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--kp-radius-sm);
  font-size: 0.92rem;
  color: var(--kp-text-muted);
  font-weight: 500;
  transition: var(--kp-transition);
}
.kp-sidebar-nav li a:hover {
  background: var(--kp-bg);
  color: var(--kp-text);
}
.kp-sidebar-nav li a.active {
  background: var(--kp-primary-light);
  color: var(--kp-primary-dark);
  font-weight: 600;
}

/* Stat Cards */
.kp-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) { .kp-stat-cards { grid-template-columns: repeat(2, 1fr); } }

.kp-stat-card {
  background: var(--kp-surface);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius-lg);
  padding: 1.25rem;
}
.kp-stat-card .icon {
  width: 40px; height: 40px;
  border-radius: var(--kp-radius-md);
  background: var(--kp-primary-light);
  color: var(--kp-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.875rem;
}
.kp-stat-card .num {
  font-family: var(--kp-font-display);
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--kp-text);
  letter-spacing: -0.02em;
}
.kp-stat-card .lbl {
  font-size: 0.85rem;
  color: var(--kp-text-muted);
  margin-top: 0.25rem;
}

/* Booking Item */
.kp-booking-item {
  background: var(--kp-surface);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius-lg);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
  transition: var(--kp-transition);
  margin-bottom: 0.75rem;
}
.kp-booking-item:hover { box-shadow: var(--kp-shadow-sm); border-color: var(--kp-primary-mid); }

.kp-booking-avatar {
  width: 48px; height: 48px;
  border-radius: var(--kp-radius-md);
  background: var(--kp-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.kp-booking-meta strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.kp-booking-meta span { font-size: 0.82rem; color: var(--kp-text-muted); }

@media (max-width: 640px) {
  .kp-booking-item { grid-template-columns: auto 1fr; }
  .kp-booking-item .kp-badge,
  .kp-booking-item .kp-btn { grid-column: 1/-1; }
}

/* ═══════════════════════════════════════════════════════
   16. FEATURES SECTION
═══════════════════════════════════════════════════════ */
.kp-feature {
  background: var(--kp-surface);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: var(--kp-transition-slow);
}
.kp-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--kp-shadow-md);
  border-color: var(--kp-primary-mid);
}
.kp-feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--kp-radius-lg);
  background: var(--kp-primary-light);
  color: var(--kp-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
  position: relative;
}
.kp-feature-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--kp-radius-lg);
  border: 2px dashed var(--kp-primary-mid);
  opacity: 0.4;
}
.kp-feature h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.kp-feature p { font-size: 0.92rem; color: var(--kp-text-muted); margin: 0; }

/* Process Steps */
.kp-step {
  text-align: center;
  position: relative;
}
.kp-step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--kp-surface);
  border: 3px solid var(--kp-primary);
  color: var(--kp-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--kp-font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  box-shadow: var(--kp-shadow-sm);
  position: relative;
  z-index: 2;
}
.kp-step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.kp-step p { font-size: 0.88rem; color: var(--kp-text-muted); margin: 0; }

/* ═══════════════════════════════════════════════════════
   17. FOOTER
═══════════════════════════════════════════════════════ */
.kp-footer {
  background: #0F1729;
  color: #94A3B8;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}
.kp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #1E293B;
}
.kp-footer-brand .kp-logo { color: #fff; }
.kp-footer-brand p { margin-top: 1rem; font-size: 0.92rem; line-height: 1.7; }

.kp-footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.kp-footer-col ul { list-style: none; }
.kp-footer-col ul li { margin-bottom: 0.6rem; }
.kp-footer-col ul li a {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: var(--kp-transition);
}
.kp-footer-col ul li a:hover { color: var(--kp-primary-mid); }

.kp-payment-logos {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.kp-payment-logo {
  background: #1E293B;
  border-radius: var(--kp-radius-sm);
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  color: #CBD5E1;
  font-weight: 600;
}

.kp-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: #64748B;
}
.kp-social { display: flex; gap: 0.5rem; }
.kp-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #1E293B;
  display: flex; align-items: center; justify-content: center;
  color: #94A3B8;
  transition: var(--kp-transition);
}
.kp-social a:hover { background: var(--kp-primary); color: #fff; transform: translateY(-2px); }

@media (max-width: 768px) {
  .kp-footer-grid { grid-template-columns: 1fr 1fr; }
  .kp-footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ═══════════════════════════════════════════════════════
   18. NOTIFICATIONS / TOASTS
═══════════════════════════════════════════════════════ */
.kp-toast-wrap {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.kp-toast {
  background: var(--kp-surface);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--kp-shadow-lg);
  display: flex; align-items: center; gap: 0.75rem;
  min-width: 280px;
  max-width: 400px;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 4px solid var(--kp-primary);
}
.kp-toast.success { border-right-color: var(--kp-success); }
.kp-toast.error   { border-right-color: var(--kp-danger); }
.kp-toast.warning { border-right-color: var(--kp-warning); }
.kp-toast .icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.kp-toast .msg { font-size: 0.92rem; flex: 1; }
.kp-toast .close {
  background: none; border: none;
  color: var(--kp-text-light);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
}

@keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   19. WOOCOMMERCE OVERRIDES
═══════════════════════════════════════════════════════ */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--kp-primary) !important;
  color: #fff !important;
  border-radius: var(--kp-radius-md) !important;
  font-family: var(--kp-font-display) !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 0.75rem 1.75rem !important;
  transition: var(--kp-transition) !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--kp-primary-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.woocommerce .star-rating span::before { color: #F59E0B; }
.woocommerce-notices-wrapper .woocommerce-message {
  border-top-color: var(--kp-primary) !important;
  background: var(--kp-primary-light) !important;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
}
.woocommerce-MyAccount-navigation ul li a {
  display: flex; align-items: center;
  padding: 0.75rem 1rem !important;
  border-radius: var(--kp-radius-sm) !important;
  color: var(--kp-text-muted) !important;
  font-weight: 500;
  transition: var(--kp-transition);
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--kp-primary-light) !important;
  color: var(--kp-primary-dark) !important;
}

/* ═══════════════════════════════════════════════════════
   20. UTILITIES
═══════════════════════════════════════════════════════ */
.kp-hidden { display: none !important; }
.kp-sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}
.kp-text-center { text-align: center; }
.kp-text-muted  { color: var(--kp-text-muted); }
.kp-mb-0 { margin-bottom: 0; }
.kp-mb-1 { margin-bottom: 0.5rem; }
.kp-mb-2 { margin-bottom: 1rem; }
.kp-mb-3 { margin-bottom: 1.5rem; }
.kp-mb-4 { margin-bottom: 2rem; }
.kp-mt-1 { margin-top: 0.5rem; }
.kp-mt-2 { margin-top: 1rem; }
.kp-mt-3 { margin-top: 1.5rem; }
.kp-mt-4 { margin-top: 2rem; }

/* Skip link */
.kp-skip-link {
  position: absolute;
  top: -40px;
  right: 1rem;
  background: var(--kp-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--kp-radius-sm);
  z-index: 9999;
}
.kp-skip-link:focus { top: 1rem; }
