/* ── Mesajix Custom Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: #030712; color: #f1f5f9; -webkit-font-smoothing: antialiased; }

/* Cards */
.card { background: #111827; border: 1px solid #1f2937; border-radius: 1rem; padding: 1.5rem; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: .75rem;
  background: #22c55e; color: #fff; font-weight: 600; font-size: .875rem;
  border: none; cursor: pointer; transition: background .2s, transform .1s;
  text-decoration: none;
}
.btn-primary:hover { background: #4ade80; }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: .75rem;
  background: #1f2937; border: 1px solid #374151; color: #f1f5f9;
  font-weight: 600; font-size: .875rem; cursor: pointer; transition: background .2s;
  text-decoration: none;
}
.btn-secondary:hover { background: #374151; }

/* Inputs */
.input-field {
  width: 100%; background: #1f2937; border: 1px solid #374151; border-radius: .75rem;
  padding: .75rem 1rem; color: #f1f5f9; font-size: .875rem; outline: none;
  transition: border-color .2s; font-family: inherit;
}
.input-field::placeholder { color: #6b7280; }
.input-field:focus { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
select.input-field { cursor: pointer; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .icon { position: absolute; left: .875rem; top: 50%; transform: translateY(-50%); color: #6b7280; pointer-events: none; }
.input-icon-wrap .input-field { padding-left: 2.5rem; }

label { display: block; font-size: .8125rem; font-weight: 500; color: #9ca3af; margin-bottom: .375rem; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .25rem .75rem; border-radius: 9999px; font-size: .75rem; font-weight: 500;
}
.badge-yellow { background: rgba(234,179,8,.15); color: #fde047; border: 1px solid rgba(234,179,8,.25); }
.badge-blue   { background: rgba(59,130,246,.15); color: #93c5fd; border: 1px solid rgba(59,130,246,.25); }
.badge-green  { background: rgba(34,197,94,.15);  color: #86efac; border: 1px solid rgba(34,197,94,.25); }
.badge-red    { background: rgba(239,68,68,.15);  color: #fca5a5; border: 1px solid rgba(239,68,68,.25); }

/* Progress bar */
.progress-track { height: .5rem; background: #1f2937; border-radius: 9999px; overflow: hidden; }
.progress-fill  { height: 100%; border-radius: 9999px; transition: width .7s ease; }

/* Spinner */
.spinner {
  width: 1.25rem; height: 1.25rem; border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
  display: inline-block; flex-shrink: 0;
}

/* Dropzone */
.dropzone {
  border: 2px dashed #374151; border-radius: 1rem; padding: 3rem 2rem;
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.drag-over { border-color: #22c55e; background: rgba(34,197,94,.05); }
.dropzone.done  { border-color: #22c55e; background: rgba(34,197,94,.05); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem; }
@media(max-width:640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Glow blobs */
.glow-green { position: absolute; width: 500px; height: 500px; background: rgba(34,197,94,.08); border-radius: 50%; filter: blur(80px); pointer-events: none; }

/* Nav */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(3,7,18,.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid #1f2937; height: 4rem;
  display: flex; align-items: center;
}
.nav-inner { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo  { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.125rem; color: #fff; text-decoration: none; }
.nav-logo .logo-icon { background: #22c55e; color: #fff; padding: .375rem; border-radius: .5rem; display: flex; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: .875rem; color: #9ca3af; }
.nav-links a { color: #9ca3af; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: #fff; }
@media(max-width:768px) { .nav-links { display: none; } }

/* Animations */
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ping     { 0%,100%{ transform:scale(1); opacity:.7 } 50%{ transform:scale(1.15); opacity:.4 } }

.anim-fade  { animation: fadeIn .4s ease; }
.anim-slide { animation: slideUp .4s ease; }

/* Section max-width */
.container { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 42rem; margin: 0 auto; padding: 0 1.5rem; }

/* Toast */
#toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  display: flex; align-items: center; gap: .75rem; padding: .875rem 1.25rem;
  background: #1f2937; border: 1px solid #374151; border-radius: .875rem;
  color: #f1f5f9; font-size: .875rem; font-weight: 500;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  animation: slideUp .3s ease;
  max-width: 22rem;
}
.toast.success { border-color: rgba(34,197,94,.4); }
.toast.error   { border-color: rgba(239,68,68,.4); }
.toast .toast-icon { font-size: 1.1rem; flex-shrink: 0; }

/* Hidden */
.hidden { display: none !important; }

/* Section spacing */
section { padding: 5rem 0; }
section + section { border-top: 1px solid #1f2937; }
