﻿:root {
  /* ألوان حيوية يتم التحكم بها من لوحة التحكم */
  --sf-primary: #FF2E93; 
  --sf-accent: #00F0FF;  
  --sf-purple: #7000FF;  
  --sf-bg: #0F0518;      
  --sf-card-bg: rgba(255, 255, 255, 0.03);
  --sf-glass-border: rgba(255, 255, 255, 0.15);
  --sf-font: 'Rubik', system-ui, sans-serif;
  --sf-radius: 24px;     
}

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

body.sf-body {
  margin: 0;
  font-family: var(--sf-font);
  color: #fff;
  background-color: var(--sf-bg);
  /* خلفية متموجة "تتنفس" */
  background-image: 
    radial-gradient(at 0% 0%, rgba(112, 0, 255, 0.2) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(255, 46, 147, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(0, 240, 255, 0.1) 0px, transparent 50%);
  background-size: 200% 200%;
  animation: breathingBg 15s ease infinite alternate;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

@keyframes breathingBg {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* --- AI Hero Pulse (يوحي بالذكاء والحياة) --- */
@keyframes aiPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(0, 240, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

@keyframes aiBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

@keyframes antennaGlow {
  0%, 100% { filter: drop-shadow(0 0 2px var(--sf-accent)); opacity: 0.8; }
  50% { filter: drop-shadow(0 0 8px var(--sf-accent)); opacity: 1; }
}

.sf-chat-avatar {
  position: relative;
  width: 48px !important;
  height: 48px !important;
  animation: aiPulse 2s infinite;
  background: linear-gradient(135deg, var(--sf-primary), var(--sf-accent)) !important;
  border: 2px solid rgba(255,255,255,0.2);
  z-index: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50%;
  padding: 0;
  margin: 0;
}

.sf-chat-avatar svg {
  width: 30px !important;
  height: 30px !important;
  color: #fff;
  display: block;
  margin: auto; /* لضمان التوسيط */
}

.sf-chat-avatar .ai-eye {
  animation: aiBlink 4s infinite;
  transform-origin: center;
}

.sf-chat-avatar .ai-antenna-glow {
  animation: antennaGlow 2s infinite;
}

.sf-chat-avatar::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 50%;
  background: inherit;
  filter: blur(8px);
  opacity: 0.5;
  z-index: -1;
}

/* --- Message Animations --- */
.msg {
  max-width: 85%;
  padding: 12px 18px;
  border-radius: 20px;
  margin-bottom: 10px;
  position: relative;
  animation: msgSlideIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  opacity: 0;
  transform: translateY(10px);
  display: flex;
  flex-direction: column;
}

@keyframes msgSlideIn {
  to { opacity: 1; transform: translateY(0); }
}

.msg.me {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--sf-primary), var(--sf-purple));
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 5px 15px rgba(255, 46, 147, 0.2);
}

.msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 4px;
  backdrop-filter: blur(5px);
}

.msg.system {
  align-self: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 999px;
}

/* --- AI Recommended Product Glow --- */
.bot .sf-chat-product {
  border-color: rgba(0, 240, 255, 0.4) !important;
  background: rgba(0, 240, 255, 0.05) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
  position: relative;
}

/* --- Chat Product Link (Inline) --- */
.chat-product-link {
  color: var(--sf-accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--sf-accent);
  padding-bottom: 1px;
  font-weight: 600;
  font-family: 'Rubik', 'Segoe UI', sans-serif;
  font-size: inherit;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
}

.chat-product-link:hover,
.chat-product-link:focus {
  color: var(--sf-primary);
  border-bottom-color: var(--sf-primary);
  text-shadow: 0 0 8px rgba(255, 46, 147, 0.4);
}

[dir="rtl"] .chat-product-link {
  text-align: right;
}

[dir="ltr"] .chat-product-link {
  text-align: left;
}

.bot .sf-chat-product::before {
  content: 'AI Choice';
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--sf-accent);
  color: #000;
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  z-index: 2;
}

[dir="rtl"] .bot .sf-chat-product::before {
  content: 'ترشيح ذكي';
  right: auto;
  left: 5px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: 0.3s ease; }

/* --- Navbar: Floating Pill Style --- */
.sf-navbar {
  background: rgba(15, 5, 24, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--sf-glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-bottom: 10px;
}

/* --- Store Brand (Clickable Store Name) --- */
.sf-store-brand {
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px 8px;
  margin: -4px -8px;
  border-radius: 8px;
}

.sf-store-brand:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.sf-store-brand:hover .sf-store-name {
  color: var(--sf-accent);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.sf-store-brand:hover .sf-store-tagline {
  opacity: 1;
  color: rgba(255, 255, 255, 0.95);
}

.sf-store-name {
  display: block;
  line-height: 1.2;
  margin-bottom: 2px;
}

.sf-store-tagline {
  display: block;
  line-height: 1.3;
  font-weight: 400;
}

/* --- Cards: Modern Glass --- */
.sf-card {
  background: var(--sf-card-bg);
  border: 1px solid var(--sf-glass-border);
  border-radius: var(--sf-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%; /* Fix height for grid */
  display: flex;
  flex-direction: column;
}

.sf-card .card-body {
    flex: 1; /* Make body fill the space */
    display: flex;
    flex-direction: column;
}

/* --- Buttons: Liquid Gradients --- */
.btn-sf {
  background: linear-gradient(135deg, var(--sf-primary), var(--sf-purple));
  border: none;
  color: #fff;
  border-radius: 50px; /* Full capsule */
  padding: 8px 24px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 46, 147, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-sf:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 46, 147, 0.6);
  filter: brightness(1.1);
}

.btn-outline-light {
  border-radius: 50px;
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-1px);
}

/* --- Hero Section --- */
.sf-hero {
  border: 1px solid var(--sf-glass-border);
  border-radius: var(--sf-radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  position: relative;
  overflow: hidden;
}
.sf-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(0,240,255,0.1) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}
@keyframes rotate { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }

/* --- Slider --- */
.sf-slider {
  border: 1px solid var(--sf-glass-border);
  border-radius: var(--sf-radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  overflow: hidden;
  position: relative;
}
.sf-slider .carousel-inner {
  border-radius: var(--sf-radius);
}
.sf-slider-slide {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.sf-slider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}
.sf-slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,10,20,0.85) 0%, rgba(5,10,20,0.45) 55%, rgba(5,10,20,0.1) 100%);
}
[dir="rtl"] .sf-slider-overlay {
  background: linear-gradient(270deg, rgba(5,10,20,0.85) 0%, rgba(5,10,20,0.45) 55%, rgba(5,10,20,0.1) 100%);
}
.sf-slider-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  max-width: 520px;
}
.sf-slider-title {
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  font-weight: 900;
  margin: 0 0 10px;
}
.sf-slider-text {
  color: rgba(255,255,255,0.8);
  margin: 0 0 16px;
  font-size: 1rem;
}
.sf-slider .carousel-indicators {
  margin-bottom: 0.75rem;
}
.sf-slider .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: rgba(255,255,255,0.55);
}
.sf-slider .carousel-indicators .active {
  background-color: #fff;
}
.sf-slider .carousel-control-prev,
.sf-slider .carousel-control-next {
  width: 8%;
}
@media (max-width: 767.98px) {
  .sf-slider-slide { min-height: 220px; }
  .sf-slider-content { padding: 20px; max-width: 100%; }
}

/* --- Products (Fixed Image Issues) --- */
.img-wrapper {
  width: 100%;
  height: 220px;
  background: #fff; /* White background for transparent images */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sf-product-img {
  height: 100%;
  width: 100%;
  object-fit: contain; /* Changed from cover to contain */
  transition: transform 0.5s ease;
  padding: 10px;
}

.product-hover-effect {
  transition: transform 0.3s ease;
}

.product-hover-effect:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.product-hover-effect:hover .sf-product-img {
  transform: scale(1.05);
}

.sf-mobile-tabs .nav-link {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.sf-mobile-tabs .tab-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sf-mobile-tabs .tab-ico svg {
  width: 18px;
  height: 18px;
}
.sf-mobile-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--sf-primary), var(--sf-purple));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 46, 147, 0.35);
}
@media (max-width: 991.98px) {
  .sf-tab-pane { display: none; }
  body:not([data-sf-tab]) .sf-tab-pane[data-sf-pane='store'] {
    display: block;
    width: 100%;
  }
  body[data-sf-tab='store'] .sf-tab-pane[data-sf-pane='store'],
  body[data-sf-tab='assistant'] .sf-tab-pane[data-sf-pane='assistant'] {
    display: block;
    width: 100%;
  }
}

.sf-product-link {
  color: inherit;
  text-decoration: none;
  display: block;
}
.sf-product-link:hover {
  color: inherit;
  opacity: 0.92;
}
.sf-detail-img {
  height: 320px;
}
.sf-detail-desc {
  color: rgba(255, 255, 255, 0.75);
  white-space: pre-line;
}
@media (max-width: 767.98px) {
  .sf-detail-img {
    height: 240px;
  }
}


/* --- Mobile Navbar Fixes --- */
@media (max-width: 767.98px) {
  .sf-navbar .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  main.container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* --- Desktop Layout & Sticky Chat --- */
@media (min-width: 992px) {
  /* Show both panes side by side */
  .sf-tab-pane[data-sf-pane="store"],
  .sf-tab-pane[data-sf-pane="assistant"] {
    display: block !important;
  }

  /* Sticky Assistant Pane */
  .sf-tab-pane[data-sf-pane="assistant"] {
    position: sticky;
    top: 90px;
    height: calc(100vh - 110px);
    z-index: 10;
  }

  /* Allow products to fill the height */
  .sf-tab-pane[data-sf-pane="store"] {
    min-height: calc(100vh - 100px);
  }
}

/* --- Chat Interface (AI Feel) --- */
.sf-chatbox {
  max-height: 520px;
  overflow-y: auto;
  padding: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--sf-primary) transparent;
  display: flex;
  flex-direction: column;
}
.sf-chat-input {
  display: flex;
  align-items: stretch;
}
.sf-chat-input .form-control {
  border-radius: 50px 0 0 50px;
  font-family: 'Rubik', 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.sf-chat-input .sf-chat-send {
  border-radius: 0 50px 50px 0;
  margin-inline-start: -10px;
  z-index: 5;
}
[dir="rtl"] .sf-chat-input {
  flex-direction: row-reverse;
}
[dir="rtl"] .sf-chat-input .form-control {
  border-radius: 0 50px 50px 0;
}
[dir="rtl"] .sf-chat-input .sf-chat-send {
  border-radius: 50px 0 0 50px;
  margin-inline-start: 0;
  margin-inline-end: -10px;
}

.msg .m { 
  white-space: pre-wrap; 
  line-height: 1.7; 
  font-size: 1.1rem; 
  font-family: 'Rubik', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* تحسين عرض الإيموجيات */
.msg .m {
  font-feature-settings: "liga" 1, "calt" 1;
}

.msg .m span {
  display: inline-block;
}

/* تأثير الكتابة المتحركة */
.msg.bot.typing .m::after {
  content: '▊';
  display: inline-block;
  animation: blink 1s infinite;
  color: var(--sf-accent);
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* تحسين الخط للعربية */
[dir="rtl"] .msg .m {
  font-family: 'Rubik', 'Segoe UI Arabic', 'Tahoma', 'Arial', sans-serif;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* تحسين الخط للرسائل الطويلة */
.msg .m {
  text-align: start;
}

/* تحسين وضوح النص */
.msg.bot .m {
  color: rgba(255, 255, 255, 0.95);
}

.msg.me .m {
  color: #ffffff;
  font-weight: 500;
}

.msg.system .m {
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  font-size: 1rem;
}

.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.suggest .chip {
  border: 1px solid var(--sf-accent);
  background: rgba(0, 240, 255, 0.05);
  color: var(--sf-accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
}
.suggest .chip:hover {
  background: var(--sf-accent);
  color: #000;
  box-shadow: 0 0 15px var(--sf-accent);
}

/* --- Chat Product Cards --- */
.sf-chat-product-single { margin-top: 8px; }
.sf-chat-products {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}
.sf-chat-products::-webkit-scrollbar { height: 6px; }
.sf-chat-product {
  flex: 0 0 auto;
  width: 180px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-snap-align: start;
}
.sf-chat-product.single { width: 100%; }
.sf-chat-product img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
}
.sf-chat-product-name { 
  font-weight: 600; 
  font-size: 1.05rem; 
  font-family: 'Rubik', 'Segoe UI', sans-serif;
  line-height: 1.4;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

.sf-chat-product-price { 
  font-weight: 700; 
  color: var(--sf-accent); 
  font-size: 1rem; 
  font-family: 'Rubik', 'Segoe UI', sans-serif;
  letter-spacing: 0.02em;
}

.sf-chat-product .btn-sf { 
  padding: 6px 10px; 
  font-size: 0.95rem; 
  font-family: 'Rubik', 'Segoe UI', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* --- Product Card Actions (Two Buttons Side by Side) --- */
.sf-chat-product-actions {
  display: flex;
  gap: 6px;
  width: 100%;
}

.sf-chat-product-actions .btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.sf-chat-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.sf-chat-product-link:hover .sf-chat-product-name {
  color: var(--sf-accent);
  transition: color 0.2s ease;
}

/* --- Cart & Offcanvas --- */
.sf-offcanvas {
  background: rgba(11, 5, 20, 0.95);
  backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--sf-glass-border);
}

.line {
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: 0.2s;
  display: flex; gap: 12px; align-items: center;
}
.line:hover { border-color: var(--sf-glass-border); background: rgba(255,255,255,0.06); }
.line img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; }

.qty input {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 8px;
  text-align: center;
  max-width: 60px;
}

/* --- Form Elements --- */
.form-control, .form-select {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 12px;
  padding: 10px 15px;
  backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.form-control:focus, .form-select:focus {
  border-color: var(--sf-accent) !important;
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.1) !important;
}
::placeholder { color: rgba(255,255,255,0.4) !important; }

.sf-muted { color: rgba(255, 255, 255, 0.6); }

/* --- Footer & Social --- */
.sf-footer { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.social-pill {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s;
}
.social-pill:hover {
  background: #fff;
  color: var(--sf-primary);
  transform: rotate(10deg) scale(1.1);
}

/* Badges */
.badge { font-weight: 600; padding: 0.5em 0.8em; }
.text-bg-dark { background: rgba(0,0,0,0.6) !important; backdrop-filter: blur(4px); }
/* إصلاح حجم ولون أيقونات الفوتر */
.social-pill svg {
    width: 20px;
    height: 20px;
    stroke: currentColor; /* ليأخذ لون النص المحدد في الـ parent */
    fill: none; /* أو fill: currentColor حسب نوع الأيقونة */
}

/* التأكد من توسيط الأيقونة */
.social-pill {
    display: flex;       /* تغيير من grid إلى flex لسهولة التوسيط */
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7); /* لون مبدئي للأيقونة */
}
/* --- إصلاح الفوتر (Footer Fix) --- */
/* إجبار كارت الفوتر على أخذ ارتفاع المحتوى فقط وليس الشاشة كاملة */
footer .sf-card {
    height: auto !important;
    min-height: auto !important;
    display: block !important;
}

/* إصلاح حجم ولون أيقونات التواصل الاجتماعي لتظهر بوضوح */
.social-pill svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.social-pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
}
.social-pill:hover {
    color: var(--sf-primary);
    background: #fff;
}

.fw-black { font-weight: 900; }
.backdrop-blur { backdrop-filter: blur(6px); }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Quick Replies */
.sf-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 8px;
  animation: slideUp 0.3s ease-out;
}

.sf-quick-reply-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-family: 'Rubik', 'Segoe UI', sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sf-quick-reply-btn:hover {
  background: var(--sf-primary);
  border-color: var(--sf-primary);
  color: #fff;
  transform: translateY(-2px);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
