* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Orbitron", monospace;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  color: #ffffff;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 191, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
  text-align: center;
}

.title {
  font-family: "Saira Stencil One", cursive;
  font-size: clamp(4rem, 8vw, 6rem);
  background: linear-gradient(45deg, #00bfff, #0080ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 191, 255, 0.5);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  min-width: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0
    rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  height: fit-content;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 123, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.box-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 191, 255, 0.3);
}

.icon {
  color: #00bfff;
  font-size: 1.5rem;
}

.box-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-group label {
  font-size: 0.85rem;
  color: #00bfff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-group input,
.input-group textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.6rem;
  color: #ffffff;
  font-family: "M PLUS 1 Code", monospace;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  resize: vertical;
}

.input-group textarea {
  height: 120px;
  min-height: 120px;
  max-height: 120px;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #00bfff;
  box-shadow: 0 0 0 2px rgba(0, 191, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.custom-select {
  position: relative;
}

.select-display {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.6rem;
  color: #ffffff;
  font-family: "M PLUS 1 Code", monospace;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.select-display:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.select-display.active {
  border-color: #00bfff;
  box-shadow: 0 0 0 2px rgba(0, 191, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.select-arrow {
  transition: transform 0.3s ease;
}

.select-display.active .select-arrow {
  transform: rotate(180deg);
}

.select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin-top: 0.2rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.select-options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-option {
  padding: 0.6rem;
  color: #ffffff;
  font-family: "M PLUS 1 Code", monospace;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.select-option:hover {
  background: rgba(0, 191, 255, 0.1);
}

.select-option:first-child {
  border-radius: 8px 8px 0 0;
}

.select-option:last-child {
  border-radius: 0 0 8px 8px;
}

.toggle-container {
  display: flex;
  align-items: center;
}

.toggle-input {
  display: none;
}

.toggle-label {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-input:checked + .toggle-label {
  background: #00bfff;
}

.toggle-input:checked + .toggle-label .toggle-slider {
  transform: translateX(26px);
}

.controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-family: "Orbitron", monospace;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  height: 44px;
  min-width: fit-content;
}

.btn-start {
  background: linear-gradient(45deg, #00ff88, #00cc6a);
  color: #ffffff;
}

.btn-start:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.btn-stop {
  background: linear-gradient(45deg, #ff4757, #ff3742);
  color: #ffffff;
}

.btn-stop:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

.btn-copy {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: #ffffff;
}

.btn-copy:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.log-container,
.results-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.msg-patterns-container {
  margin-bottom: 1.5rem;
}

.log-header,
.results-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: rgba(0, 191, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #00bfff;
}

.log-box,
.results-box {
  height: 160px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.6rem;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  line-height: 1.4;
}

.log-entry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  padding: 0.3rem;
  border-radius: 4px;
  animation: fadeIn 0.3s ease;
  min-height: 1.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.log-entry:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.log-entry.expanded {
  background-color: rgba(255, 255, 255, 0.1);
}

.msg-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  animation: fadeIn 0.3s ease;
  position: relative;
}

.msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.msg-number {
  background: rgba(0, 191, 255, 0.2);
  color: #00bfff;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.msg-controls {
  display: flex;
  gap: 0.3rem;
}

.msg-control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 4px;
  padding: 0.2rem;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.msg-control-btn .material-icons {
  font-size: 16px;
}

.msg-control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.msg-control-btn.delete:hover {
  background: rgba(255, 71, 87, 0.3);
  color: #ff4757;
}

.msg-content {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.5rem;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: #ffffff;
  word-break: break-all;
  white-space: pre-wrap;
  line-height: 1.4;
}

.msg-content .account-detail {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.msg-content .account-detail-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.65rem;
}

.msg-content .account-detail-value {
  color: #ffffff;
  word-break: break-all;
  font-family: "Courier New", monospace;
}

.account-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  animation: fadeIn 0.3s ease;
}

.account-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(0, 191, 255, 0.3);
}

.account-basic {
  flex: 1;
}

.account-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.account-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.7rem;
  margin-bottom: 0.8rem;
}

.account-detail {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.account-detail-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.65rem;
}

.account-detail-value {
  color: #ffffff;
  word-break: break-all;
}

.account-token {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.5rem;
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.8);
  word-break: break-all;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.account-token:hover {
  background: rgba(0, 0, 0, 0.5);
}

.account-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.account-id {
  background: rgba(0, 191, 255, 0.2);
  color: #00bfff;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: fit-content;
}

.account-controls {
  display: flex;
  gap: 0.3rem;
}

.account-control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 4px;
  padding: 0.2rem;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.account-control-btn .material-icons {
  font-size: 16px;
}

.account-control-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.account-control-btn.delete:hover {
  background: rgba(255, 71, 87, 0.3);
  color: #ff4757;
}

.account-control-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.log-entry.info {
  background: rgba(0, 191, 255, 0.1);
  border-left: 3px solid #00bfff;
}

.log-entry.success {
  background: rgba(0, 255, 136, 0.1);
  border-left: 3px solid #00ff88;
}

.log-entry.error {
  background: rgba(255, 71, 87, 0.1);
  border-left: 3px solid #ff4757;
}

.log-entry.warning {
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid #ffc107;
}

.log-time {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.65rem;
  min-width: 60px;
  flex-shrink: 0;
}

.log-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.log-msg {
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.log-box::-webkit-scrollbar,
.results-box::-webkit-scrollbar {
  width: 6px;
}

.log-box::-webkit-scrollbar-track,
.results-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.log-box::-webkit-scrollbar-thumb,
.results-box::-webkit-scrollbar-thumb {
  background: rgba(0, 191, 255, 0.5);
  border-radius: 3px;
}

.log-box::-webkit-scrollbar-thumb:hover,
.results-box::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 191, 255, 0.7);
}

.file-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-file {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  height: auto;
  justify-content: center;
  width: fit-content;
}

.btn-file:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.file-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  margin-top: 0.5rem;
}

.file-name {
  color: #ffffff;
  font-family: "M PLUS 1 Code", monospace;
  font-size: 0.8rem;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-trash {
  background: rgba(255, 71, 87, 0.2);
  border: none;
  border-radius: 4px;
  padding: 0.4rem;
  color: #ff4757;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.btn-trash:hover {
  background: rgba(255, 71, 87, 0.3);
  transform: scale(1.05);
}

.btn-trash .material-icons {
  font-size: 1rem;
}

@media (max-width: 480px) {
  .title {
    font-size: 3rem;
  }

  .box {
    padding: 1rem;
  }

  .log-box,
  .results-box {
    height: 140px;
  }
}
