/* ═══════════════════════════════════════════════════════
   where nothing happens  —  Global Styles
   Shared variables, resets, typography
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

@font-face {
  font-family: 'ChangaOne';
  src: url('../ChangaOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:            #06060f;
  --bg-deep:       #070710;
  --bg-panel:      #0d0d1a;
  --surface:       #0d0d1c;
  --surface-hi:    rgba(255,255,255,0.04);
  --glass-fill:    rgba(255,255,255,0.04);
  --glass-border:  rgba(255,255,255,0.08);
  --border:        rgba(255,255,255,0.07);
  --border-hi:     rgba(255,255,255,0.16);
  --text:          #ebebff;
  --text-dim:      rgba(255,255,255,0.35);
  --text-muted:    rgba(255,255,255,0.2);
  --accent:        #4f8cff;
  --accent-glow:   rgba(79,140,255,0.3);
  --accent-2:      #8b5cf6;
  --danger:        #ff4f6a;
  --amber:         #f59e0b;
  --amber-glow:    rgba(245,158,11,0.18);
  --divider:       rgba(255,255,255,0.06);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     28px;
  --radius-full:   999px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Syne', sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

button {
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

input {
  font-family: 'DM Sans', sans-serif;
  outline: none;
}

/* ---- scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.15);
}

/* ---- app name ---- */
.app-name {
  font-family: 'ChangaOne', sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 2px;
  text-transform: lowercase;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
}

/* ---- app watermark ---- */
.app-watermark {
  position: fixed;
  bottom: 18px;
  right: 22px;
  font-family: 'ChangaOne', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.07);
  pointer-events: none;
  user-select: none;
  text-transform: lowercase;
  z-index: 999;
}

/* ---- utility classes ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- toast notification ---- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastIn 0.35s ease forwards;
  max-width: 340px;
}

.toast.toast-out {
  animation: toastOut 0.3s ease forwards;
}

.toast.toast-error {
  border-color: rgba(255,79,106,0.3);
  color: var(--danger);
}

.toast.toast-success {
  border-color: rgba(79,140,255,0.3);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(40px) scale(0.95); }
}
