/* ========================
   UPLINK SECTION (MOBILE FIRST 440px)
======================== */
.rt-uplink-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  /* align-items: ; */
  justify-content: center;
  padding: 100px 15px 40px; 
  background-color: var(--emerald-bg);
  z-index: 2;
}

.rt-uplink-container {
  width: 100%;
  max-width: 500px; /* Caps out for tablets/desktops */
  position: relative;
  z-index: 1;
}

/* Glassmorphic Panel */
.rt-cyber-panel {
  background: rgba(2, 44, 34, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 30px 20px; /* Snug on 440px */
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 0 20px rgba(16,185,129,0.05);
}

.rt-panel-header {
  text-align: center;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding-bottom: 20px;
}

.rt-panel-header h2 {
  font-size: 24px;
  font-weight: 300;
  color: #fff;
  margin: 8px 0;
  text-shadow: 0 0 10px rgba(16,185,129,0.4);
}

.rt-panel-header p {
  font-size: 12px;
  color: #a7f3d0;
  margin: 0;
}

/* High-Tech Success Message */
.rt-sys-notify {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-primary);
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 25px;
  font-family: monospace;
  font-size: 11px;
  text-align: center;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
  animation: pulseNotify 2s infinite alternate;
}

.rt-notify-icon {
  color: var(--emerald-primary);
  font-weight: bold;
  margin-right: 5px;
}

@keyframes pulseNotify {
  from { box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
  to { box-shadow: 0 0 20px rgba(16, 185, 129, 0.5); }
}

/* ========================
   CYBER FORM ELEMENTS
======================== */
.rt-cyber-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rt-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rt-cyber-label {
  font-size: 9px;
  font-family: monospace;
  color: var(--emerald-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Universal Input Styling (Text, Select, Textarea) */
.rt-cyber-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 2px solid rgba(16, 185, 129, 0.5);
  color: #fff;
  padding: 12px 14px;
  font-size: 13px; /* Good legibility for 440px */
  border-radius: 6px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.rt-cyber-input:focus {
  border-color: var(--emerald-primary);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.rt-cyber-input::placeholder { color: rgba(167, 243, 208, 0.4); }

/* Specific fixes for Textarea and Select */
.rt-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.rt-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
}
.rt-select option { background: var(--emerald-bg); color: #fff; }

/* Drag & Drop Zone */
.rt-drop-zone {
  position: relative;
  width: 100%;
  height: 120px; /* Slightly shorter to save vertical space on mobile */
  border: 2px dashed rgba(16, 185, 129, 0.4);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.rt-drop-content { text-align: center; color: var(--emerald-light); transition: opacity 0.3s; pointer-events: none; }
.rt-drop-icon { margin-bottom: 6px; color: var(--emerald-primary); }
.rt-drop-text { display: block; font-size: 10px; font-family: monospace; font-weight: bold; letter-spacing: 1px; }

.rt-hidden-input { display: none; }

.rt-preview-container { position: absolute; inset: 0; z-index: 5; background: #000; }
.rt-preview-container img { width: 100%; height: 100%; object-fit: contain; opacity: 0.8; }
.rt-clear-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.7); border: 1px solid var(--emerald-primary);
  color: var(--emerald-light); width: 26px; height: 26px; border-radius: 50%;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
}

/* Action Buttons Grid */
.rt-action-group {
  display: flex;
  flex-direction: column; /* Stack vertically on 440px */
  gap: 12px;
  margin-top: 10px;
}

.rt-submit-btn {
  padding: 14px;
  font-size: 12px;
}

.rt-cyber-btn-outline {
  text-align: center;
  padding: 12px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  font-size: 10px;
  font-family: monospace;
  text-decoration: none;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s;
}

.rt-cyber-btn-outline:hover {
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* ========================
   DESKTOP SCALE-UP (768px+)
======================== */
@media (min-width: 768px) {
  .rt-cyber-panel { padding: 40px 50px; border-radius: 20px; }
  .rt-panel-header h2 { font-size: 32px; }
  .rt-cyber-input { font-size: 15px; padding: 14px 16px; }
  .rt-drop-zone { height: 160px; }
  .rt-action-group { flex-direction: row; } /* Buttons side-by-side on desktop */
  .rt-submit-btn { flex: 2; }
  .rt-cyber-btn-outline { flex: 1; display: flex; align-items: center; justify-content: center; }
}