/* =========================================
 * Read More
 * ========================================= */
.wp-brokernew-rm-container {
  font-family: inherit;
}

.wp-brokernew-rm-content {
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.wp-brokernew-rm-content.collapsed {
  max-height: 80px;
  position: relative;
}

.wp-brokernew-rm-toggle-wrapper {
  text-align: center;
  cursor: pointer;
}

.wp-brokernew-rm-content.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(transparent, #021726);
}

.wp-brokernew-rm-btn {
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* =========================================
 * Broker Table
 * ========================================= */
.wp-brokernew-table-wrapper {
  background-color: #0b1f2e;
  border-radius: 12px;
  padding: 20px;
  direction: rtl;
  font-family: inherit;
}

.wp-brokernew-broker-table {
  width: 100%;
  border-collapse: collapse;
  color: #a4b3c6;
  text-align: center;
}

.wp-brokernew-broker-table thead th {
  padding: 20px 10px;
  font-weight: bold;
  font-size: 15px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wp-brokernew-broker-table tbody td {
  padding: 15px 10px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.wp-brokernew-broker-table tbody tr:last-child td {
  border-bottom: none;
}

/* Logos */
.wp-brokernew-broker-table .broker-logo img {
  max-width: 110px;
  height: auto;
  background-color: #fff;
  padding: 8px 15px;
  border-radius: 8px;
  display: inline-block;
  vertical-align: middle;
}

/* Rebate changes */
.wp-brokernew-broker-table .col-rebate span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #0d2f3f;
  color: #00d285;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 13px;
  direction: ltr;
}

/* Buttons */
.wp-brokernew-broker-table .action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.wp-brokernew-broker-table .btn-rebate,
.wp-brokernew-broker-table .btn-review {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.wp-brokernew-broker-table .btn-rebate {
  background-color: #00b98e;
  color: #fff;
}

.wp-brokernew-broker-table .btn-rebate:hover {
  background-color: #009975;
}

.wp-brokernew-broker-table .btn-review {
  background-color: #263849;
  color: #a4b3c6;
}

.wp-brokernew-broker-table .btn-review:hover {
  background-color: #2e4358;
  color: #fff;
}

.table-footer-link {
  text-align: center;
  margin-top: 20px;
}
.table-footer-link a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

@media (max-width: 768px) {
  .wp-brokernew-table-wrapper {
    padding: 15px 10px;
  }

  .col-deposit,
  .col-regulations {
    display: none !important;
  }

  .btn-review,
  .desktop-only {
    display: none !important;
  }

  .wp-brokernew-broker-table thead th {
    padding: 10px 5px 20px 5px;
    font-size: 13px;
  }

  .wp-brokernew-broker-table tbody td {
    padding: 12px 2px;
  }

  .wp-brokernew-broker-table .broker-logo img {
    max-width: 85px;
    padding: 6px 10px;
    border-radius: 6px;
  }

  .wp-brokernew-broker-table .col-rebate span {
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 4px;
  }

  .wp-brokernew-broker-table .btn-rebate {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 6px;
  }
}

/* =========================================
 * Custom Audio Player
 * ========================================= */
.wp-brokernew-custom-player {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #0b1f2e;
  padding: 10px 20px;
  border-radius: 12px;
  direction: ltr;
  font-family: inherit;
  width: 100%;
  max-width: 500px;
}
.wp-brokernew-custom-player .custom-play-btn {
  background-color: #00b98e;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.wp-brokernew-custom-player .custom-play-btn:hover {
  background-color: #009975;
}
.wp-brokernew-custom-player .custom-time {
  color: #a4b3c6;
  font-size: 13px;
  font-weight: bold;
  min-width: 35px;
  text-align: center;
}
.wp-brokernew-custom-player .custom-progress-bar {
  flex-grow: 1;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #263849;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}
.wp-brokernew-custom-player .custom-progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00d285;
  cursor: pointer;
  transition: transform 0.1s;
}
.wp-brokernew-custom-player .custom-progress-bar::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}


/* =========================================
 * Account Tabs
 * ========================================= */
.wp-brokernew-tabs-container {
  margin-top: 20px;
  direction: rtl;
}

/* استایل کانتینر دکمه‌ها (انتقال به سمت راست در حالت rtl) */
.wp-brokernew-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* این دستور باعث می‌شود دکمه‌ها از سمت راست شروع شوند */
  gap: 10px;
  margin-bottom: 15px;
}

/* استایل دکمه‌های غیرفعال (حالت Ghost - بک گراند خالی، خط دور سبز) */
.wp-brokernew-tab-link {
  background-color: transparent;
  color: #00b98e;
  border: 1px solid #00b98e;
  padding: 8px 25px;
  font-family: "Yekan Bakh", sans-serif;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
}

.wp-brokernew-tab-link:hover {
  background-color: rgba(0, 185, 142, 0.1);
}

/* استایل دکمه فعال (بک گراند سبز سالید با خط سفید پایین) */
.wp-brokernew-tab-link.active {
  background-color: #00b98e;
  color: #ffffff;
  border: 1px solid #00b98e;
  border-bottom: 3px solid #ffffff;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* استایل محتوای تب‌ها */
.wp-brokernew-tab-content {
  display: none;
  animation: fadeInTab 0.4s ease;
}

.wp-brokernew-tab-content.active {
  display: block;
}

/* =========================================
 * جدول محتوای تب‌ها
 * ========================================= */
.wp-brokernew-tab-content table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 6px;
  overflow: hidden;
}

.wp-brokernew-tab-content table th {
  background-color: #00b98e;
  color: #ffffff;
  padding: 16px 10px;
  text-align: center;
  font-weight: bold;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.wp-brokernew-tab-content table td {
  background-color: #0b1f2e;
  color: #ffffff;
  padding: 16px 10px;
  text-align: center;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.wp-brokernew-tab-content table tr:nth-child(even) td {
  background-color: #0d2436;
}

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