/* ============================================
   Google Fonts - Cairo (Backup)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: #000000;
  min-height: 100vh;
  padding: 20px;
  color: #ffffff;
  line-height: 1.6;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
  max-width: 900px;
  margin: 0 auto;
  background: #000000;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: fadeIn 0.5s ease-out;
  border: 1px solid #333333;
}

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

/* ============================================
   Header
   ============================================ */
.header {
  background: #000000;
  color: #ffffff;
  padding: 28px 32px;
  border-bottom: 2px solid #333333;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.header h1 {
  font-size: 1.6em;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.content {
  padding: 48px 40px;
  min-height: 400px;
}

/* ============================================
   Selection Screen
   ============================================ */
.selection-screen {
  display: none;
  text-align: center;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.selection-screen h2 {
  font-size: 1.5em;
  margin-bottom: 48px;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.service-selector {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.service-card {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  border: 2px solid #333333;
  border-radius: 12px;
  padding: 40px 28px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  background: #000000;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  border-color: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.service-card:active {
  transform: translateY(-2px);
}

.service-card h3 {
  color: #ffffff;
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.service-card:hover h3 {
  color: #ffffff;
}

.service-card p {
  color: #cccccc;
  font-size: 0.95em;
  line-height: 1.5;
}

/* ============================================
   Upload Screen
   ============================================ */
.upload-screen {
  display: none;
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.upload-screen.show {
  display: block;
}

.back-btn {
  margin-bottom: 24px;
  padding: 10px 20px;
  background: #000000;
  border: 1.5px solid #333333;
  border-radius: 8px;
  cursor: pointer;
  color: #ffffff;
  font-size: 0.95em;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-btn:hover {
  background: #1a1a1a;
  border-color: #ffffff;
  transform: translateX(-3px);
}

.back-btn:active {
  transform: translateX(0);
}

.selected-service {
  text-align: center;
  margin-bottom: 36px;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 10px;
  border: 1px solid #333333;
  animation: fadeInScale 0.4s ease-out;
}

.selected-service h3 {
  color: #ffffff;
  font-size: 1.15em;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ============================================
   Upload Section
   ============================================ */
.upload-section {
  text-align: center;
  margin: 36px 0;
}

.upload-area {
  border: 3px dashed #333333;
  border-radius: 12px;
  padding: 56px 40px;
  background: #000000;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.upload-area::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.upload-area:hover::before {
  width: 200px;
  height: 200px;
}

.upload-area:hover {
  background: #1a1a1a;
  border-color: #ffffff;
  transform: scale(1.02);
}

.upload-area.dragover {
  background: #1a1a1a;
  border-color: #ffffff;
  border-style: solid;
  transform: scale(1.03);
}

.upload-area p {
  color: #ffffff;
  margin: 6px 0;
  position: relative;
  z-index: 1;
}

.upload-area p:first-child {
  font-size: 1.15em;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.upload-area p:last-child {
  font-size: 0.9em;
  color: #cccccc;
}

#fileInput {
  display: none;
}

/* ============================================
   Preview Section
   ============================================ */
.preview-section {
  margin: 28px 0;
  text-align: center;
}

#preview {
  max-width: 100%;
  max-height: 350px;
  border-radius: 10px;
  border: 2px solid #333333;
  display: none;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  animation: fadeInScale 0.4s ease-out;
}

/* ============================================
   Buttons
   ============================================ */
.buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 32px 0;
  flex-wrap: wrap;
}

button {
  padding: 14px 36px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  background: #000000;
  color: #ffffff;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

button:hover::before {
  width: 300px;
  height: 300px;
}

button:hover:not(:disabled) {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #000000;
  color: #ffffff;
  border-color: #333333;
}

.btn-secondary:hover:not(:disabled) {
  background: #1a1a1a;
  border-color: #ffffff;
}

/* ============================================
   Status & Loading
   ============================================ */
#status {
  text-align: center;
  padding: 16px;
  color: #cccccc;
  min-height: 50px;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loading {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid #333333;
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   Result Icon
   ============================================ */
.result-icon {
  display: none;
  text-align: center;
  margin: 48px 0;
}

.result-icon.show {
  display: block;
  animation: fadeInScale 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.icon-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
  animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
}

.icon-circle::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.icon-circle.success {
  background: #000000;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.icon-circle.success::after {
  border-color: rgba(255, 255, 255, 0.3);
}

.icon-circle.error {
  background: #000000;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.icon-circle.error::after {
  border-color: rgba(255, 255, 255, 0.3);
}

.result-text {
  margin-top: 24px;
  font-size: 1.3em;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .container {
    border-radius: 8px;
  }

  .header {
    padding: 20px 24px;
  }

  .header h1 {
    font-size: 1.3em;
  }

  .content {
    padding: 32px 24px;
  }

  .service-selector {
    flex-direction: column;
    gap: 16px;
  }

  .service-card {
    min-width: 100%;
    max-width: 100%;
    padding: 32px 24px;
  }

  .selection-screen h2 {
    font-size: 1.2em;
    margin-bottom: 32px;
  }

  .upload-area {
    padding: 40px 24px;
  }

  .buttons {
    flex-direction: column;
    gap: 12px;
  }

  button {
    width: 100%;
    padding: 14px 24px;
  }

  .icon-circle {
    width: 120px;
    height: 120px;
    font-size: 60px;
  }

  .result-text {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.1em;
  }

  .content {
    padding: 24px 16px;
  }

  .upload-area {
    padding: 32px 20px;
  }

  .upload-area p:first-child {
    font-size: 1em;
  }

  .icon-circle {
    width: 100px;
    height: 100px;
    font-size: 50px;
  }
}

/* ============================================
   User Type Selection Screen
   ============================================ */
.user-type-screen {
  display: block !important;
  text-align: center;
  animation: slideIn 0.4s ease-out;
}

.user-type-screen.hidden {
  display: none !important;
}

.user-type-screen h2 {
  font-size: 1.5em;
  margin-bottom: 48px;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.user-type-selector {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.user-type-card {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  border: 2px solid #333333;
  border-radius: 12px;
  padding: 40px 28px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  background: #000000;
  position: relative;
  overflow: hidden;
}

.user-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.user-type-card:hover::before {
  transform: scaleX(1);
}

.user-type-card:hover {
  border-color: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.user-type-card:active {
  transform: translateY(-2px);
}

.user-type-card h3 {
  color: #ffffff;
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.user-type-card p {
  color: #cccccc;
  font-size: 0.95em;
  line-height: 1.5;
}

/* ============================================
   Inbox Screen (for Freelancer)
   ============================================ */
.inbox-screen {
  display: none;
  animation: slideIn 0.4s ease-out;
}

.inbox-screen h2 {
  font-size: 1.5em;
  margin-bottom: 32px;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-align: center;
}

.inbox-container {
  margin-top: 24px;
}

.empty-inbox {
  text-align: center;
  padding: 60px 20px;
  color: #666666;
  font-size: 1.1em;
}

.inbox-message-card {
  background: #111111;
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.inbox-message-card:hover {
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.message-title {
  font-size: 1.1em;
  font-weight: 600;
  color: #ffffff;
}

.message-time {
  font-size: 0.85em;
  color: #666666;
}

.message-content {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.receipt-thumbnail {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333333;
  background: #000000;
}

.receipt-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-details {
  flex: 1;
  min-width: 0;
}

.receipt-amount {
  font-size: 1.2em;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  word-break: break-word;
}

.receipt-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.9em;
}

.receipt-info-label {
  color: #999999;
  font-weight: 500;
  min-width: 120px;
}

.receipt-info-value {
  color: #ffffff;
  font-weight: 600;
}

.receipt-status {
  font-size: 0.9em;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 8px;
}

.status-pending {
  background: #333333;
  color: #ffffff;
}

.status-accepted {
  background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
  border: 1px solid #00c853;
}

.status-rejected {
  background: linear-gradient(135deg, #d50000 0%, #ff1744 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(213, 0, 0, 0.3);
  border: 1px solid #d50000;
}

.message-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn-accept,
.btn-reject {
  flex: 1;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 1.05em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-accept {
  background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
  color: #000000;
  border-color: #00c853;
}

.btn-accept::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.btn-accept:hover::before {
  width: 300px;
  height: 300px;
}

.btn-accept:hover {
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.5);
  border-color: #00e676;
}

.btn-accept:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-reject {
  background: linear-gradient(135deg, #d50000 0%, #ff1744 100%);
  color: #ffffff;
  border-color: #d50000;
}

.btn-reject::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.btn-reject:hover::before {
  width: 300px;
  height: 300px;
}

.btn-reject:hover {
  background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(213, 0, 0, 0.5);
  border-color: #ff1744;
}

.btn-reject:active {
  transform: translateY(-1px) scale(0.98);
}

/* ============================================
   Acceptance Notification (for Client)
   ============================================ */
.acceptance-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #00ff00;
  color: #000000;
  padding: 20px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 255, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  border: 2px solid #000000;
}

.acceptance-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-icon {
  font-size: 2em;
  font-weight: bold;
}

.notification-text {
  font-size: 1.2em;
  font-weight: 600;
}

/* ============================================
   Client Receipts History (for Client)
   ============================================ */
.client-receipts {
  margin-top: 32px;
  background: #0b0b0b;
  border: 1px solid #242424;
  border-radius: 12px;
  padding: 24px;
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.client-receipts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.client-receipts-header h3 {
  font-size: 1.2em;
  margin: 0;
  color: #ffffff;
}

.refresh-btn {
  padding: 8px 18px;
  border: 1px solid #ffffff;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.refresh-btn:hover {
  background: #ffffff;
  color: #000000;
}

.client-receipts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.client-receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  background: #111111;
  transition: border 0.3s ease;
}

.client-receipt-item:hover {
  border-color: #ffffff;
}

.client-receipt-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.client-receipt-date {
  font-size: 0.85em;
  color: #888888;
}

.client-receipt-amount {
  font-size: 1.1em;
  font-weight: 600;
  color: #ffffff;
}

.status-chip {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9em;
  font-weight: 600;
  min-width: 90px;
  text-align: center;
}

.status-chip.status-pending {
  background: #424242;
  color: #ffffff;
}

.status-chip.status-accepted {
  background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
  border: 1px solid #00c853;
}

.status-chip.status-rejected {
  background: linear-gradient(135deg, #d50000 0%, #ff1744 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(213, 0, 0, 0.3);
  border: 1px solid #d50000;
}

.client-receipts-empty {
  text-align: center;
  color: #777777;
  padding: 20px 0;
}

/* ============================================
   Responsive - Inbox & User Type
   ============================================ */
@media (max-width: 768px) {
  .user-type-selector {
    flex-direction: column;
    gap: 16px;
  }

  .user-type-card {
    min-width: 100%;
    max-width: 100%;
    padding: 32px 24px;
  }

  .user-type-screen h2,
  .inbox-screen h2 {
    font-size: 1.2em;
    margin-bottom: 32px;
  }

  .message-content {
    flex-direction: column;
  }

  .receipt-thumbnail {
    width: 100%;
    height: 200px;
  }

  .message-actions {
    flex-direction: column;
  }

  .acceptance-notification {
    width: calc(100% - 32px);
    max-width: none;
  }

  .client-receipts {
    padding: 18px;
  }

  .client-receipt-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .status-chip {
    width: 100%;
    text-align: center;
  }
}

/* ✅ إضافة loading spinner */
.loading-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 5px;
  vertical-align: middle;
  }

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

/* ✅ تحسين الأزرار عند التعطيل */
.btn-accept:disabled,
.btn-reject:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ✅ إضافة animation للرسائل */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   Transfer Fields (New) - متناسق مع التصميم
   ============================================ */
.transfer-fields {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.transfer-field-card {
  background: #000000;
  border: 2px solid #333333;
  border-radius: 8px;
  padding: 20px 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transfer-field-card:hover {
  border-color: #555555;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.transfer-field-card label {
  display: block;
  color: #ffffff;
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.transfer-input {
  width: 100%;
  padding: 14px 18px;
  background: #000000;
  border: 2px solid #333333;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1em;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.transfer-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.transfer-input::placeholder {
  color: #666666;
}

.transfer-type-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.transfer-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #000000;
  border: 2px solid #333333;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.transfer-option:hover {
  border-color: #555555;
  background: #1a1a1a;
}

.transfer-option input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: #ffffff;
}

.transfer-option input[type="radio"]:checked + span {
  color: #ffffff;
  font-weight: 600;
}

.transfer-option:has(input[type="radio"]:checked) {
  border-color: #ffffff;
  background: #1a1a1a;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.transfer-option span {
  color: #cccccc;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

/* Responsive for Transfer Fields */
@media (max-width: 768px) {
  .transfer-fields {
    margin: 24px 0;
    gap: 14px;
  }

  .transfer-field-card {
    padding: 16px 18px;
  }

  .transfer-input {
    padding: 12px 16px;
    font-size: 0.95em;
  }

  .transfer-option {
    padding: 10px 14px;
  }
}

