.glass-card{
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(124, 92, 255, 0.25) !important;
  border-radius: 20px !important;
  padding: 28px !important;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

.ff-orders-wrapper {
  background: rgba(15, 23, 42, 0.78) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: #e5e7eb !important;
}

.ff-user-header{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}

.ff-user-title {
    color: #f8fafc !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

.ff-user-search{
  margin-left:auto;
}

.ff-user-search input {
    background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #e5e7eb !important;
}

.ff-user-search input::placeholder {
  color: rgba(203,213,225,0.55) !important;
}

/*
.ff-user-search input{
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 10px 14px;
  outline:none;
}
*/

.ff-user-search input {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #e5e7eb !important;
}

.custom-user-table{
  width:100%;
  border-collapse: collapse;
}

.custom-user-table thead th{
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(203,213,225,0.6);
  padding: 12px 14px;
}

.custom-user-table tbody tr{
  background: rgba(255,255,255,0.045);
  border-radius: 12px;
}

.custom-user-table tbody td{
  padding:16px 18px;
  color: #e5e7eb;
}

.custom-user-table td strong {
    color: #f8fafc !important;
}

.custom-user-table td:first-child{ border-radius: 12px 0 0 12px; }
.custom-user-table td:last-child{ border-radius: 0 12px 12px 0; }

.ff-filter-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 15px; 
    margin-bottom: 25px;
    width: 100%;
}

.ff-filter-btn {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 50px;
  padding: 8px 16px;
  color: var(--text-2);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap; 
}

.ff-filter-btn.active, .ff-filter-btn:hover {
  background: linear-gradient(135deg, #7c5cff, #5b3fff) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.topup-btn{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.08);
  color: #e5e7eb;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topup-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.ff-balance-card{
  display:inline-block;
  padding:12px 16px;
  border-radius:14px;
  background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
}

.ff-balance-notice{
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.ff-balance-notice--danger{
  border-color: rgba(220,38,38,0.18);
  background: rgba(254,242,242,0.92);
  color: #991b1b;
}

.ff-table-wrap {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}

.ff-topup-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.ff-topup-row td{
  padding-top: 12px !important;
  background: transparent !important;
}

.ff-topup-panel {
  width: 100%;
  max-width: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);

  box-sizing: border-box;
  border-radius: 16px;
  padding: 18px 20px;
}

.ff-topup-panel__title{
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #e5e7eb;
}

.ff-topup-panel__controls{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ff-topup-amount{
  min-width: 220px;
  max-width: 260px;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: #f8fafc;
  outline: none;
  box-shadow: none;
}

.ff-topup-amount::placeholder {
    color: rgba(203, 213, 225, 0.55);
}

.ff-topup-amount:focus {
    border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.15);
}

/* make cancel clearly secondary */
.ff-cancel-topup {
  background: rgba(255,255,255,0.08) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: none !important;
}

.ff-cancel-topup:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}


/* message */
.ff-topup-message {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
}

/* mobile */
@media (max-width: 767px) {
  .ff-topup-panel__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .ff-topup-amount {
    width: 100%;
    max-width: 100%;
  }

  .ff-submit-topup,
  .ff-cancel-topup {
    width: 100%;
  }
}

.ff-btn-primary,
.topup-btn--primary,
.ff-submit-topup {
  background: linear-gradient(135deg, #7C5CFF, #5B3FFF) !important;
  color: #fff !important;
  border: none !important;
  box-shadow:
    0 10px 24px rgba(124, 92, 255, 0.28);
}

.topup-btn--primary:hover,
.ff-submit-topup:hover {
    transform: translateY(-1px);
}

.ff-topup-message{
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
}

.ff-topup-message.is-error{
  color: #b42318;
}

.ff-topup-message.is-success{
  color: #027a48;
}

@media (max-width: 700px){
  .ff-topup-panel__controls{
    flex-direction: column;
    align-items: stretch;
  }

  .ff-topup-amount{
    width: 100%;
    max-width: 100%;
  }
}

.ff-purchase-guard{
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.ff-purchase-guard__status{
  font-size: 14px;
  color: #e2e8f0;
  font-weight: 500;
}

.ff-purchase-guard__status.is-ok{
  color: #027a48;
}

.ff-purchase-guard__status.is-error{
  color: #b42318;
}

.ff-purchase-warning{
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(254, 242, 242, 0.92);
  border: 1px solid rgba(220,38,38,0.18);
  color: #991b1b;
  font-size: 13px;
  font-weight: 500;
}

.ff-submit-disabled{
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.ff-admin-wallet-card{
  margin-bottom: 20px;
}

.ff-admin-wallet-card__header{
  margin-bottom: 18px;
}

.ff-admin-wallet-card__title{
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
  color: #222;
}

.ff-admin-wallet-card__subtitle{
  margin: 0;
  color: #666;
  font-size: 14px;
}

.ff-admin-wallet-stats{
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ff-admin-wallet-stat{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ff-admin-wallet-stat__label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #777;
}

.ff-admin-wallet-stat__value{
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

.ff-admin-wallet-form{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ff-admin-wallet-input{
  min-width: 220px;
  max-width: 260px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.84);
  outline: none;
}

.ff-admin-wallet-message{
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
}

.ff-admin-wallet-message.is-error{
  color: #b42318;
}

.ff-admin-wallet-message.is-success{
  color: #027a48;
}

@media (max-width: 700px){
  .ff-admin-wallet-stats{
    grid-template-columns: 1fr;
  }

  .ff-admin-wallet-form{
    flex-direction: column;
    align-items: stretch;
  }

  .ff-admin-wallet-input{
    width: 100%;
    max-width: 100%;
  }
}

/*
.status-INACTIVE{
  background: #fce8e6;
  color: #d93025;
}
*/

.ff-vouchers-page{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.ff-vouchers-page .ff-table-wrap {
    background: transparent;
    border: none;
    padding: 0;
}

.ff-voucher-section {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(124,92,255,0.15);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.01)
  );
}

.ff-voucher-section:hover {
  border-color: rgba(124,92,255,0.25);
}

.ff-voucher-section + .ff-voucher-section {
  margin-top: 20px;
}

.ff-section-title{
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
}

.ff-voucher-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap:16px;
  align-items:end;
}

.ff-voucher-grid--lookup{
  grid-template-columns: 1fr auto;
}

.ff-field--button {
  display: flex;
  align-items: end;
}

.ff-field--button .ff-btn {
  width: 100%;
}

.ff-field{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ff-field label{
  font-size:13px;
  font-weight:600;
  color: rgba(203, 213, 225, 0.7);
}

.ff-input{
  width:100%;
  height:44px;
  border-radius: 12px;
  padding:0 18px;
  font-size:15px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.ff-input:focus {
  border-color: rgba(124,92,255,0.6);
  box-shadow: 0 0 0 2px rgba(124,92,255,0.12);
}

.ff-btn{
  height: 50px;
  min-width: 150px;
  border: none;
  border-radius: 18px;
  padding: 0 24px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ff-btn-primary {
  background: linear-gradient(135deg, #7c5cff, #5b3df5);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ff-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.25);
}

.ff-btn-primary:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ff-inline-message{
  margin-top:16px;
  font-size:14px;
  font-weight:500;
}

.ff-inline-message.is-error{
  color:#b42318;
}

.ff-inline-message.is-success{
  color:#027a48;
}

.ff-empty-state{
  text-align:center;
  color:#667085;
  padding:28px 12px !important;
}

.status-PENDING_FUNDING{
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
}

.status-PENDING_FUNDING::before {
    background: #eab308;
}

.status-ACTIVE{
  background: rgba(34,197,94,0.12);
  color: #22c55e;
}

.status-ACTIVE::before {
    background: #22c55e;
}

.status-REDEEMING{
  background:#e8f1ff;
  color:#175cd3;
}

.status-REDEEMED{
  background:#eef2ff;
  color:#5b21b6;
}

.status-EXPIRED{
  background:#f3f4f6;
  color:#4b5563;
}

.status-CANCELLED{
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.status-CANCELLED::before {
    background: #ef4444;
}

#ffVouchersTable tbody tr,
#ff-vouchers-table-body tr {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
}

#ffVouchersTable td,
#ff-vouchers-table-body td {
  color: #e5e7eb;
  padding: 16px 18px;
}

#ffVouchersTable td strong,
#ff-vouchers-table-body td strong {
  color: #f8fafc;
}

@media (max-width: 900px){
  .ff-voucher-grid,
  .ff-voucher-grid--lookup{
    grid-template-columns: 1fr;
  }
}


.ff-vouchers-page .ff-btn,
.ff-vouchers-page button.ff-btn,
.ff-voucher-section .ff-btn,
.ff-voucher-section button.ff-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 18px;
  height: 48px;
  min-width: 160px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: none;
}

/*
.ff-vouchers-page .ff-btn-primary,
.ff-vouchers-page button.ff-btn-primary {
  background: #f5d600;
  color: #111;
}
*/

.ff-vouchers-page .ff-btn-primary:hover,
.ff-vouchers-page button.ff-btn-primary:hover,
.ff-voucher-section .ff-btn-primary:hover,
.ff-voucher-section button.ff-btn-primary:hover {
  filter: brightness(0.98);
}

.ff-vouchers-page .ff-btn-primary:disabled,
.ff-vouchers-page button.ff-btn-primary:disabled,
.ff-voucher-section .ff-btn-primary:disabled,
.ff-voucher-section button.ff-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#forminator-module-3362 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ff-voucher-code-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ff-code {
  font-family: monospace;
  letter-spacing: 1px;
  font-size: 14px;
  color: #e2e8f0;
}

.ff-copy-icon {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.ff-copy-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.ff-copy-icon.copied {
  color: #22c55e; /* green success */
  transform: scale(1.15);
}
/* ===== ORDERS PANEL OVERRIDE ===== */

.ff-orders-wrapper {
  background: rgba(15, 23, 42, 0.78) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: #e5e7eb !important;
}

.ff-user-title {
  color: #f8fafc !important;
  font-size: 24px !important;
  font-weight: 700 !important;
}

.ff-user-search input {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #e5e7eb !important;
}

.ff-user-search input::placeholder {
  color: rgba(203,213,225,0.55) !important;
}

.custom-user-table thead th {
  color: rgba(203,213,225,0.55) !important;
}

.custom-user-table tbody tr {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 16px 18px;
}

.custom-user-table td {
  color: #e5e7eb !important;
}

.custom-user-table td strong {
  color: #f8fafc !important;
}

/* ===== MOBILE POLISH ===== */
@media (max-width: 767px) {

  .glass-card,
  .ff-orders-wrapper,
  .ff-voucher-section,
  .ff-topup-panel,
  .ff-table-wrap {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .ff-user-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }

  .ff-user-title {
    font-size: 20px !important;
    line-height: 1.2;
  }

  .ff-user-search {
    margin-left: 0;
    width: 100%;
  }

  .ff-user-search input,
  .ff-input,
  .ff-topup-amount,
  .ff-admin-wallet-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .ff-filter-bar {
    gap: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }

  .ff-filter-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 13px;
  }

  .custom-user-table {
    display: block;
    width: 100%;
  }

  .custom-user-table thead {
    display: none;
  }

  .custom-user-table tbody,
  .custom-user-table tr,
  .custom-user-table td {
    display: block;
    width: 100%;
  }

  .custom-user-table tbody tr,
  #ffVouchersTable tbody tr,
  #ff-vouchers-table-body tr {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
  }

  .custom-user-table td,
  #ffVouchersTable td,
  #ff-vouchers-table-body td {
    padding: 8px 0 !important;
    border: none !important;
  }

  .custom-user-table td:first-child,
  .custom-user-table td:last-child {
    border-radius: 0;
  }

  .ff-topup-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ff-topup-panel__controls,
  .ff-admin-wallet-form,
  .ff-voucher-grid,
  .ff-voucher-grid--lookup {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ff-btn,
  .ff-btn-primary,
  .topup-btn,
  .ff-submit-topup,
  .ff-cancel-topup {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px;
    font-size: 14px;
    border-radius: 12px;
  }

  .ff-balance-card,
  .ff-purchase-guard,
  .ff-balance-notice,
  .ff-purchase-warning {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .ff-admin-wallet-stats {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .ff-admin-wallet-stat {
    padding: 12px 14px;
  }

  .ff-section-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .ff-field label {
    font-size: 12px;
  }

  .ff-code {
    font-size: 13px;
    word-break: break-all;
  }

  .ff-voucher-code-wrap {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}