/**
 * Component primitives — Button, Card, Badge, Input, Tag, Tooltip
 */

/* ─── Buttons ─── */
.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
}
.v2-btn:disabled, .v2-btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.v2-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.v2-btn-primary {
  background: var(--brand-600);
  color: #fff;
}
.v2-btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: var(--shadow); color: #fff; }
.v2-btn-primary:active { transform: translateY(0); }

.v2-btn-secondary {
  background: var(--surface-card);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.v2-btn-secondary:hover { background: var(--surface-page); border-color: var(--brand-500); color: var(--text-primary); }

.v2-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.v2-btn-ghost:hover { background: var(--surface-hover); color: var(--text-primary); }

.v2-btn-danger {
  background: var(--danger-600);
  color: #fff;
}
.v2-btn-danger:hover { background: var(--danger-700); color: #fff; }

.v2-btn-success {
  background: var(--success-600);
  color: #fff;
}
.v2-btn-success:hover { background: var(--success-700); color: #fff; }

.v2-btn-sm { padding: 6px 12px; font-size: var(--text-xs); border-radius: var(--radius-sm); }
.v2-btn-lg { padding: 12px 22px; font-size: var(--text-md); }

.v2-btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}
.v2-btn-icon.v2-btn-sm { width: 28px; height: 28px; }
.v2-btn-icon svg { width: 16px; height: 16px; }

/* ─── Card ─── */
.v2-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration-fast) var(--ease-out);
}
.v2-card-pad { padding: var(--space-6); }
.v2-card-pad-sm { padding: var(--space-4); }
.v2-card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.v2-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-default);
  gap: var(--space-3);
}
.v2-card-head h3 {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0;
}
.v2-card-head .subtitle { font-size: var(--text-xs); color: var(--text-tertiary); }

.v2-card-body { padding: var(--space-6); }
.v2-card-foot {
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--border-default);
  background: var(--surface-page);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

/* ─── Badges ─── */
.v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  color: var(--slate-700);
}
.v2-badge-success { background: var(--success-100); color: var(--success-700); }
.v2-badge-warning { background: var(--warning-100); color: var(--warning-700); }
.v2-badge-danger  { background: var(--danger-100); color: var(--danger-700); }
.v2-badge-info    { background: var(--info-100);   color: var(--info-700); }
.v2-badge-brand   { background: var(--brand-100); color: var(--brand-700); }
.v2-badge-dot::before {
  content: ""; width: 6px; height: 6px;
  background: currentColor; border-radius: var(--radius-full);
}

/* ─── Inputs ─── */
.v2-field { display: flex; flex-direction: column; gap: 6px; }
.v2-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.v2-field-label .req { color: var(--danger-600); }
.v2-field-label .hint { color: var(--text-tertiary); font-weight: var(--weight-regular); }
.v2-field-help { font-size: 11px; color: var(--text-tertiary); }
.v2-field-error { font-size: 11px; color: var(--danger-600); margin-top: 2px; display: flex; align-items: center; gap: 4px; }

.v2-input, .v2-select, .v2-textarea {
  width: 100%;
  padding: 9px 12px;
  font-family: inherit;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.v2-input:hover, .v2-select:hover, .v2-textarea:hover { border-color: var(--brand-400); }
.v2-input:focus, .v2-select:focus, .v2-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}
.v2-input:disabled, .v2-select:disabled, .v2-textarea:disabled {
  background: var(--surface-hover);
  color: var(--text-tertiary);
  cursor: not-allowed;
}
.v2-textarea { resize: vertical; min-height: 80px; }

.v2-input-group {
  display: flex;
  align-items: stretch;
}
.v2-input-group .v2-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.v2-input-group .v2-btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Checkbox / Radio */
.v2-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  cursor: pointer;
}
.v2-check input[type="checkbox"], .v2-check input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--brand-600);
  cursor: pointer;
}

/* ─── Tag ─── */
.v2-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: var(--weight-semibold);
  font-family: var(--font-mono);
  background: var(--slate-100);
  color: var(--slate-700);
  border-radius: var(--radius-xs);
  letter-spacing: 0.02em;
}

/* ─── Divider ─── */
.v2-divider {
  height: 1px;
  background: var(--border-default);
  margin: var(--space-4) 0;
}
.v2-divider-vertical {
  width: 1px;
  background: var(--border-default);
  align-self: stretch;
  margin: 0 var(--space-2);
}

/* ─── Tooltip ─── */
.v2-tooltip {
  position: relative;
}
.v2-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: var(--slate-900);
  color: #fff;
  font-size: 11px;
  font-weight: var(--weight-medium);
  border-radius: var(--radius-xs);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-fast);
  z-index: var(--z-tooltip);
}
.v2-tooltip:hover::after { opacity: 1; }

/* ─── Skeleton ─── */
.v2-skeleton {
  background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 50%, var(--slate-100) 75%);
  background-size: 200% 100%;
  animation: v2-skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes v2-skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Empty state ─── */
.v2-empty {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--text-tertiary);
}
.v2-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  display: grid;
  place-items: center;
  background: var(--surface-page);
  color: var(--text-tertiary);
  border-radius: var(--radius-full);
}
.v2-empty-icon svg { width: 28px; height: 28px; }
.v2-empty h4 {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0 0 6px;
}
.v2-empty p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0 auto var(--space-4);
}

/* ─── Toast ─── */
.v2-toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 400px;
}
.v2-toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-left-width: 4px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: v2-toast-in var(--duration-slow) var(--ease-out);
  font-size: var(--text-sm);
}
.v2-toast-success { border-left-color: var(--success-500); }
.v2-toast-warning { border-left-color: var(--warning-500); }
.v2-toast-danger  { border-left-color: var(--danger-500); }
.v2-toast-info    { border-left-color: var(--info-500); }
.v2-toast-icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }
.v2-toast-success .v2-toast-icon { color: var(--success-600); }
.v2-toast-warning .v2-toast-icon { color: var(--warning-600); }
.v2-toast-danger  .v2-toast-icon { color: var(--danger-600); }
.v2-toast-info    .v2-toast-icon { color: var(--info-600); }
.v2-toast-content { flex: 1; }
.v2-toast-title { font-weight: var(--weight-semibold); color: var(--text-primary); margin-bottom: 2px; }
.v2-toast-desc { color: var(--text-secondary); font-size: var(--text-xs); }
.v2-toast-close {
  background: none; border: none; padding: 0;
  color: var(--text-tertiary); cursor: pointer;
  display: grid; place-items: center;
}
.v2-toast-close:hover { color: var(--text-primary); }

@keyframes v2-toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Drawer (slide-in panel) ─── */
.v2-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: var(--surface-overlay);
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
}
.v2-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.v2-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 480px;
  max-width: 90vw;
  height: 100vh;
  background: var(--surface-card);
  z-index: calc(var(--z-modal) + 1);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.v2-drawer.is-open { transform: translateX(0); }
.v2-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
}
.v2-drawer-head h3 { font-size: var(--text-md); font-weight: var(--weight-semibold); margin: 0; }
.v2-drawer-body { flex: 1; overflow-y: auto; padding: var(--space-6); }
.v2-drawer-foot {
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--border-default);
  display: flex; gap: var(--space-2); justify-content: flex-end;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .v2-drawer { width: 100vw; }
}

/* ─── Modal ─── */
.v2-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--surface-overlay);
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow);
}
.v2-modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.v2-modal {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: scale(0.96);
  transition: transform var(--duration-slow) var(--ease-out);
}
.v2-modal-backdrop.is-open .v2-modal { transform: scale(1); }
.v2-modal-head, .v2-modal-foot {
  padding: var(--space-4) var(--space-6);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.v2-modal-head { border-bottom: 1px solid var(--border-default); }
.v2-modal-foot { border-top: 1px solid var(--border-default); gap: var(--space-2); justify-content: flex-end; }
.v2-modal-body { flex: 1; overflow-y: auto; padding: var(--space-6); }

/* ─── Confirm Modal (programmatic; v2Confirm) ─── */
.v2-confirm-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 9999);
  display: grid;
  place-items: center;
  padding: var(--space-4);
  animation: v2-fade-in var(--duration-fast, 150ms) var(--ease-out, ease-out);
}
.v2-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.v2-confirm-modal {
  position: relative;
  background: var(--surface-card, #fff);
  border-radius: var(--radius-lg, 12px);
  width: 100%;
  max-width: 420px;
  padding: var(--space-6, 24px);
  text-align: center;
  box-shadow: var(--shadow-xl, 0 20px 50px rgba(0,0,0,0.25));
  animation: v2-confirm-pop 200ms var(--ease-out, ease-out);
}
@keyframes v2-confirm-pop {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.v2-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-50, #eef2ff);
  color: var(--brand-600, #4f46e5);
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-3, 12px);
}
.v2-confirm-icon.is-danger {
  background: var(--danger-50, #fef2f2);
  color: var(--danger-600, #dc2626);
}
.v2-confirm-icon svg { width: 28px; height: 28px; }
.v2-confirm-title {
  margin: 0 0 8px;
  font-size: var(--text-lg, 17px);
  font-weight: var(--weight-bold, 700);
  color: var(--text-primary, #0f172a);
  letter-spacing: var(--tracking-tight, -0.01em);
}
.v2-confirm-message {
  margin: 0 0 var(--space-5, 20px);
  font-size: var(--text-sm, 14px);
  color: var(--text-secondary, #475569);
  line-height: 1.5;
}
.v2-confirm-actions {
  display: flex;
  gap: var(--space-2, 8px);
  justify-content: center;
}
.v2-confirm-actions .btn { min-width: 110px; justify-content: center; }
.v2-confirm-actions .btn-danger {
  background: var(--danger-600, #dc2626);
  color: #fff;
  border-color: var(--danger-600, #dc2626);
}
.v2-confirm-actions .btn-danger:hover {
  background: var(--danger-700, #b91c1c);
  border-color: var(--danger-700, #b91c1c);
}

/* ─── Dropdown Menu (period selector, etc.) ─── */
.v2-dropdown-menu {
  position: fixed;
  z-index: 9000;
  background: var(--surface-card, #fff);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg, 10px);
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(15, 23, 42, 0.12));
  min-width: 240px;
  padding: 6px;
  opacity: 0;
  transform: translateY(-4px) scale(0.97);
  transform-origin: top right;
  transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out);
  pointer-events: none;
}
.v2-dropdown-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.v2-dropdown-head {
  padding: 8px 10px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}
.v2-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md, 8px);
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 80ms ease;
}
.v2-dropdown-item:hover { background: var(--surface-hover, rgba(15, 23, 42, 0.04)); }
.v2-dropdown-item.is-active {
  background: var(--brand-50, #eef2ff);
  color: var(--brand-700, #3730a3);
}
.v2-dropdown-item-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
}
.v2-dropdown-item-desc {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 400;
}
.v2-dropdown-check {
  width: 14px;
  height: 14px;
  color: var(--brand-600);
  flex-shrink: 0;
}

/* ─── Command Palette (Ctrl/Cmd+K) ─── */
.v2-cmdk-wrap {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  animation: v2-fade-in 160ms var(--ease-out);
}
.v2-cmdk-panel {
  width: 100%;
  max-width: 600px;
  background: var(--surface-card, #fff);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}
.v2-cmdk-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-default);
}
.v2-cmdk-input-wrap svg { width: 18px; height: 18px; color: var(--text-tertiary); flex-shrink: 0; }
.v2-cmdk-input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 15px;
  color: var(--text-primary);
  background: transparent;
}
.v2-cmdk-input::placeholder { color: var(--text-tertiary); }
.v2-cmdk-kbd {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  padding: 2px 6px;
  background: var(--surface-page);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  color: var(--text-tertiary);
}
.v2-cmdk-list { overflow-y: auto; padding: 8px; max-height: calc(70vh - 60px); }
.v2-cmdk-group-title {
  padding: 8px 10px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
}
.v2-cmdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  color: var(--text-primary);
  font-size: 13px;
}
.v2-cmdk-item:hover, .v2-cmdk-item.is-selected {
  background: var(--brand-50, #eef2ff);
  color: var(--brand-700, #3730a3);
}
.v2-cmdk-item-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--surface-page);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.v2-cmdk-item.is-selected .v2-cmdk-item-icon { background: rgba(255,255,255,0.7); }
.v2-cmdk-item-icon svg { width: 14px; height: 14px; }
.v2-cmdk-item-title { font-weight: 500; flex: 1; }
.v2-cmdk-item-shortcut { font-size: 11px; color: var(--text-tertiary); }
.v2-cmdk-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ─── Notification Panel (topbar bell) ─── */
.v2-notif-menu {
  position: fixed;
  z-index: 9000;
  background: var(--surface-card, #fff);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg, 10px);
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(15, 23, 42, 0.12));
  width: 360px;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-4px) scale(0.97);
  transform-origin: top right;
  transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out);
  pointer-events: none;
  overflow: hidden;
}
.v2-notif-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.v2-notif-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.v2-notif-head h4 { margin: 0; font-size: 14px; font-weight: 600; }
.v2-notif-head .count {
  background: var(--brand-100, #e0e7ff);
  color: var(--brand-700, #3730a3);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.v2-notif-list { flex: 1; overflow-y: auto; }
.v2-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-default);
  cursor: pointer;
  transition: background 80ms ease;
}
.v2-notif-item:last-child { border-bottom: 0; }
.v2-notif-item:hover { background: var(--surface-hover, rgba(15, 23, 42, 0.04)); }
.v2-notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.v2-notif-icon svg { width: 16px; height: 16px; }
.v2-notif-icon.is-info    { background: var(--brand-50);   color: var(--brand-600); }
.v2-notif-icon.is-warning { background: var(--warning-50); color: var(--warning-600); }
.v2-notif-icon.is-danger  { background: var(--danger-50);  color: var(--danger-600); }
.v2-notif-icon.is-success { background: var(--success-50); color: var(--success-600); }
.v2-notif-text { flex: 1; min-width: 0; }
.v2-notif-text-title { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 2px; }
.v2-notif-text-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.v2-notif-text-time { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }
.v2-notif-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--border-default);
  text-align: center;
}
.v2-notif-foot a { font-size: 12px; color: var(--brand-600); text-decoration: none; font-weight: 500; }
.v2-notif-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ─── Mobile responsive: dropdowns, command palette, notif ─── */
@media (max-width: 640px) {
  .v2-cmdk-wrap { padding-top: 8vh; padding-left: 12px; padding-right: 12px; }
  .v2-cmdk-panel { max-height: 80vh; }
  .v2-cmdk-list  { max-height: calc(80vh - 60px); }

  .v2-notif-menu {
    width: calc(100vw - 24px) !important;
    right: 12px !important;
    left: 12px;
    max-width: 400px;
  }

  .v2-dropdown-menu { min-width: 180px; }

  .v2-confirm-modal { padding: 20px; }

  .v2-searchable-panel {
    /* Mobilde tam genişlik fixed olsun */
    left: 12px !important;
    right: 12px;
    width: auto !important;
    max-height: 50vh;
  }
  .v2-searchable-list { max-height: calc(50vh - 40px); }
}

/* ─── Animation utilities ─── */
.v2-fade-in { animation: v2-fade-in var(--duration-slow) var(--ease-out); }
@keyframes v2-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.v2-stagger-children > * { animation: v2-fade-in var(--duration-slow) var(--ease-out) backwards; }
.v2-stagger-children > *:nth-child(1) { animation-delay: 50ms; }
.v2-stagger-children > *:nth-child(2) { animation-delay: 100ms; }
.v2-stagger-children > *:nth-child(3) { animation-delay: 150ms; }
.v2-stagger-children > *:nth-child(4) { animation-delay: 200ms; }
.v2-stagger-children > *:nth-child(5) { animation-delay: 250ms; }
.v2-stagger-children > *:nth-child(6) { animation-delay: 300ms; }
.v2-stagger-children > *:nth-child(7) { animation-delay: 350ms; }
.v2-stagger-children > *:nth-child(8) { animation-delay: 400ms; }
