* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #09090b;
  color: #e2e8f0;
  padding: 30px;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 15, 18, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(229, 193, 88, 0.12);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 193, 88, 0.3);
}

.header {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff7ed, #e5c158, #b89327);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  filter: drop-shadow(0 4px 15px rgba(229, 193, 88, 0.25));
  animation: pulseHeader 4s infinite alternate;
}

.bulk {
  font-weight: 500;
  font-size: 15px;
  color: #a3a3a3;
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: rgba(20, 20, 25, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 193, 88, 0.06);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(229, 193, 88, 0.35), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 193, 88, 0.22);
  box-shadow: 0 24px 60px rgba(229, 193, 88, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card:hover::before {
  transform: translateX(100%);
}

.card-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 20px;
  color: #f3f4f6;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid #e5c158;
  padding-left: 10px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

label {
  font-size: 11px;
  font-weight: 600;
  color: #a3a3a3;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

input, textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(14, 14, 17, 0.7);
  border: 1px solid rgba(229, 193, 88, 0.08);
  border-radius: 12px;
  color: #f3f4f6;
  outline: none;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Autofill Overrides */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-text-fill-color: #f3f4f6 !important;
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: inset 0 0 20px 20px #0e0e12 !important;
}

input::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

input:focus, textarea:focus {
  border-color: #e5c158;
  box-shadow: 0 0 0 3px rgba(229, 193, 88, 0.18), inset 0 2px 4px rgba(0, 0, 0, 0.4);
  background: rgba(14, 14, 17, 0.9);
}

textarea {
  height: 150px;
  resize: vertical;
}

.recipients textarea {
  height: 120px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.stat {
  background: rgba(14, 14, 17, 0.45);
  border: 1px solid rgba(229, 193, 88, 0.04);
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat:hover {
  background: rgba(20, 20, 25, 0.75);
  border-color: rgba(229, 193, 88, 0.15);
  transform: scale(1.03);
}

.stat h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 6px;
  filter: drop-shadow(0 2px 8px currentColor);
}

.progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #e5c158, #c78c77, #d97706);
  box-shadow: 0 0 10px rgba(229, 193, 88, 0.5);
  border-radius: 10px;
}

.success {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: #34d399;
  padding: 12px 16px;
  border-radius: 12px;
  margin-top: 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

button {
  background: linear-gradient(135deg, #e5c158, #b89327);
  color: #09090b;
  padding: 14px;
  border: none;
  border-radius: 12px;
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(229, 193, 88, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

button:hover {
  background: linear-gradient(135deg, #f5d47a, #a38125);
  box-shadow: 0 6px 22px rgba(229, 193, 88, 0.35);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  background: linear-gradient(135deg, rgba(229, 193, 88, 0.15), rgba(184, 147, 39, 0.15)) !important;
  color: rgba(229, 193, 88, 0.45) !important;
  cursor: not-allowed;
  border: 1px solid rgba(229, 193, 88, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: pulseLoading 1.6s infinite ease-in-out;
}

button.stop-sending {
  background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3) !important;
  font-weight: 700 !important;
}

button.stop-sending:hover {
  background: linear-gradient(135deg, #fb7185, #be123c) !important;
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.45) !important;
  transform: translateY(-1px);
}

@keyframes pulseLoading {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 4px 15px rgba(229, 193, 88, 0.08);
  }
}

.small {
  font-size: 12px;
  color: #a3a3a3;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Custom Slider Styling */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  outline: none;
  border: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e5c158;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(229, 193, 88, 0.6);
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Custom Checkbox */
input[type="checkbox"] {
  accent-color: #e5c158;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .container {
    gap: 16px;
  }
}

@media (max-width: 850px) {
  .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body {
    padding: 15px;
  }
  .header {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .stat h2 {
    font-size: 22px;
  }
}

/* Password Gate Styles */
#password-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  background: radial-gradient(circle at center, rgba(20, 20, 25, 0.4) 0%, rgba(8, 8, 10, 0.94) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: 'Inter', sans-serif;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#password-gate.fade-out {
  opacity: 0;
  transform: scale(1.1);
  filter: blur(10px);
  visibility: hidden;
}

.password-card {
  background: rgba(22, 22, 26, 0.7);
  border: 1px solid rgba(229, 193, 88, 0.08);
  border-radius: 28px;
  padding: 45px 35px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 10;
  animation: slideCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideCardIn {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.password-card.shake {
  animation: shakeKey 0.4s ease-in-out;
}

.lock-container {
  width: 84px;
  height: 84px;
  background: rgba(229, 193, 88, 0.04);
  border: 1px solid rgba(229, 193, 88, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  box-shadow: 0 8px 30px rgba(229, 193, 88, 0.1);
}

.lock-icon {
  font-size: 38px;
  animation: pulseIcon 2s infinite ease-in-out;
}

.password-card h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff7ed, #e5c158);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.password-card p {
  font-size: 14px;
  color: #a3a3a3;
  margin-bottom: 28px;
  line-height: 1.5;
}

.password-input-wrapper {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.password-input-wrapper input {
  width: 100%;
  padding: 14px 48px 14px 16px;
  background: rgba(14, 14, 17, 0.75) !important;
  border: 1px solid rgba(229, 193, 88, 0.08) !important;
  border-radius: 12px;
  color: #f3f4f6 !important;
  font-size: 15px;
  outline: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.password-input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.password-input-wrapper input:focus {
  border-color: #e5c158 !important;
  box-shadow: 0 0 0 3px rgba(229, 193, 88, 0.15) !important;
}

.password-input-wrapper input.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  padding: 0 !important;
  width: auto !important;
  color: #a3a3a3 !important;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: color 0.2s;
  box-shadow: none !important;
}

.eye-btn:hover {
  color: #f3f4f6 !important;
  background: none !important;
  transform: translateY(-50%) !important;
}

.unlock-btn {
  background: linear-gradient(135deg, #e5c158, #b89327) !important;
  color: #09090b !important;
  padding: 14px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  border: none !important;
  width: 100% !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 15px rgba(229, 193, 88, 0.25) !important;
}

.unlock-btn:hover {
  background: linear-gradient(135deg, #f5d47a, #a38125) !important;
  box-shadow: 0 6px 22px rgba(229, 193, 88, 0.35) !important;
  transform: translateY(-1px) !important;
}

.unlock-btn:active {
  transform: translateY(1px) !important;
}

.error-msg {
  color: #f87171;
  font-size: 13px;
  margin-top: 14px;
  min-height: 18px;
  font-weight: 500;
  transition: opacity 0.2s;
  opacity: 0;
}

.error-msg.visible {
  opacity: 1;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(229,193,88,0.3)); }
}

@keyframes shakeKey {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes pulseHeader {
  0% { filter: drop-shadow(0 2px 8px rgba(229, 193, 88, 0.15)); }
  100% { filter: drop-shadow(0 4px 18px rgba(229, 193, 88, 0.35)); }
}

/* Premium Background Animation Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at center, #111115 0%, #050507 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.2;
  mix-blend-mode: screen;
  animation: float-blob 22s infinite ease-in-out alternate;
}

.blob-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(229, 193, 88, 0.35) 0%, rgba(229, 193, 88, 0) 70%);
  top: -15%;
  left: -15%;
}

.blob-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(199, 140, 119, 0.3) 0%, rgba(199, 140, 119, 0) 70%);
  bottom: -20%;
  right: -15%;
  animation-delay: -5s;
  animation-duration: 26s;
}

.blob-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.2) 0%, rgba(217, 119, 6, 0) 70%);
  top: 35%;
  left: 25%;
  animation-delay: -10s;
  animation-duration: 18s;
}

.blob-4 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0) 70%);
  bottom: 15%;
  left: 5%;
  animation-delay: -14s;
  animation-duration: 24s;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(60px, -40px) scale(1.08) rotate(180deg);
  }
  100% {
    transform: translate(-30px, 50px) scale(0.92) rotate(360deg);
  }
}

/* Welcome Badge and Bar Styles */
.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 193, 88, 0.05);
  border: 1px solid rgba(229, 193, 88, 0.15);
  color: #f5d47a;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-bar {
  max-width: 1200px;
  margin: 0 auto 24px auto;
  background: linear-gradient(135deg, rgba(229, 193, 88, 0.04), rgba(199, 140, 119, 0.05));
  border: 1px solid rgba(229, 193, 88, 0.1);
  padding: 14px 20px;
  border-radius: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #f5d47a;
  text-transform: capitalize;
  box-shadow: 0 4px 20px rgba(229, 193, 88, 0.04);
  animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-app {
  animation: fadeInMain 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

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

/* Guide Modal & Tabs */
.guide-tab {
  background: none !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  color: #9ca3af !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 10px 0 !important;
  width: auto !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.guide-tab:hover {
  color: #e5c158 !important;
  opacity: 1;
}

.active-tab {
  border-bottom: 2px solid #e5c158 !important;
  color: #e5c158 !important;
  font-weight: 600 !important;
  opacity: 1;
}

.close-guide-btn {
  box-shadow: none !important;
}

/* Spam Score Card Elements */
.spam-badge-safe {
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.spam-badge-warning {
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.spam-badge-danger {
  background: rgba(244, 63, 94, 0.08);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.2);
}
.spam-warning-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  line-height: 1.4;
  transition: all 0.3s ease;
  background: rgba(14, 14, 17, 0.3);
}
.spam-warning-item.success-item {
  background: rgba(16, 185, 129, 0.06);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.spam-warning-item.warning-item {
  background: rgba(245, 158, 11, 0.06);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.spam-warning-item.danger-item {
  background: rgba(244, 63, 94, 0.06);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.15);
}

/* Redesigned Guide Modal Classes */
.guide-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.guide-modal-content {
  background: rgba(18, 18, 22, 0.95);
  border: 1px solid rgba(229, 193, 88, 0.08);
  border-radius: 24px;
  width: 90%;
  max-width: 650px;
  padding: 35px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  color: #f3f4f6;
}
.guide-modal-content code {
  background: rgba(255, 255, 255, 0.04);
  color: #f5d47a;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
}
.guide-code-box {
  background: rgba(10, 10, 12, 0.8) !important;
  padding: 12px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 12px;
  border: 1px solid rgba(229, 193, 88, 0.1);
  word-break: break-all;
  color: #e2e8f0;
}