:root {
  --main-bg: #f9faf6;
  --card-bg: #fcfff1;
  --primary-green: #c2e66e;
  --text-primary: #333333;
  --text-secondary: #777777;
  --card-border: 0.8px solid rgba(0, 0, 0, 0.08);
  --card-radius: 13px;
  --gradient-start: #ad46ff;
  --gradient-end: #f6339a;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --Text2-color--: #08303d;
  --OffWhite: #f8faf0;
  --font-blue-dark: #0a3e4e;
  --font-red: #ff2a23;

  --back-ground-1: #62708540;
  --back-ground-2: #fef2f2;
  --main-color--: #b7cd68;
  --main2-color--: #b7cd6833;
  --Text-color--: #6e7b3e;
  --dark-color--: #0d5368;
  --holdText-color--: #627085;
  --border-color--: #549903;

  --bg-main: #f8faf7;
  --card-bg2: #ffffff;
  --primary: #b7cd68;
  --primary-dark: #9eb550;
  --secondary: #0d5368;
  --accent: #0a3e4e;
  --danger: #ff3b30;
  --text-main: #1a1a1a;
  --text-muted: #6c757d;
  --radius-lg: 20px;
  --radius-md: 15px;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================== أساسي الصفحة ================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Cairo", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
}

main {
  padding: 0 5px;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}
.text-primary {
  color: var(--font-blue-dark) !important;
}

.text-align-right {
  text-align: right;
}

.text-align-left {
  text-align: left;
}

.textMainColor {
  color: var(--main-color--) !important;
}

.textColor {
  color: var(--Text-color--);
}

.textColor {
  color: var(--Text-color--);
}

.text2Color {
  color: var(--Text2-color--);
}

.bgMainColor {
  background-color: var(--main-color--);
}

.bgMain2Color {
  background-color: var(--main2-color--);
}

.bgMain3Color {
  background-color: var(--main3-color--);
}

.holdColor {
  color: var(--holdText-color--);
}

.bgholdColor {
  background-color: var(--holdText-color--);
}

.borderColor {
  color: var(--border-color--);
}

.small-text {
  font-size: 0.9rem;
  color: var(--holdText-color--);
}

.greenColor {
  color: #40a139;
}

.text-B-dark {
  color: var(--font-blue-dark);
}

.text-red {
  color: var(--font-red);
}
.back-ground-Blue-Gray {
  background-color: var(--back-ground-1);
}

.back-ground-Rose-Tint {
  background-color: var(--back-ground-2);
}

.status {
  background: #dcfce7 !important;
  color: #008236 !important;
  font-weight: 600 !important;
  border-radius: 30px !important;
  padding: 4px 14px !important;
  display: inline-block !important;
  font-size: 14px !important;
}

/* ================== تخطيط عام ================== */
.dashboard-container {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}

/* ---------- الشريط الجانبي ---------- */
.sidebar {
  width: 240px;
  height: 100%;
  min-height: 100vh;
  background: var(--card-bg);
  padding: 15px 15px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.sidebar .logo {
  text-align: center;
  padding: 10px 0;
}

.sidebar .logo img {
  max-width: 90px;
  height: auto;
  display: inline-block;
}

/* قائمة التنقل */
.navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.navigation li {
  margin-bottom: 10px;
}

.navigation a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.18s, color 0.18s;
}

.navigation li.active a {
  background: rgba(0, 152, 131, 0.06);
  color: var(--primary-green);
}

.navigation a:hover {
  background: var(--main2-color--);
}

/* أيقونات القوائم */
.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  object-fit: contain;
}

/* ================== المحتوى الرئيسي ================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0px;
  overflow: hidden;
}

/* ---------- الهيدر ---------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--card-bg);
  padding: 20px 15px;
  border-bottom: solid #009883 1px;
}

.header .welcome-message h1 {
  margin: 0;
  font-size: 22px;
  color: var(--Text2-color--);
  font-weight: bold;
  margin-bottom: 5px;
}

.header .welcome-message p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.subscriptions-message h1 {
  margin: 0;
  font-size: 22px;
  color: var(--Text2-color--);
  font-weight: bold;
  margin-bottom: 5px;
}

.subscriptions-message p {
  margin: 10px 0px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
}

.navigation li.active a {
  background: var(--primary-green);
  color: var(--Text2-color--);
}

/* زر الإشعارات */
.notification-btn {
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

.notification-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: 0.3s;
}

.notification-btn:hover img {
  scale: 1.1;
}

/* ====================== مودال الإشعارات ===================== */
#notificationModal .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  background: #fff;
}

#notificationModal .modal-header {
  border-bottom: none;
  padding: 5px 5px 10px;
}

#notificationModal .modal-title {
  font-weight: 700;
  color: #333;
  font-size: 18px;
}

#notificationModal .notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #e5e7eb;
  background: #f6f9fb;
  border-radius: 10px;
  padding: 14px 5px;
  margin-bottom: 10px;
  transition: 0.3s;
}

#notificationModal .notification-item:hover {
  background: #eef6e8;
}

#notificationModal .notification-content {
  flex: 1;
}

#notificationModal .notification-text {
  font-size: 15px;
  color: #333;
  margin-bottom: 4px;
}

#notificationModal .notification-time {
  font-size: 13px;
  color: #888;
}

#notificationModal .modal-footer {
  border-top: none;
  text-align: center;
  justify-content: center;
  padding-top: 0;
}

/* ================== تعديل مكان المودال ================== */
#notificationModal .modal-dialog {
  position: fixed;
  top: -10px;
  left: 20px;
  transform: none;
  max-width: 370px;
}

#notificationModal .modal-content {
  border-radius: 14px;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#notificationModal.show {
  display: flex !important;
  justify-content: flex-start;
  align-items: flex-start;
}

.btn-view-all {
  background-color: #d4ed99;
  border: none;
  color: #333;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 22px;
  transition: 0.3s;
}

.btn-view-all:hover {
  background-color: #c7e486;
}

/* زر القائمة (3 شرط) */
.menu-toggle {
  display: none;
  background: none;
  color: var(--Text2-color--);
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-size: 22px;
  cursor: pointer;
}

/* ================== كروت الإحصائيات ================== */

.stat-card {
  background-color: #fff;
  border-radius: var(--card-radius);
  padding: 16px;
  border: var(--card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card {
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  padding: 0.9rem;
}

.gradient-card {
  background: linear-gradient(
    90deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: #fff;
}

.gradient-card .btn-light {
  color: #ad46ff;
}

.bg-main {
  background-color: var(--main2-color--);
}

.blue-card {
  background: #4ca3ff0d;
  border: 0.8px solid #4ca3ff;
}

.progress {
  height: 10px;
  border-radius: 10px;
  background-color: #eee;
}

.progress-bar {
  background-color: #168aad;
}

.badge-active {
  background: linear-gradient(135deg, #94be00 0%, #00ab0b 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 50%;
  padding: 4px 16px;
}

.badge-inactive {
  background: linear-gradient(135deg, #4a5565 0%, #718096 100%) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: unset !important;
  padding: 4px 16px !important;
}

.badge-expired {
  background: linear-gradient(135deg, #ff2a23 0%, #af0f1b 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 50%;
  padding: 4px 16px;
}

.badge-green {
  background: #67d99e;
  color: #fff;
  font-weight: 600;
  border-radius: 50%;
  padding: 4px 10px;
}

.reward-card {
  background: linear-gradient(135deg, #fefce8 0%, #fff7ed 100%);
  border: 1.6px solid #fff085;
  border-radius: var(--card-radius);
  text-align: center;
  padding: 1rem;
}

.btn-green {
  background-color: var(--main-color--);
  border: 2px solid var(--main-color--);
  color: #08303d;
  transition: 0.3s;
}

.btn-green:hover {
  background-color: #a3b85a;
}

.btn-outline-green {
  border: 2px solid var(--main-color--);
  color: var();
  box-shadow : none !important;
}

.btn-outline-green:hover {
  background-color: var(--main-color--);
  color: #08303d;
}

.error-box {
  background-color: #fdecea;
  color: #d93025;
  border-radius: 8px;
  padding: 10px;
  display: none;
}

/* ================== موبايل بسيط (Responsive) ================== */
@media (max-width: 980px) {
  .dashboard-container {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .main-section {
    flex-direction: column;
  }

  .secondary-column {
    width: 100%;
  }

  .card {
    padding: 0.6rem;
  }

  #notificationModal .modal-dialog {
    top: 10px;
    left: unset;
    margin: 0 5px;
  }
}

/* للموبايل */
@media (max-width: 980px) {
  .menu-toggle {
    display: block;
    z-index: 1000;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    /* مخفية افتراضياً */
    height: 100%;
    width: 240px;
    background: var(--card-bg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 999;
  }

  .sidebar.open {
    right: 0;
    /* تظهر لما نضغط */
  }

  /* تغطية الخلفية أثناء فتح القائمة */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 998;
  }

  .overlay.active {
    display: block;
  }
}

.costumTable .orders-container {
  overflow: hidden;
}

.costumTable .orders-header {
  background-color: #f2fdc646;
  color: #444;
}

.costumTable .orders-table {
  border-collapse: separate !important;
  border-spacing: 0 10px;
}

.costumTable .orders-table th {
  font-weight: normal;
  font-size: 15px;
}

.costumTable .orders-table th,
.costumTable .orders-table td {
  text-align: center;
  vertical-align: middle;
  padding: 8px 12px;
  border: none;
  background-color: transparent;
}

.costumTable .orders-table tr {
  border-bottom: 1px solid #f0f0f0;
  background-color: #7180961a;
  margin-bottom: 5px;
}

.costumTable .orders-table tr:last-child {
  border-bottom: none;
}

.costumTable .orders-table td {
  font-size: 15px;
  color: #333;
  background-color: transparent;
}

.costumTable .table-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
  color: #333;
}

.costumTable .table-title a {
  text-decoration: none;
  color: #888;
  font-size: 14px;
}

.costumTable .orders-table tbody tr:hover {
  background-color: #fafcf7;
}

/* 🟢 Responsive table View */
@media (max-width: 768px) {
  .costumTable .orders-table thead {
    display: none;
    /* إخفاء العناوين */
  }

  .costumTable .orders-table tr {
    display: block;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 10px 15px;
    text-align: right;
  }

  .costumTable .orders-table td {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
    border: none;
  }

  .costumTable .orders-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
  }
}

.badge-arrorw {
  background: linear-gradient(135deg, #b7cd68 0%, #b7cd68 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 50%;
  padding: 2px;
}

/* ================== موبايل بسيط (Responsive) ================== */

.card-state {
  background-color: #eff4ff;
  width: 100%;
  border-radius: 10px;
  padding: 1px 0px;
}

.card-state p {
  color: #0061ffcc;
  padding: 0px 25px;
}

.Savings-card {
  background: linear-gradient(135deg, #c1e546 10%, #b7cd68 80%);
}

.Latest-transactions,
.Lable-data {
  background-color: var(--OffWhite);
}
.Latest-transaction-font h2,
.Latest-transaction-font h4,
.Latest-transaction-font h5,
.Lable-data h2 {
  color: var(--font-blue-dark);
  font-weight: 600;
}

.Latest-transaction-font p {
  color: var(--font-blue-dark);
  font-weight: 400;
}

.Lable-data label {
  color: var(--holdText-color--);
  background-color: white;
}

.custom-input {
  color: var(--font-blue-dark);
  font-weight: 600;
  font-size: 16px;
}

.payment-options .option {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  text-align: center;
  padding: 10px;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.payment-options .option img {
  width: 60px;
  margin-bottom: 10px;
}

.payment-options .option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #607d8b;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.payment-options .option input[type="radio"]:checked {
  background-color: #00ab0b;
  box-shadow: 0 0 0 3px #c8f7c5;
}

.payment-options .option input[type="radio"]:checked + label,
.payment-options .option.selected {
  border-color: #00ab0b;
  background: #84e66e66;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.payment-options .option:has(input[type="radio"]:checked),
.payment-options .option.selected {
  border-color: #00ab0b;
  background: #e6ffe6;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.payment-options .option:hover {
  transform: translateY(-3px);
}

/* new */
.Lable-data label {
  color: var(--holdText-color--);
  background-color: white;
}

.custom-input {
  color: var(--font-blue-dark);
  font-weight: 600;
  font-size: 20px;
}

.back-ground-Blue-dark {
  background-color: var(--dark-color--);
}

.back-ground-off-white {
  background-color: var(--OffWhite);
}

.line {
  height: 10px;
  flex-grow: 1;
  position: relative;
  top: 0;
  transform: translateY(800%);
  background-color: var(--holdText-color--);
}

.line.active {
  background-color: var(--primary-green);
}

.text-blue-dark {
  color: var(--Text2-color--);
}

.back-ground-p-green {
  background-color: var(--primary-green);
}

.text-light-violet {
  color: var(--gradient-start);
}

.costum-rounded-10 {
  border-radius: 10px;
}

.costum-rounded-15 {
  border-radius: 13px;
}

.costum-rounded-18 {
  border-radius: 18px;
}

.costum-rounded-20 {
  border-radius: 20px;
}

.back-ground-steelBlueGray {
  background: linear-gradient(180deg, #45556c 0%, #0a3e4e 100%);
}

.F-w-700 {
  font-weight: 700;
}

.F-w-500 {
  font-weight: 500;
}

.F-w-400 {
  font-weight: 400;
}

.status-close {
  background: #64646433;
  color: var(--holdText-color--);
  font-weight: 600;
  border-radius: 30px;
  padding: 4px 14px;
  display: inline-block;
  font-size: 14px;
}

.status-open {
  background: #9fc3ff66;
  color: #0066ff;
  font-weight: 600;
  border-radius: 30px;
  padding: 4px 14px;
  display: inline-block;
  font-size: 14px;
}

.back-ground-white20 {
  background-color: #ffffff33;
}

.back-ground-white4d {
  background-color: #ffffff4d;
}

.text-whit80 {
  color: #ffffffcc;
}

.referral-section input#refCode.form-control[readonly] {
  background-color: #ffffff4d !important;
}

.fs-trak-order {
  font-size: 26px;
}

.c-row-column {
  flex-direction: row;
}

@media (max-width: 1436px) {
  .fs-trak-order {
    font-size: 20px;
  }
}

@media (max-width: 1183px) {
  .fs-trak-order {
    font-size: 16px;
  }
}

@media (max-width: 980px) {
  .fs-trak-order {
    font-size: 20px;
  }
}

@media (max-width: 792px) {
  .fs-trak-order {
    font-size: 15px;
  }
}

@media (max-width: 759px) {
  .fs-trak-order {
    font-size: 12px;
  }
}

@media (max-width: 759px) {
  .text-reward {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .c-row-column {
    flex-direction: column;
    flex-direction: column;
    /* تتحول عمودي */
    align-items: center;
    /* العناصر في النص */
    justify-content: center;
  }

  .fs-trak-order {
    font-size: 18px;
  }

  .line {
    height: 100px;
    width: 10px;
    top: 0;
    margin: 10px;
    transform: translateX(20%);
  }

  .col-custom {
    flex: 0 0 100% !important;
    /* force override Bootstrap */
    max-width: 100% !important;
    /* force override Bootstrap */
  }

  .card-c-reward {
    flex: 0 0 70%;
  }
}

/* scCard */
.sc-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0px 0px 8px 0px #62708540;
  border: 0.8px solid #62708559;
}
.sc-card .sc-hero {
  position: relative;
  max-height: 200px;
  overflow: hidden;
}

.sc-card .sc-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sc-card .sc-badge-top {
  position: absolute;
  top: 12px;
  right: 8px;
  background: #00ab0b;
  color: #fff;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 22px;
  font-size: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.sc-card .sc-badge-top-left {
  position: absolute;
  top: 12px;
  left: 8px;
  background: #00ab0b;
  color: #fff;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 22px;
  font-size: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.sc-card .sc-nutri {
  background: #f8faf5;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  color: #374151;
  font-size: 13px;
  margin-bottom: 14px;
}
.sc-card .sc-nutri .sc-nutri-item {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  flex: 1;
  justify-content: center;
}
.sc-card .sc-nutri svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}
.sc-card .sc-variants {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
}
.sc-card .sc-variant-thumb {
  width: 100%;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
}
.sc-card .sc-variant-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 520px) {
  .sc-card {
    margin: 10px;
  }

  .sc-card .sc-hero {
    height: 160px;
  }
}
/* scCard */

.nutrition {
  background-color: #fff;
  padding: 4px 5px;
  display: flex;
  width: fit-content;
  flex-wrap: wrap;
  font-size: 11px;
  justify-content: center;
}

.nutrition img {
  width: auto !important;
  height: auto !important;
}
.nutrition span {
  padding: 5px 3px;
  border-radius: 10px;
  position: relative;
  margin-left: 8px;
}

@media (max-width: 1290px) {
  .nutrition {
    padding: 4px 2px;
  }
  .nutrition span {
    font-size: 11px;
    padding: 0 0px;
    padding-left: 0px;
  }
}

.containerDayes {
  background: white;
  border: 1px solid #ddd;
  border-radius: 15px;
  padding: 20px;
  width: 100%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.headerDayes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.headerDayes h3 {
  color: #1a3d47;
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.headerDayes .arrowsDayes {
  display: flex;
  gap: 8px;
}

.headerDayes .arrowsDayes button {
  border: unset !important;
  width: 35px;
  height: 35px;
  outline: unset !important;
  box-shadow: unset !important;
  transition: 0.2s;
}

.headerDayes .arrowsDayes button:hover {
  background: #b6d358;
  transform: scale(1.05);
}

.days {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

.day {
  background: #f8faf0;
  border-radius: 10px;
  text-align: center;
  flex: 1 1 calc(14.28% - 10px);
  min-width: 80px;
  /* max-width: 120px; */
  padding: 10px 0;
  cursor: pointer;
  transition: 0.3s;
}

.day.active {
  background: #c2e66e;
}

.day:hover {
  background: #c2e66e;
}

.day h4 {
  margin: 0;
  font-size: 16px;
  color: #043c44;
  white-space: nowrap;
  margin: 5px 0;
}

.day span {
  font-weight: bold;
  color: #043c44;
  font-size: 15px;
}

@media (max-width: 600px) {
  .containerDayes {
    padding: 15px;
  }

  .day {
    flex: 1 1 calc(33.33% - 10px);
  }

  .headerDayes h3 {
    font-size: 1rem;
  }

  .headerDayes .arrowsDayes button {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
}

@media (max-width: 400px) {
  .day {
    flex: 1 1 calc(50% - 10px);
  }
}

.notification-badge {
  position: absolute;
  top: 2px; /* اتحكم في المكان */
  right: 0px; /* اتحكم في المكان */
  padding: 4px 7px;
  font-size: 10px;
}

.qr-box {
  background: #f3f8e8;
}

/* ألوان الكروت الصغيرة */
.bg-light-orange {
  background: #fff3d6;
}

.bg-light-green {
  background: #f0f8ef;
}

.bg-light-purple {
  background: #f7f0ff;
}

.bg-light-blue {
  background: #eaf3ff;
}

.small-card {
  border-radius: 18px;
}
/* new */
/* تحسينات الكروت */
.subCard-details {
  background: var(--card-bg2);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.02);
  box-shadow: var(--shadow-soft);
  padding: 15px 28px;
  margin-bottom: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.subCard-details:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* لمسة جمالية خلف الكروت */
.subCard-details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: var(--primary);
  transition: var(--transition);
}

.subCard-details:hover::before {
  height: 100%;
}

/* العناوين */
.subCard-header-details {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 15px;
}

.subCard-header-details h5 {
  font-weight: 800;
  color: var(--secondary);
  margin: 0;
  font-size: 1.15rem;
}

.subCard-details .icon-circle {
  width: 45px;
  height: 45px;
  background: rgba(183, 205, 104, 0.15);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  font-size: 1.2rem;
}

/* النصوص */
.subCard-details .info-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.subCard-details .info-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  word-break: break-word;
}

.subCard-details .price-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 2px 10px rgba(173, 70, 255, 0.1);
}

/* الجداول */
.subCard-details .custom-table-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fafafa;
}

.subCard-details .table {
  margin-bottom: 0;
}

.subCard-details .table thead th {
  background-color: var(--secondary);
  color: white;
  padding: 15px;
  font-weight: 600;
  border: none;
}

.subCard-details .table tbody td {
  padding: 18px 15px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  transition: var(--transition);
}

.subCard-details .table tbody tr:hover td {
  background-color: rgba(183, 205, 104, 0.05);
  color: var(--secondary);
}

/* مؤشرات التقدم */
.subCard-details .progress-wrapper {
  background: #eee;
  border-radius: 20px;
  height: 12px;
  margin: 15px 0;
  position: relative;
}

.subCard-details .progress-bar-custom {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 3px 10px rgba(173, 70, 255, 0.2);
  position: relative;
}

/* إحصائيات دائرية */
.subCard-details .stat-item {
  padding: 15px;
  border-radius: var(--radius-md);
  background: #fdfdfd;
  border: 1px solid #f1f1f1;
  transition: var(--transition);
}

.subCard-details .stat-item:hover {
  background: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.subCard-details .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
  color: var(--secondary);
}

/* تفاصيل الإيقاف */
.subCard-details .pause-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px 8px;
  transition: var(--transition);
}

.subCard-details .pause-box:hover {
  border-color: var(--accent);
  background: rgba(173, 70, 255, 0.02);
}

/* الأزرار */
.btn-main {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(13, 83, 104, 0.2);
}

.btn-main:hover {
  background: #083a48;
  transform: scale(1.02);
  color: white;
}

.subCard-details {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.subCard-details .subCard-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.subCard-details .subCard-header h5 {
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
}



.subCard-details .pause-box {
  background: #f9faf8;
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  border: 1px solid #ececec;
}

.subCard-details .pause-box .info-label {
  font-size: 12px;
  color: #777;
  display: block;
}

.subCard-details .pause-box .info-value {
  font-size: 17px;
  font-weight: 700;
  color: #2b2b2b;
}

.subCard-details .pause-box.highlight {
  background: #f4f7ff;
  border-color: #d6dcff;
}

.subCard-details .pause-box.highlight .info-value {
  color: var(--accent);
}

/*Responsive*/
@media (max-width: 1240px) {
  .subCard-details .stat-item {
    padding: 12px 8px;
  }
  .subCard-details {
    padding: 18px 12px;
  }

  .subCard-details .info-value {
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  .subCard-details {
    padding: 10px;
  }

  .subCard-details .price-text {
    font-size: 1.5rem;
  }
  .subCard-details .table thead th {
    padding: 15px 5px;
    font-size: 13px;
  }
  .subCard-details .table tbody td {
    padding: 15px 5px;
    font-size: 13px;
    font-weight: normal !important;
  }
}
