:root {
  --bg-deep: #05060f;
  --bg-mid: #0c1030;
  --bg-card: rgba(10, 12, 32, 0.62);
  --border: rgba(139, 92, 246, 0.22);
  --border-hover: rgba(34, 211, 238, 0.45);
  /* Палитра логотипа Moral Together */
  --logo-magenta: #d946ef;
  --logo-pink: #ec4899;
  --logo-orange: #f97316;
  --logo-yellow: #facc15;
  --logo-green: #22c55e;
  --logo-cyan: #06b6d4;
  --logo-blue: #3b82f6;
  --logo-purple: #8b5cf6;
  --accent-purple: var(--logo-purple);
  --accent-teal: var(--logo-cyan);
  --accent-pink: var(--logo-pink);
  --accent-blue: var(--logo-blue);
  --logo-spectrum: var(--logo-magenta), var(--logo-pink), var(--logo-orange), var(--logo-yellow), var(--logo-green), var(--logo-cyan), var(--logo-blue), var(--logo-purple);
  --gradient: linear-gradient(135deg, var(--logo-magenta) 0%, var(--logo-orange) 35%, var(--logo-green) 65%, var(--logo-cyan) 100%);
  --gradient-text: linear-gradient(90deg, #f9a8d4, #fdba74, #fde047, #86efac, #67e8f9);
  --gradient-border: linear-gradient(135deg, var(--logo-magenta), var(--logo-orange), var(--logo-yellow), var(--logo-green), var(--logo-cyan), var(--logo-purple));
  --text-primary: #f1f5f9;
  --text-secondary: rgba(241, 245, 249, 0.65);
  --text-muted: rgba(241, 245, 249, 0.38);
  --error: #f87171;
  --success: #34d399;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.12);
  --glow-purple: 0 0 60px rgba(139, 92, 246, 0.25);
  --glow-teal: 0 0 40px rgba(34, 211, 238, 0.2);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body.has-cursor-fx,
body.has-cursor-fx a,
body.has-cursor-fx button {
  cursor: none;
}

body.has-cursor-fx input,
body.has-cursor-fx textarea {
  cursor: text;
}

.hidden { display: none !important; }

/* ── Cursor FX ── */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  margin: -190px 0 0 -190px;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(217, 70, 239, 0.14) 0%, rgba(6, 182, 212, 0.08) 35%, transparent 68%);
  mix-blend-mode: screen;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
  transition: width 0.2s, height 0.2s, margin 0.2s, border-color 0.2s;
  will-change: transform;
}

.cursor-ring.is-hover {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-color: rgba(250, 204, 21, 0.7);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.4);
}

.cursor-ring.is-click {
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-color: rgba(217, 70, 239, 0.9);
}

.cursor-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  animation: trail-fade 0.7s ease-out forwards;
}

@keyframes trail-fade {
  0% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.2); }
}

/* ── Dynamic background (цвета логотипа) ── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(165deg, #04050c 0%, #0a0820 40%, #060a18 100%);
}

.ambient::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(6, 182, 212, 0.06) 40%, transparent 70%);
  transition: left 0.35s ease-out, top 0.35s ease-out;
}

.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  filter: blur(60px);
  background:
    radial-gradient(ellipse 55% 45% at 20% 30%, rgba(217, 70, 239, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 75% 25%, rgba(249, 115, 22, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse 45% 50% at 85% 70%, rgba(34, 197, 94, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 15% 80%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

.aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 60% 40%, rgba(250, 204, 21, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 45% 40% at 30% 60%, rgba(236, 72, 153, 0.2) 0%, transparent 55%);
  animation: aurora-drift 22s ease-in-out infinite alternate-reverse;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, black 15%, transparent 78%);
  animation: grid-pulse 10s ease-in-out infinite;
}

.sparkles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sparkles i {
  position: absolute;
  display: block;
  border-radius: 50%;
  animation: sparkle-float linear infinite;
}

.sparkles i:nth-child(1)  { width: 4px; height: 4px; left: 8%;  top: 18%; background: var(--logo-magenta); box-shadow: 0 0 12px var(--logo-magenta); animation-duration: 14s; }
.sparkles i:nth-child(2)  { width: 3px; height: 3px; left: 22%; top: 72%; background: var(--logo-cyan);   box-shadow: 0 0 10px var(--logo-cyan);   animation-duration: 18s; animation-delay: -3s; }
.sparkles i:nth-child(3)  { width: 5px; height: 5px; left: 78%; top: 22%; background: var(--logo-orange); box-shadow: 0 0 14px var(--logo-orange); animation-duration: 16s; animation-delay: -6s; }
.sparkles i:nth-child(4)  { width: 3px; height: 3px; left: 88%; top: 65%; background: var(--logo-green);  box-shadow: 0 0 10px var(--logo-green);  animation-duration: 20s; animation-delay: -2s; }
.sparkles i:nth-child(5)  { width: 4px; height: 4px; left: 45%; top: 8%;  background: var(--logo-yellow); box-shadow: 0 0 12px var(--logo-yellow); animation-duration: 15s; animation-delay: -8s; }
.sparkles i:nth-child(6)  { width: 3px; height: 3px; left: 55%; top: 88%; background: var(--logo-pink);   box-shadow: 0 0 10px var(--logo-pink);   animation-duration: 17s; animation-delay: -5s; }
.sparkles i:nth-child(7)  { width: 2px; height: 2px; left: 12%; top: 48%; background: var(--logo-blue);   box-shadow: 0 0 8px var(--logo-blue);    animation-duration: 22s; animation-delay: -11s; }
.sparkles i:nth-child(8)  { width: 4px; height: 4px; left: 68%; top: 48%; background: var(--logo-purple); box-shadow: 0 0 12px var(--logo-purple); animation-duration: 13s; animation-delay: -4s; }

.ribbon {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  border: 2px solid transparent;
  animation: ribbon-spin 30s linear infinite;
}

.ribbon-1 {
  width: 520px;
  height: 520px;
  top: -200px;
  left: -180px;
  border-top-color: var(--logo-magenta);
  border-right-color: var(--logo-orange);
  filter: blur(1px);
}

.ribbon-2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  right: -120px;
  border-bottom-color: var(--logo-cyan);
  border-left-color: var(--logo-green);
  animation-direction: reverse;
  animation-duration: 25s;
}

.ribbon-3 {
  width: 280px;
  height: 280px;
  top: 55%;
  left: -80px;
  border-top-color: var(--logo-yellow);
  border-left-color: var(--logo-pink);
  animation-duration: 20s;
  opacity: 0.08;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: float 14s ease-in-out infinite;
}

.orb-1 { width: 380px; height: 380px; background: rgba(217, 70, 239, 0.2);  top: -100px; left: -60px; }
.orb-2 { width: 320px; height: 320px; background: rgba(6, 182, 212, 0.18);  bottom: -80px; right: -40px; animation-delay: -5s; }
.orb-3 { width: 260px; height: 260px; background: rgba(249, 115, 22, 0.16); top: 35%; right: 8%; animation-delay: -9s; }
.orb-4 { width: 220px; height: 220px; background: rgba(34, 197, 94, 0.14);  bottom: 20%; left: 5%; animation-delay: -3s; }
.orb-5 { width: 180px; height: 180px; background: rgba(250, 204, 21, 0.12); top: 12%; right: 25%; animation-delay: -11s; }
.orb-6 { width: 200px; height: 200px; background: rgba(236, 72, 153, 0.15); bottom: 35%; right: 30%; animation-delay: -7s; }

/* ── Layout ── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.page-wide { padding: 2rem 1.25rem 4rem; }

/* ── Brand ── */
.brand {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.brand-logo {
  display: block;
  width: min(300px, 82vw);
  height: auto;
  margin: 0 auto 0.85rem;
  object-fit: contain;
}

.brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-top: 0.45rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--logo-orange), var(--logo-yellow), var(--logo-orange));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.app-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: -0.5rem 0 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.app-logos img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.app-logos img:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 24px rgba(217, 70, 239, 0.2), 0 0 16px rgba(6, 182, 212, 0.15);
}

/* ── Card ── */
.card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s 0.08s ease both;
  transition: box-shadow 0.4s;
  isolation: isolate;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  background-size: 300% 300%;
  animation: gradient-shift 10s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  z-index: -1;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(217, 70, 239, 0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.card:hover {
  box-shadow: var(--shadow), 0 0 50px rgba(217, 70, 239, 0.12), 0 0 80px rgba(6, 182, 212, 0.08);
}

.card:hover::before { opacity: 0.75; }

.card-wide { max-width: 720px; }

.card-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.card-accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Form ── */
.form-group { margin-bottom: 1.15rem; }

.form-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: rgba(217, 70, 239, 0.45);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1), 0 0 20px rgba(6, 182, 212, 0.08);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  color: #0a0b1a;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.15);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(217, 70, 239, 0.15) 50%, rgba(6, 182, 212, 0.15) 65%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}

.btn-primary:hover:not(:disabled)::before { transform: translateX(120%); }

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(255, 255, 255, 0.28), 0 0 24px rgba(249, 115, 22, 0.15);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.08);
}

.btn-social {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  border-radius: var(--radius-sm);
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.btn-social svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-row { display: flex; gap: 0.75rem; }
.btn-row .btn { flex: 1; }

.btn-sm {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
  width: auto;
}

.btn-sm:hover { border-color: var(--error); color: var(--error); }

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.35rem 0;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* ── Links ── */
.link {
  color: var(--accent-teal);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.link:hover { color: #a5f3fc; }

.footer-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-muted {
  color: var(--text-muted) !important;
  font-size: 0.78rem !important;
  line-height: 1.5;
}

/* ── Alerts ── */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1.15rem;
  display: none;
  line-height: 1.45;
}

.alert.visible { display: block; animation: fadeUp 0.3s ease; }

.alert-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #fca5a5;
}

.alert-success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
}

/* ── Consent ── */
.consent-app {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1.35rem;
}

.consent-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--glow-purple);
}

.consent-scopes { list-style: none; margin: 1.15rem 0 1.5rem; }

.consent-scopes li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.consent-scopes li:last-child { border-bottom: none; }

.consent-scopes li::before {
  content: '✓';
  color: var(--accent-teal);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ── Account ── */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.avatar, .avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-mid), var(--bg-mid)) padding-box, var(--gradient) border-box;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-teal);
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sessions-list { list-style: none; }

.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ── Misc ── */
.code-input {
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.loader-ring {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-top-color: var(--accent-teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 1.5rem auto 0;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: #0a0b1a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-primary.loading .spinner { display: block; }
.btn-primary.loading .btn-text { display: none; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.06); }
  66% { transform: translate(-18px, 14px) scale(0.94); }
}

@keyframes aurora-drift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(3%, -2%) rotate(2deg) scale(1.04); }
  100% { transform: translate(-2%, 3%) rotate(-1deg) scale(0.98); }
}

@keyframes grid-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes sparkle-float {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-30px) scale(1.3); opacity: 1; }
  100% { transform: translateY(-60px) scale(0.8); opacity: 0.3; }
}

@keyframes ribbon-spin {
  to { transform: rotate(360deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .account-grid { grid-template-columns: 1fr; }
  .profile-header { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .card { padding: 1.85rem 1.35rem; }
  .brand-logo { width: min(260px, 88vw); }
  .app-logos { gap: 0.75rem; padding: 0.85rem 0.75rem; }
  .app-logos img { width: 48px; height: 48px; }
}
