/* Premium Modern CSS for ScamShield Lite */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
  color: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 500px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 35px 30px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.subtitle {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 25px;
}

textarea {
  width: 100%;
  height: 130px;
  padding: 15px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: #f1f5f9;
  outline: none;
  resize: none;
  font-size: 15px;
  line-height: 1.5;
  transition: all 0.3s ease;
  font-family: inherit;
}

textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

/* Character Counter */
.counter-container {
  display: flex;
  justify-content: flex-end;
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
  font-weight: 500;
}

/* Quick Templates */
.templates-section {
  margin: 20px 0;
  text-align: left;
}

.templates-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.template-btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.template-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  transform: translateY(-2px);
}

.template-btn.scam:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.template-btn.reward:hover {
  background: rgba(250, 204, 21, 0.08);
  border-color: rgba(250, 204, 21, 0.3);
  color: #facc15;
}

.template-btn.otp:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.template-btn.safe:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

/* Analyze Button */
.analyze-btn {
  margin-top: 10px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.analyze-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #0ea5e9 0%, #1d4ed8 100%);
}

.analyze-btn:active {
  transform: translateY(0);
}

/* Meter */
.meter {
  width: 100%;
  height: 8px;
  background: rgba(51, 65, 85, 0.5);
  border-radius: 99px;
  margin-top: 25px;
  overflow: hidden;
}

#bar {
  height: 100%;
  width: 0%;
  background: #22c55e;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 99px;
}

#result {
  margin-top: 20px;
  font-size: 1.4rem;
  font-weight: 700;
}

#score {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 500;
}

#tags {
  margin-top: 15px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.4);
  color: #facc15;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(250, 204, 21, 0.15);
}

.result-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 16px;
    padding: 14px 16px;

    background-color: #fff8e1;
    border-left: 4px solid #f59e0b;

    border-radius: 8px;

    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
}

.disclaimer-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.result-disclaimer p {
    margin: 0;
}

/* Back Button Responsive positioning */
.project-back-button:hover {
  transform: scale(1.05);
  background: #f1f5f9 !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25) !important;
}

@media (max-width: 550px) {
  body {
    padding: 10px;
  }
  .container {
    padding: 25px 20px;
  }
  h1 {
    font-size: 1.8rem;
  }
  .templates-grid {
    grid-template-columns: 1fr;
  }
  .project-back-button {
    position: static !important;
    display: inline-block;
    margin-bottom: 20px;
  }
}