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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f0f;
  color: #ffffff;
  padding: 20px;
  min-height: 100vh;
}

.container {
  max-width: 450px;
  margin: 0 auto;
}

.header {
  margin-bottom: 20px;
}

h1 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 15px;
  color: #fff;
}

.stats-row {
  display: flex;
  justify-content: center;
}

.stat-item {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 15px 25px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #4caf50;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 4px;
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-btn.active {
  background: #1d9bf0;
  font-weight: 600;
}

.tab-btn:hover:not(.active) {
  background: #2a2a2a;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #1d9bf0;
}

textarea {
  min-height: 70px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: #1d9bf0;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}

.submit-btn:hover {
  background: #1a8cd8;
}

.submit-btn:disabled {
  background: #333;
  cursor: not-allowed;
}

.btn-loading {
  display: none;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-loading {
  display: inline;
}

.status {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  min-height: 20px;
  padding: 8px;
  border-radius: 6px;
}

.status.success {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.status.error {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.add-account-btn {
  width: 100%;
  padding: 16px;
  background: #f44336;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s;
}

.add-account-btn:hover {
  background: #d32f2f;
}

.activity-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.activity-section h3 {
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.activity-time {
  color: #666;
}

.activity-status {
  font-weight: 600;
}

.activity-status.success {
  color: #4caf50;
}

.activity-status.error {
  color: #f44336;
}

.activity-status.pending {
  color: #888;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlide 0.3s ease;
}

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

.modal h2 {
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.cancel-btn, .save-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.cancel-btn {
  background: #333;
  color: #fff;
}

.cancel-btn:hover {
  background: #444;
}

.save-btn {
  background: #1d9bf0;
  color: #fff;
}

.save-btn:hover {
  background: #1a8cd8;
}

.add-email-btn {
  background: #1a1a1a;
  border: 1px dashed #333;
  color: #888;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  width: auto;
  display: inline-block;
}

.add-email-btn:hover {
  background: #2a2a2a;
  color: #fff;
}

.email-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2a2a2a;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 8px;
}

.email-tag input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 4px 8px;
}

.email-tag input::placeholder {
  color: #666;
}

.remove-email {
  background: none;
  border: none;
  color: #f44336;
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
}
