.goldify-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.goldify-table th,
.goldify-table td {
  border: 1px solid #e2e2e2;
  padding: 6px 8px;
  text-align: left;
}

.goldify-btn {
  background: #d4af37;
  border: none;
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 3px;
}

.goldify-btn:hover {
  background: #b18f2d;
}

.goldify-field {
  margin-bottom: 10px;
}

.goldify-field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.goldify-converter {
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 4px;
}

.goldify-dashboard-section {
  margin-bottom: 20px;
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 4px;
}

.goldify-status {
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #eee;
  font-size: 11px;
}

.goldify-chart-widget {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.goldify-chart-widget:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.goldify-chart-header {
  font-weight: 700;
  margin-bottom: 16px;
  color: #1f2937;
  font-size: 18px;
  text-align: center;
}

.goldify-chart-controls {
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.goldify-chart-btn {
  background: #f9fafb;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.goldify-chart-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
}

/* Login Menu Widget Styles */
.goldify-login-menu-widget {
  position: relative;
  display: inline-block;
}

.goldify-login-button,
.goldify-user-menu-button {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: inherit;
}

.goldify-user-menu-container {
  position: relative;
  display: inline-block;
}

.goldify-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  margin-top: 5px;
}

.goldify-dropdown-menu.show {
  display: block;
}

.goldify-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
  color: inherit;
}

.goldify-dropdown-menu a:last-child {
  border-bottom: none;
}

.goldify-dropdown-menu a:hover {
  background-color: #f5f5f5;
}

.goldify-user-menu-button .fa-chevron-down {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.goldify-user-menu-button.active .fa-chevron-down {
  transform: rotate(180deg);
}

.goldify-chart-btn:hover::before {
  left: 100%;
}

.goldify-chart-btn:hover {
  background: #f8f1d4;
  color: #7a5c00;
  border-color: #d4af37;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

.goldify-chart-btn.active {
  background: linear-gradient(135deg, #d4af37, #b8962f);
  color: #fff;
  border-color: #d4af37;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

.goldify-chart-wrapper {
  height: 280px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
  padding: 8px;
}

.goldify-chart-wrapper canvas {
  border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .goldify-chart-widget {
    padding: 16px;
    margin: 0 8px;
  }

  .goldify-chart-header {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .goldify-chart-controls {
    margin-bottom: 12px;
    gap: 6px;
  }

  .goldify-chart-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .goldify-chart-wrapper {
    height: 240px;
    padding: 4px;
  }
}

@media (max-width: 480px) {
  .goldify-chart-widget {
    padding: 12px;
    margin: 0 4px;
  }

  .goldify-chart-header {
    font-size: 15px;
  }

  .goldify-chart-btn {
    padding: 5px 10px;
    font-size: 12px;
    flex: 1;
    text-align: center;
  }

  .goldify-chart-wrapper {
    height: 200px;
  }
}

.goldify-wallet-deposit {
  max-width: 400px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.goldify-wallet-deposit .deposit-header {
  background: #28a745;
  color: #fff;
  padding: 15px;
  text-align: center;
}

.goldify-wallet-deposit .deposit-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.goldify-wallet-deposit .balance-section {
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.goldify-wallet-deposit .balance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.goldify-wallet-deposit .balance-item:last-child {
  margin-bottom: 0;
}

.goldify-wallet-deposit .balance-label {
  color: #6c757d;
  font-size: 14px;
}

.goldify-wallet-deposit .balance-value {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.goldify-wallet-deposit .amount-section {
  padding: 20px;
}

.goldify-wallet-deposit .amount-section h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.goldify-wallet-deposit .amount-input-group {
  position: relative;
  margin-bottom: 15px;
}

.goldify-wallet-deposit .deposit-amount {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
  transition: border-color 0.3s;
}

.goldify-wallet-deposit .deposit-amount:focus {
  outline: none;
  border-color: #28a745;
}

.goldify-wallet-deposit .amount-display {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 14px;
  pointer-events: none;
}

.goldify-wallet-deposit .suggested-amounts {
  padding: 0 20px 20px;
}

.goldify-wallet-deposit .suggested-amounts h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.goldify-wallet-deposit .amount-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
}

.goldify-wallet-deposit .amount-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 10px 5px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  font-weight: 500;
}

.goldify-wallet-deposit .amount-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.goldify-wallet-deposit .amount-btn.active {
  background: #28a745;
  color: #fff;
  border-color: #28a745;
}

.goldify-wallet-deposit .payment-section {
  padding: 20px;
  background: #f8f9fa;
}

.goldify-wallet-deposit .deposit-pay-btn {
  width: 100%;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.goldify-wallet-deposit .deposit-pay-btn:hover:not(:disabled) {
  background: #218838;
}

.goldify-wallet-deposit .deposit-pay-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .goldify-wallet-deposit {
    margin: 0 10px;
  }

  .goldify-wallet-deposit .amount-buttons {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  }
}

/* Buy Metal Widget Styles */
.goldify-buy-widget {
  max-width: 520px;
  margin: 0 auto;
}

.goldify-buy-shell {
  background: transparent;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.goldify-buy-form {
  margin: 0;
}

/* Top yellow card */
.goldify-buy-top-card {
  background: #ffc107;
  background: linear-gradient(180deg, #ffca28, #ffb300);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  color: #ffffff;
  padding-bottom: 40px;
  /* Extra padding for overlap */
}

.goldify-buy-top-header {
  margin-bottom: 24px;
}

.goldify-buy-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.goldify-metal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.goldify-wallet-chip {
  background: #111827;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.goldify-wallet-chip-label {
  opacity: 0.85;
  font-weight: 400;
}

.goldify-wallet-chip-value {
  font-weight: 700;
  direction: ltr;
}

/* Dual Inputs Styling */
.goldify-dual-inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.goldify-field {
  margin: 0;
}

.goldify-input-box {
  display: flex;
  align-items: stretch;
  background: transparent;
  border: 1px solid #111827;
  border-radius: 14px;
  overflow: hidden;
  height: 52px;
  position: relative;
  transition: all 0.2s;
}

.goldify-input-box:focus-within {
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.goldify-input-label {
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  background: rgba(255, 204, 0, 0.5);
  /* Slight tint match */
  background: transparent;
  border-left: 1px solid #111827;
}

.goldify-field input[type="number"] {
  flex: 1;
  border: none !important;
  background: transparent !important;
  height: 100%;
  padding: 0 16px;
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  text-align: left;
  direction: ltr;
  width: 100%;
  outline: none;
}

.goldify-field input[type="number"]:focus {
  box-shadow: none !important;
  outline: none !important;
}

.goldify-field input[type="number"]::placeholder {
  color: rgba(17, 24, 39, 0.5);
  font-weight: 400;
}

/* Bottom white card */
.goldify-buy-bottom-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 18px 18px 20px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
  margin-top: -12px;
}

.goldify-buy-limits-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 12px;
}

.goldify-limit-item {
  display: flex;
  flex-direction: column;
}

.goldify-limit-value {
  margin-top: 2px;
  font-weight: 600;
  color: #111827;
}

.goldify-info.goldify-buy-summary {
  background: #f9fafb;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px 4px;
  margin-bottom: 14px;
}

.goldify-info .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid #e5e7eb;
}

.goldify-info .info-row:last-child {
  border-bottom: none;
}

.goldify-info .info-row.total-row {
  margin-top: 4px;
  border-top: 0;
  font-weight: 700;
}

.goldify-info .info-label {
  font-size: 12px;
  color: #6b7280;
}

.goldify-info .info-value {
  font-size: 14px;
  font-weight: 600;
}

.goldify-info .total-row .info-value {
  color: #111827;
}

.goldify-buy-btn {
  width: 100%;
  background: #111827;
  color: #f9fafb;
  border: none;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.goldify-buy-btn:hover:not(:disabled) {
  background: #020617;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  transform: translateY(-1px);
}

.goldify-buy-btn:disabled {
  background: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
}

.goldify-message {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.goldify-message.success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.goldify-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media (max-width: 480px) {
  .goldify-buy-top-card,
  .goldify-buy-bottom-card {
    border-radius: 18px;
    padding: 16px 14px;
  }

  .goldify-buy-title-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Metal Prices Card Styles */
.goldify-price-card {
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.goldify-price-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #d4af37, #f4e4bc, #d4af37);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.8;
}

.goldify-price-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.goldify-price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.goldify-price-info {
  flex: 1;
}

.goldify-price-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.goldify-price-amount {
  font-size: 32px;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 8px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.goldify-price-updated {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 400;
}

.goldify-price-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.goldify-price-icon {
  font-size: 24px;
  color: #d4af37;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Design for Price Card */
@media (max-width: 768px) {
  .goldify-price-card {
    padding: 20px;
    margin: 0 8px;
  }

  .goldify-price-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .goldify-price-amount {
    font-size: 28px;
  }

  .goldify-price-icon-wrapper {
    width: 50px;
    height: 50px;
  }

  .goldify-price-icon {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .goldify-price-card {
    padding: 16px;
    margin: 0 4px;
  }

  .goldify-price-amount {
    font-size: 24px;
  }

  .goldify-price-title {
    font-size: 14px;
  }

  .goldify-price-icon-wrapper {
    width: 40px;
    height: 40px;
  }

  .goldify-price-icon {
    font-size: 18px;
  }
}

/* Ticket System Styles */
.goldify-ticket-list-wrapper {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.goldify-ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.goldify-ticket-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.goldify-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.goldify-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.goldify-list li:hover {
  background: #f9f9f9;
}

.goldify-list li:last-child {
  border-bottom: none;
}

.goldify-list a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.goldify-list a:hover {
  color: #d4af37;
}

.goldify-status {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.goldify-status-open {
  background: #e3f2fd;
  color: #0d47a1;
}

.goldify-status-closed {
  background: #ffebee;
  color: #c62828;
}

.goldify-status-pending {
  background: #fff3e0;
  color: #e65100;
}

/* Modal Styles */
.goldify-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.goldify-modal-content {
  margin: 100px auto;
  background-color: #fff;
  padding: 25px;
  border: 1px solid #d4af37;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: goldifySlideIn 0.3s ease;
}

@keyframes goldifySlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

.goldify-close-modal {
  color: #aaa;
  float: left;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.goldify-close-modal:hover {
  color: #d4af37;
}

.goldify-modal h3 {
  margin-top: 0;
  color: #d4af37;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.goldify-modal .form-group {
  margin-bottom: 15px;
}

.goldify-modal label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.goldify-modal input[type="text"],
.goldify-modal select,
.goldify-modal textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.goldify-modal input:focus,
.goldify-modal select:focus,
.goldify-modal textarea:focus {
  border-color: #d4af37;
  outline: none;
}

.goldify-modal button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #d4af37;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

/* Chat UI Styles */
.goldify-chat-msg {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 12px;
  max-width: 85%;
  position: relative;
  clear: both;
}

.user-msg {
  background-color: #f0f7ff;
  border: 1px solid #cce5ff;
  color: #333;
  float: right;
  /* RTL: float right for user */
  border-bottom-right-radius: 2px;
}

.admin-msg {
  background-color: #fff8e1;
  /* Light Gold/Yellow */
  border: 1px solid #ffe0b2;
  color: #333;
  float: left;
  border-bottom-left-radius: 2px;
}

/* Clear float after messages */
#goldify-ticket-chat-area::after {
  content: "";
  clear: both;
  display: table;
}

.msg-header {
  font-size: 11px;
  margin-bottom: 6px;
  color: #888;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 4px;
}

.msg-header strong {
  color: #555;
}

.msg-content {
  line-height: 1.6;
  font-size: 13px;
  white-space: pre-wrap;
  /* Preserve newlines */
}

/* Scrollbar styling for chat area */
#goldify-ticket-chat-area::-webkit-scrollbar {
  width: 6px;
}

#goldify-ticket-chat-area::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#goldify-ticket-chat-area::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

#goldify-ticket-chat-area::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

.goldify-pl-summary {
  margin-bottom: 24px;
}

.goldify-pl-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.goldify-pl-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  text-align: center;
}

.goldify-pl-card-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.goldify-pl-card-value {
  font-size: 20px;
  font-weight: 700;
  direction: ltr;
}

.goldify-pl-positive {
  border-color: #16a34a;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #14532d;
}

.goldify-pl-negative {
  border-color: #dc2626;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #7f1d1d;
}

.goldify-pl-neutral {
  border-color: #e5e7eb;
  background: #f9fafb;
}

/* User Dashboard Transactions - Search & Pagination */
.goldify-transactions-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.goldify-transactions-search-input {
  width: 100%;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.goldify-transactions-search-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.goldify-transactions-table-wrapper {
  overflow-x: auto;
}

.goldify-transactions-pagination {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.goldify-pagination {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 4px;
  direction: ltr;
}

.goldify-pagination li {
  display: inline-block;
}

.goldify-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  color: #4b5563;
  text-decoration: none;
  background: #ffffff;
  transition: all 0.2s ease;
}

.goldify-pagination a:hover {
  border-color: #d4af37;
  color: #111827;
  background: #fefce8;
}

.goldify-pagination li.active a {
  background: linear-gradient(135deg, #d4af37, #b8962f);
  color: #ffffff;
  border-color: #d4af37;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
}

@media (max-width: 600px) {
  .goldify-transactions-toolbar {
    justify-content: stretch;
  }

  .goldify-transactions-search-input {
    max-width: 100%;
  }
}

/* Sell Metal Widget Styles */
.goldify-sell-widget {
  max-width: 520px;
  margin: 0 auto;
}

.goldify-sell-shell {
  background: transparent;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Top dark card */
.goldify-sell-top-card {
  background: #1f2937;
  /* Dark background */
  border-radius: 24px;
  padding: 24px 24px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  color: #ffffff;
  margin-bottom: 20px;
}

.goldify-sell-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.goldify-sell-inventory-badge {
  background: #fdf6b2;
  color: #9f580a;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}

.goldify-sell-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: white;
}

/* Sell Input Groups */
.goldify-sell-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.goldify-sell-input-group {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  height: 54px;
}

.goldify-sell-unit {
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  border-left: 1px solid #e5e7eb;
  /* Left border since RTL */
}

.goldify-sell-field {
  flex: 1;
  border: none;
  padding: 0 16px;
  font-size: 16px;
  color: #111827;
  outline: none;
  text-align: right;
}

.goldify-sell-field::placeholder {
  color: #9ca3af;
}

/* Bottom white card */
.goldify-sell-bottom-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 2;
  margin-top: -40px;
  /* Overlap with top card */
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.goldify-sell-info-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.goldify-sell-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.goldify-sell-info-left,
.goldify-sell-info-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

.goldify-sell-info-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
  color: #6b7280;
  font-size: 14px;
}

.goldify-sell-info-value {
  color: #111827;
  font-weight: 700;
}

.goldify-sell-btn {
  width: 100%;
  background: #991b1b;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.goldify-sell-btn:hover:not(:disabled) {
  background: #7f1d1d;
}

.goldify-sell-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .goldify-sell-bottom-card {
    width: 100%;
    margin-top: -20px;
    border-radius: 20px;
  }

  .goldify-sell-top-card {
    padding-bottom: 40px;
    /* Space for overlap */
  }
}

.swal2-input {
  width: auto;
}

/* Transfer Metal Widget Styles */
.goldify-transfer-wrapper {
  --goldify-primary-color: #d4af37;
  --goldify-secondary-color: #1f2937;
  --goldify-bg-color: #ffffff;
  --goldify-border-radius: 16px;
  --goldify-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --goldify-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.goldify-transfer-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 0 8px;
}

.goldify-transfer-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--goldify-primary-color), #b8962f);
  border-radius: 50%;
  margin-bottom: 16px;
  color: white;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.goldify-transfer-header-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--goldify-secondary-color);
  margin: 0;
  line-height: 1.2;
}

.goldify-transfer-card {
  background: var(--goldify-bg-color);
  border-radius: var(--goldify-border-radius);
  box-shadow: var(--goldify-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.goldify-transfer-card:hover {
  box-shadow: var(--goldify-shadow-hover);
  transform: translateY(-2px);
}

/* Modern Style */
.goldify-transfer-modern {
  background: linear-gradient(135deg, var(--goldify-bg-color), #f8f9fa);
  border: 2px solid var(--goldify-primary-color);
  position: relative;
}

.goldify-transfer-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--goldify-primary-color),
    #f4e4bc,
    var(--goldify-primary-color)
  );
}

/* Classic Style */
.goldify-transfer-classic {
  background: var(--goldify-bg-color);
  border: 3px solid var(--goldify-primary-color);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}

/* Minimal Style */
.goldify-transfer-minimal {
  background: var(--goldify-bg-color);
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.goldify-transfer-minimal:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Error State */
.goldify-transfer-error {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 2px solid #ef4444;
  text-align: center;
  padding: 40px 24px;
}

.goldify-transfer-error .goldify-transfer-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.goldify-transfer-error h3 {
  color: #dc2626;
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
}

.goldify-transfer-error p {
  color: #7f1d1d;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* Balance Display */
.goldify-transfer-balance {
  padding: 20px;
  text-align: center;
  border-radius: var(--goldify-border-radius) var(--goldify-border-radius) 0 0;
}

.goldify-balance-label {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.goldify-balance-value {
  font-size: 24px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Form Styles */
.goldify-transfer-form {
  padding: 32px 24px;
}

.goldify-form-group {
  margin-bottom: 24px;
}

.goldify-form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--goldify-secondary-color);
  font-size: 14px;
}

.goldify-label-icon {
  font-size: 16px;
}

.goldify-required {
  color: #ef4444;
  font-weight: 700;
  margin-left: 4px;
}

.goldify-input-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
}

.goldify-input,
.goldify-select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  background: var(--goldify-bg-color);
  color: var(--goldify-secondary-color);
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.goldify-input:focus,
.goldify-select:focus {
  border-color: var(--goldify-primary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.goldify-input::placeholder {
  color: #9ca3af;
}

.goldify-select {
  appearance: none;
  cursor: pointer;
  padding-left: 40px;
}

.goldify-input-arrow {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 12px;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.goldify-input-wrapper:hover .goldify-input-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.goldify-input-suffix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}

.goldify-input:valid + .goldify-input-suffix {
  color: var(--goldify-primary-color);
}

/* Recipient Info */
.goldify-recipient-info {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.goldify-info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--goldify-secondary-color);
}

.goldify-info-icon {
  font-size: 18px;
}

.goldify-info-title {
  font-size: 14px;
}

.goldify-recipient-details {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

/* Form Actions */
.goldify-form-actions {
  margin-top: 32px;
}

.goldify-transfer-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--goldify-primary-color), #b8962f);
  color: white;
  border: none;
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
}

.goldify-transfer-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.goldify-transfer-btn:hover::before {
  left: 100%;
}

.goldify-transfer-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.goldify-transfer-btn:active:not(:disabled) {
  transform: translateY(0);
}

.goldify-transfer-btn:disabled {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  cursor: not-allowed;
  box-shadow: none;
}

.goldify-btn-icon {
  font-size: 18px;
}

/* Loading State */
.goldify-transfer-btn.loading {
  pointer-events: none;
}

.goldify-transfer-btn.loading .goldify-btn-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* OTP Modal Styles */
.goldify-otp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.goldify-otp-modal.show {
  opacity: 1;
  visibility: visible;
}

.goldify-otp-modal-content {
  background: var(--goldify-bg-color);
  border-radius: var(--goldify-border-radius);
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  border: 2px solid var(--goldify-primary-color);
}

.goldify-otp-modal.show .goldify-otp-modal-content {
  transform: scale(1);
}

.goldify-otp-header {
  text-align: center;
  margin-bottom: 24px;
}

.goldify-otp-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--goldify-primary-color), #b8962f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: white;
}

.goldify-otp-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--goldify-secondary-color);
  margin: 0 0 8px 0;
}

.goldify-otp-description {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.goldify-otp-input-group {
  margin-bottom: 24px;
}

.goldify-otp-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 18px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 4px;
  outline: none;
  transition: all 0.3s ease;
}

.goldify-otp-input:focus {
  border-color: var(--goldify-primary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.goldify-otp-actions {
  display: flex;
  gap: 12px;
}

.goldify-otp-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.goldify-otp-btn-primary {
  background: linear-gradient(135deg, var(--goldify-primary-color), #b8962f);
  color: white;
}

.goldify-otp-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.goldify-otp-btn-secondary {
  background: #f3f4f6;
  color: var(--goldify-secondary-color);
  border: 2px solid #e5e7eb;
}

.goldify-otp-btn-secondary:hover {
  background: #e5e7eb;
}

.goldify-otp-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  .goldify-transfer-wrapper {
    margin: 0 16px;
  }

  .goldify-transfer-header-title {
    font-size: 24px;
  }

  .goldify-transfer-form {
    padding: 24px 20px;
  }

  .goldify-form-group {
    margin-bottom: 20px;
  }

  .goldify-input,
  .goldify-select {
    padding: 14px 16px;
    font-size: 15px;
  }

  .goldify-transfer-btn {
    padding: 16px 20px;
    font-size: 15px;
  }

  .goldify-otp-modal-content {
    padding: 24px;
    margin: 16px;
  }
}

@media (max-width: 480px) {
  .goldify-transfer-wrapper {
    margin: 0 8px;
  }

  .goldify-transfer-header-title {
    font-size: 20px;
  }

  .goldify-transfer-header-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .goldify-transfer-form {
    padding: 20px 16px;
  }

  .goldify-form-label {
    font-size: 13px;
  }

  .goldify-input,
  .goldify-select {
    padding: 12px 14px;
    font-size: 14px;
  }

  .goldify-transfer-btn {
    padding: 14px 18px;
    font-size: 14px;
  }

  .goldify-balance-value {
    font-size: 20px;
  }

  .goldify-otp-modal-content {
    padding: 20px;
    margin: 12px;
  }

  .goldify-otp-title {
    font-size: 18px;
  }

  .goldify-otp-input {
    font-size: 16px;
    letter-spacing: 2px;
  }
}
.swal2-container{
      z-index: 100000 !important;
}