/* Custom cursor */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.25s, height 0.25s, border-color 0.25s;
  will-change: transform;
}

[data-theme="dark"] .cursor-ring {
  border-color: rgba(255, 255, 255, 0.15);
}

.cursor-ring.expanded {
  width: 64px;
  height: 64px;
  border-color: rgba(37, 99, 235, 0.7);
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

/* Success message */
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.25rem;
  padding: 14px 18px;
  background: rgba(0, 228, 153, 0.08);
  border: 1px solid rgba(0, 228, 153, 0.3);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-size: 0.9rem;
}

/* Header Action Buttons (Switcher) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 2rem;
}

.theme-toggle,
.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover,
.lang-toggle:hover {
  background: var(--bg-secondary);
  border-color: var(--border-bright);
  transform: translateY(-1px);
}

.lang-toggle {
  width: auto;
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Mobile Menu Action Buttons */
.btn-mobile-action {
  flex: 1;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-mobile-action:active {
  transform: scale(0.96);
  background: var(--border);
}

@media (max-width: 1000px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
    margin-right: 1rem;
  }
}

/* ─── Premium Custom Toast Notification System ─── */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.custom-toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  color: #1c1917;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  pointer-events: auto;
  cursor: pointer;
  transform: translateY(-20px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, background-color 0.2s;
  will-change: transform, opacity;
}

[data-theme="dark"] .custom-toast {
  background: rgba(24, 24, 27, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3), 0 4px 12px -2px rgba(0, 0, 0, 0.2);
}

.custom-toast.toast-show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.custom-toast.toast-hide {
  transform: translateY(-10px) scale(0.9);
  opacity: 0;
  pointer-events: none;
}

.custom-toast:hover {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .custom-toast:hover {
  background: rgba(39, 39, 42, 0.9);
}

/* Toast types styling */
.custom-toast::before {
  content: '';
  width: 4px;
  height: 24px;
  border-radius: 2px;
  flex-shrink: 0;
}

.custom-toast.toast-success::before { background-color: var(--success, #10b981); }
.custom-toast.toast-error::before { background-color: var(--danger, #ef4444); }
.custom-toast.toast-info::before { background-color: var(--accent2, #2563eb); }
.custom-toast.toast-warning::before { background-color: #f59e0b; }

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.toast-success .toast-icon { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.toast-error .toast-icon { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.toast-info .toast-icon { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.toast-warning .toast-icon { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.toast-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.toast-message {
  flex-grow: 1;
  line-height: 1.4;
  padding-right: 8px;
}

.toast-close {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  opacity: 0.5;
  transition: opacity 0.2s, background-color 0.2s;
}

.toast-close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .toast-close:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.toast-close svg {
  width: 12px;
  height: 12px;
}