/* Threxs KYC System - Premium Dragon Theme */
:root {
  --gold: #d4af37;
  --gold-light: #ffd700;
  --dark-bg: #121212;
  --dark-card: #1e1e24;
  --glass: rgba(30, 30, 36, 0.95);
  --red: #8b0000;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --border: rgba(212, 175, 55, 0.2);
}

.threxs-kyc-container {
  font-family: "Cairo", "Tajawal", sans-serif;
  color: var(--text-main);
  background: var(--glass);
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  direction: rtl;
  position: relative;
  overflow: hidden;
}

.threxs-kyc-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
}

/* Header */
.kyc-header {
  text-align: center;
  margin-bottom: 40px;
}

.kyc-header h2 {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.kyc-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Steps Indicator (Optional - simplified for now) */
/* ... can add a step progress bar later if needed ... */

/* Step Content Animation */
.kyc-step {
  display: none;
  animation: slideUp 0.5s ease;
}

.kyc-step.active {
  display: block;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Option Cards (Identity Types) */
.kyc-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.kyc-option input {
  display: none;
}

.kyc-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.kyc-card i {
  font-size: 2.5rem;
  color: var(--text-muted);
  transition: 0.3s;
}

.kyc-card span {
  font-weight: bold;
  font-size: 1rem;
}

.kyc-option input:checked + .kyc-card,
.kyc-card:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.kyc-option input:checked + .kyc-card i {
  color: var(--gold);
}

/* Inputs */
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.threxs-kyc-container input[type="text"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 15px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: 0.3s;
  box-sizing: border-box;
}

.threxs-kyc-container input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Drag & Drop Upload Areas */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.upload-box {
  background: rgba(0, 0, 0, 0.2);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  position: relative;
  transition: 0.3s;
  cursor: pointer;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.upload-box:hover,
.upload-box.dragover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

.upload-box input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.preview-area {
  margin-top: 15px;
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.preview-area i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.1);
}

.preview-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeIn 0.5s;
}

.upload-label {
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--text-main);
  z-index: 5;
  pointer-events: none;
}

/* Selfie Box */
.selfie-box {
  max-width: 400px;
  margin: 0 auto;
}

.selfie-box .preview-area {
  height: 250px;
  border-radius: 20px;
  /* Rounded more for selfie */
}

/* Buttons */
.kyc-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  align-items: center;
}

.btn-dragon {
  background: linear-gradient(45deg, var(--red), #500000);
  color: white;
  border: none;
  padding: 12px 35px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.btn-dragon:hover,
.btn-dragon:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 0, 0, 0.5);
  background: linear-gradient(45deg, #a00000, #600000);
}

.btn-dragon:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(1);
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
}

.btn-text:hover {
  color: #fff;
}

/* Alerts */
.threxs-alert {
  padding: 15px;
  background: rgba(139, 0, 0, 0.2);
  border: 1px solid var(--red);
  color: #ffcccc;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.success-msg {
  padding: 20px;
  background: rgba(0, 128, 0, 0.2);
  border: 1px solid #00aa00;
  color: #ccffcc;
  border-radius: 8px;
  text-align: center;
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .kyc-options {
    grid-template-columns: 1fr;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .threxs-kyc-container {
    padding: 20px;
    margin: 20px 10px;
  }
}

/* Personal Info Steps */
.step-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.threxs-kyc-container input[type="date"],
.threxs-kyc-container select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.threxs-kyc-container select option {
  background: var(--dark-card);
  color: #fff;
}

.threxs-kyc-container .error {
  border-color: var(--red);
  box-shadow: 0 0 5px rgba(139, 0, 0, 0.5);
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0);
  }
}

.shake {
  animation: shake 0.3s ease-in-out;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* --- KYC Notification Bar --- */
.threxs-kyc-notice-bar {
  background: linear-gradient(90deg, #1a1a1a, #2c0000);
  border-bottom: 2px solid var(--gold);
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  direction: rtl;
}

.threxs-notice-content {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}

.threxs-notice-content .dashicons {
  font-size: 2rem;
  color: var(--gold);
  width: auto;
  height: auto;
}

.threxs-notice-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.button-primary-glow {
  background: linear-gradient(45deg, var(--gold), #b8860b);
  color: #000;
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
  cursor: pointer;
}

.button-primary-glow:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  color: #000;
}

.button-text {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ddd;
  padding: 8px 15px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.button-text:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* --- Benefits Modal --- */
.threxs-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  direction: rtl;
}

.threxs-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.threxs-modal-content.benefits-content {
  background: #1e1e24;
  width: 90%;
  max-width: 500px;
  border-radius: 15px;
  padding: 0;
  position: relative;
  z-index: 2;
  border: 1px solid var(--gold);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
  animation: slideUp 0.4s ease;
}

.modal-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 15px 15px 0 0;
}

.modal-header h2 {
  margin: 0;
  color: var(--gold);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 30px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.benefits-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #eee;
  display: flex;
  align-items: center;
  gap: 15px;
}

.benefits-list .icon {
  font-size: 1.5rem;
}

.full-width {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .threxs-kyc-notice-bar {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .threxs-notice-content {
    flex-direction: column;
    gap: 10px;
  }
}
