/* refund.css - Gaming Family Evrima Dino & BG Refund Portal */

.rf-container {
  max-width: 980px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero Section */
.rf-hero {
  position: relative;
  border-radius: 16px;
  padding: 32px 28px;
  background: linear-gradient(135deg, rgba(16, 24, 39, 0.95), rgba(9, 14, 23, 0.98));
  border: 1px solid rgba(0, 240, 255, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.rf-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 70%);
  pointer-events: none;
}
.rf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.rf-hero-h {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.rf-hero-desc {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
  max-width: 680px;
}

/* Status Banners */
.rf-banner {
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  flex-wrap: wrap;
}
.rf-banner-warn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fef3c7;
}
.rf-banner-warn strong {
  color: #fbbf24;
}
.rf-banner-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fee2e2;
}
.rf-banner-danger strong {
  color: #f87171;
}
.rf-banner-info {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #e0f2fe;
}
.rf-banner-player {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-radius: 12px;
}
.rf-player-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rf-player-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #00f0ff;
  object-fit: cover;
  background: #1e293b;
}
.rf-player-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rf-player-name {
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}
.rf-player-sub {
  font-size: 12px;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
}
.rf-player-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.rf-stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #cbd5e1;
}
.rf-stat-pill strong {
  color: #00f0ff;
}

/* Card Sections */
.rf-card {
  background: rgba(15, 23, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.rf-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rf-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rf-card-badge {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

/* Dino Item Builder */
.rf-dino-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rf-dino-item {
  background: rgba(10, 16, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rf-dino-item:hover {
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.rf-dino-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rf-dino-num {
  font-size: 14px;
  font-weight: 700;
  color: #00f0ff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rf-btn-del-dino {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rf-btn-del-dino:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

/* Dino Row Form Controls */
.rf-dino-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 768px) {
  .rf-dino-grid {
    grid-template-columns: 1fr;
  }
}

/* Species Picker With Preview */
.rf-species-preview-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rf-species-img-wrap {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  background: #080d14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rf-species-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.rf-species-img:hover {
  transform: scale(1.05);
}
.rf-species-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #0d1522;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}
.rf-species-select:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

/* Dino Controls Area */
.rf-dino-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rf-row-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Gender Toggle Buttons */
.rf-toggle-group {
  display: inline-flex;
  background: #0d1522;
  border-radius: 8px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rf-toggle-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rf-toggle-btn.is-active {
  background: rgba(0, 240, 255, 0.18);
  color: #00f0ff;
  font-weight: 700;
}

/* Prime Checkbox Toggle */
.rf-prime-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  background: #0d1522;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.15s ease;
}
.rf-prime-label:hover {
  border-color: #fbbf24;
}
.rf-prime-checkbox {
  accent-color: #fbbf24;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.rf-prime-badge-gold {
  color: #fbbf24;
  font-weight: 700;
}

/* Growth Slider */
.rf-growth-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rf-growth-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.rf-growth-label {
  color: #94a3b8;
  font-weight: 500;
}
.rf-growth-val {
  font-family: var(--font-mono, monospace);
  color: #00f0ff;
  font-weight: 700;
  font-size: 14px;
}
.rf-growth-stage {
  color: #a855f7;
  font-weight: 600;
  font-size: 12px;
  margin-left: 6px;
}
.rf-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  cursor: pointer;
}
.rf-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  cursor: pointer;
  border: 2px solid #090e15;
}
.rf-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  cursor: pointer;
  border: 2px solid #090e15;
}

/* Mutations Selector */
.rf-mutations-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rf-mutations-label {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}
.rf-mutations-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rf-mut-pill {
  padding: 5px 11px;
  border-radius: 6px;
  background: #0d1522;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.rf-mut-pill:hover {
  border-color: rgba(0, 240, 255, 0.4);
  color: #fff;
}
.rf-mut-pill.is-selected {
  background: rgba(168, 85, 247, 0.18);
  border-color: #a855f7;
  color: #e9d5ff;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.25);
}

/* Add Dino Action Button */
.rf-btn-add-dino {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px dashed rgba(0, 240, 255, 0.35);
  color: #00f0ff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.rf-btn-add-dino:hover:not(:disabled) {
  background: rgba(0, 240, 255, 0.12);
  border-color: #00f0ff;
}
.rf-btn-add-dino:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: solid;
}

/* Old Web BG Refund Section */
.rf-bg-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  background: #0d1522;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 4px 14px;
}
.rf-bg-input-wrap:focus-within {
  border-color: #00f0ff;
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}
.rf-bg-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  padding: 8px 0;
}
.rf-bg-badge {
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.rf-quick-amounts {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.rf-btn-quick {
  background: #0d1522;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rf-btn-quick:hover {
  border-color: #00f0ff;
  color: #00f0ff;
}

/* Reason & Notes */
.rf-textarea {
  width: 100%;
  min-height: 90px;
  border-radius: 10px;
  background: #0d1522;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}
.rf-textarea:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

/* Evidence Uploader */
.rf-dropzone {
  border: 2px dashed rgba(0, 240, 255, 0.28);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  background: rgba(13, 21, 34, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.rf-dropzone:hover, .rf-dropzone.is-dragover {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.05);
}
.rf-dropzone-icon {
  font-size: 32px;
  margin-bottom: 8px;
  color: #00f0ff;
}
.rf-dropzone-text {
  font-size: 14px;
  color: #e2e8f0;
  margin-bottom: 4px;
}
.rf-dropzone-hint {
  font-size: 12px;
  color: #64748b;
}

/* Uploaded Images Grid */
.rf-uploads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.rf-upload-thumb-card {
  position: relative;
  height: 100px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: #090e17;
}
.rf-upload-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.rf-upload-del-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

/* Submit Action Bar */
.rf-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0 0;
}
.rf-btn-submit {
  background: linear-gradient(135deg, #00f0ff, #00a6fb);
  color: #06090e;
  border: none;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.35);
  transition: all 0.2s ease;
}
.rf-btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.5);
}
.rf-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Player Requests History */
.rf-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 10px;
}
.rf-history-table th {
  text-align: left;
  padding: 12px;
  font-size: 12px;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rf-history-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
}
.rf-history-card {
  background: rgba(10, 16, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rf-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.rf-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rf-badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.rf-badge-approved {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.rf-badge-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.rf-rejection-callout {
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.12);
  border-left: 3px solid #ef4444;
  color: #fca5a5;
  font-size: 13px;
  line-height: 1.5;
}
.rf-approval-callout {
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(34, 197, 94, 0.12);
  border-left: 3px solid #22c55e;
  color: #86efac;
  font-size: 13px;
  line-height: 1.5;
}

/* Lightbox Modal */
.rf-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.rf-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.rf-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
