
.fcs-card {
  width: 100%;
  border-radius: 20px;
  padding: 20px;
  margin: 15px 0;
  backdrop-filter: blur(12px);
  font-family: "Tajawal", sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
}

.fcs-dark {
  background: rgba(15,23,42,0.95);
  color: #f8fafc;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.fcs-light {
  background: rgba(255,255,255,0.95);
  color: #111827;
  border: 1px solid #e5e7eb;
}

.fcs-glass {
  background: rgba(255,255,255,0.15);
  color: #fff;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.fcs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* حجم الويدجت */
.fcs-size-small {
  max-width: 300px;
  padding: 15px;
}

.fcs-size-medium {
  max-width: 450px;
}

.fcs-size-large {
  max-width: 100%;
  padding: 25px;
}

/* رأس الويدجت */
.fcs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.fcs-title {
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.3;
  max-width: 75%;
}

.fcs-badge {
  background: #16a34a;
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  animation: pulse 2s infinite;
}

/* رمز العملة/السهم */
.fcs-symbol-name {
  margin-bottom: 5px;
}

.fcs-symbol {
  font-size: 0.85rem;
  opacity: 0.7;
  font-weight: 500;
}

/* صندوق السعر */
.fcs-price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.fcs-price-value {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}

.fcs-currency {
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0.8;
}

.fcs-change {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  margin-right: 8px;
}

.fcs-up {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
}

.fcs-down {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

/* معلومات إضافية */
.fcs-sub {
  font-size: 0.95rem;
  display: flex;
  gap: 16px;
  margin: 8px 0;
  opacity: 0.9;
}

/* الرسم البياني */
.fcs-chart-container {
  position: relative;
  height: 120px;
  margin: 15px 0;
  border-radius: 12px;
  overflow: hidden;
}

.fcs-dark .fcs-chart-container {
  background: rgba(0,0,0,0.2);
}

.fcs-light .fcs-chart-container {
  background: rgba(0,0,0,0.03);
}

.fcs-chart {
  width: 100%;
  height: 100% !important;
}

.fcs-chart-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.1);
  backdrop-filter: blur(2px);
  z-index: 2;
  font-size: 0.9rem;
}

/* تذييل الويدجت */
.fcs-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.85rem;
  opacity: 0.85;
}

.fcs-powered {
  font-weight: 700;
  opacity: 0.7;
}

/* أنماط ويدجت المعادن */
.fcs-metal-icon {
  margin-left: 8px;
  font-size: 1.2rem;
}

.fcs-metal-units {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  gap: 20px;
}

.fcs-metal-unit {
  flex: 1;
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.fcs-dark .fcs-metal-unit {
  background: rgba(255,255,255,0.05);
}

.fcs-metal-unit-name {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 5px;
}

.fcs-metal-unit-price {
  font-size: 1.2rem;
  font-weight: 700;
}

.fcs-metal-karats {
  margin: 20px 0;
}

.fcs-metal-karats h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 700;
  text-align: center;
}

.fcs-karats-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}

.fcs-karats-table th,
.fcs-karats-table td {
  padding: 8px 12px;
  text-align: center;
}

.fcs-karats-table th {
  background: rgba(0,0,0,0.1);
  font-weight: 700;
}

.fcs-dark .fcs-karats-table th {
  background: rgba(255,255,255,0.1);
}

.fcs-karats-table tr:nth-child(even) {
  background: rgba(0,0,0,0.03);
}

.fcs-dark .fcs-karats-table tr:nth-child(even) {
  background: rgba(255,255,255,0.03);
}

.fcs-karats-table td:last-child {
  font-weight: 700;
  text-align: center;
}

/* تأثيرات */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.fcs-updated-animation {
  animation: highlight 1s ease-out;
}

@keyframes highlight {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* تحسينات للهواتف */
@media (max-width: 480px) {
  .fcs-price-value {
    font-size: 2rem;
  }
  
  .fcs-currency {
    font-size: 1rem;
  }
  
  .fcs-change {
    font-size: 1rem;
  }
  
  .fcs-chart-container {
    height: 100px;
  }
  
  .fcs-card {
    padding: 15px;
  }
  
  .fcs-title {
    font-size: 1.1rem;
  }
  
  .fcs-metal-units {
    flex-direction: column;
    gap: 10px;
  }
  
  .fcs-karats-table th,
  .fcs-karats-table td {
    padding: 6px 8px;
    font-size: 0.9rem;
  }
}

.fcs-bullion-table th {
  background: rgba(0, 0, 0, 0.1);
}

.fcs-dark .fcs-bullion-table th {
  background: rgba(255, 255, 255, 0.1);
}

.fcs-bullion-table td {
  font-weight: 600;
}

