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

body {
  background-color: #0b0e14;
  color: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(15, 20, 31, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-ai {
  font-size: 0.7rem;
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.logo-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-clean {
  background: transparent;
  color: #cbd5e1;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-clean:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

/* Main Container */
.main-container {
  max-width: 900px;
  width: 94%;
  margin: 32px auto 60px;
  flex: 1;
}

.hero-section {
  text-align: center;
  margin-bottom: 28px;
}

.status-pill {
  display: inline-block;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 12px;
}

.hero-section h1 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section p {
  color: #94a3b8;
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Filter Pills */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.cat-pill {
  background: #151b26;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 15px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-pill:hover, .cat-pill.active {
  background: #1e293b;
  color: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Active Banner */
.active-tool-banner {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
}

.active-tool-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 3px;
}

.active-tool-hint {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Grid of Tools */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.tool-card {
  background: #131924;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.tool-card:hover {
  background: #172030;
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.tool-card.active {
  background: #142236;
  border: 1px solid #0284c7;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.25);
}

.tool-icon {
  font-size: 1.4rem;
  background: #1e283a;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-info h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: #f8fafc;
}

.tool-info p {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.3;
}

/* Generator Input Box */
.generator-box {
  background: #131924;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}

.generator-box label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.generator-box textarea {
  width: 100%;
  background: #0b0f17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 0.92rem;
  resize: vertical;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.generator-box textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.btn-generate-main {
  width: 100%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.btn-generate-main:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

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

/* Output Area */
.output-box {
  background: #131924;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 20px;
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.badge-ready {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.btn-copy {
  background: #1e283a;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: #25334a;
  color: #fff;
}

.output-content {
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Email Login Modal Styling */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
}

.auth-modal-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  padding: 1.8rem;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  color: #fff;
  box-sizing: border-box;
}

.auth-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
}

.auth-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 10px;
}

.auth-modal-card h3 {
  margin: 0 0 6px 0;
  font-size: 1.3rem;
  color: #f8fafc;
}

.auth-modal-card p {
  margin: 0 0 1.2rem 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.auth-input-group {
  text-align: left;
  margin-bottom: 1.2rem;
}

.auth-input-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 6px;
  color: #cbd5e1;
}

.auth-input-group input {
  width: 100%;
  padding: 11px 14px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
}

.auth-input-group input:focus {
  border-color: #38bdf8;
}

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-sizing: border-box;
}

/* Policy Modal Styling */
.policy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
}

.policy-modal-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  padding: 1.8rem;
  position: relative;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  color: #fff;
  box-sizing: border-box;
}

.policy-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
}
