/* ── Mukh1 Design System ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #5e17eb;
  --primary-dark: #4c1d95;
  --primary-light: #f7f3ff;
  --accent: #ff6100;
  --accent-dark: #e55500;
  --accent-light: #fff3eb;
  --magenta: #cf0067;
  --text: #000000;
  --text-muted: #616161;
  --text-light: #808285;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --bg-purple: #f7f3ff;
  --border: rgba(94, 23, 235, 0.08);
  --border-hover: rgba(94, 23, 235, 0.2);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 25px rgba(94, 23, 235, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-purple: 0 8px 32px rgba(94, 23, 235, 0.12);
  --gradient: linear-gradient(135deg, #5e17eb, #cf0067, #ff6100);
  --gradient-purple: linear-gradient(135deg, #5e17eb, #7c3aed);
  --gradient-orange: linear-gradient(135deg, #ff6100, #ff8533);
  --radius: 16px;
  --radius-pill: 50px;
  --radius-sm: 10px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent); text-decoration: none; }

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

/* ── Gradient text ──────────────────────────────────────────────────────────── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.container { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Navbar ──────────────────────────────────────────────────────────────────── */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-img { height: 40px; }
.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-orange);
  color: #fff;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(255, 97, 0, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e55500, #ff6100);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 97, 0, 0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-purple);
  color: var(--primary);
  border-radius: var(--radius-sm);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(94, 23, 235, 0.3);
}

.btn-purple {
  background: var(--gradient-purple);
  color: #fff;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(94, 23, 235, 0.2);
}
.btn-purple:hover {
  background: linear-gradient(135deg, #4c1d95, #5e17eb);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(94, 23, 235, 0.4);
}

.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Form ────────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(94, 23, 235, 0.12);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: all 0.3s ease;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 23, 235, 0.1);
}
.form-group input::placeholder { color: var(--text-light); }

/* File upload */
.file-upload-wrapper {
  position: relative;
  border: 2px dashed rgba(94, 23, 235, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-purple);
}
.file-upload-wrapper:hover,
.file-upload-wrapper.drag-over {
  border-color: var(--primary);
  background: rgba(94, 23, 235, 0.06);
}
.file-upload-wrapper input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.file-upload-icon { font-size: 32px; margin-bottom: 8px; }
.file-upload-text { color: var(--text-muted); font-size: 14px; }
.file-upload-text strong { color: var(--primary); }
.file-name {
  margin-top: 8px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

/* ── Alert ───────────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #065f46; border: 1px solid #bbf7d0; }

/* ── Spinner ─────────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
