/* FETİH — unified custom context menu (replaces native right-click) */
#fetih-ctx {
  position: fixed; z-index: 10000; min-width: 210px; max-width: min(320px, calc(100vw - 16px));
  background: #0c0c0c; color: #f2f2f2; border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px; padding: 6px; margin: 0; list-style: none;
  box-shadow: 0 18px 48px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform-origin: top left;
  animation: fetihCtxIn .14s ease-out;
  font-family: inherit; font-size: 13px;
  user-select: none; -webkit-user-select: none;
}
#fetih-ctx.hidden { display: none; }
#fetih-ctx.leaving { animation: fetihCtxOut .12s ease-in forwards; pointer-events: none; }
@keyframes fetihCtxIn {
  from { opacity: 0; transform: scale(.96) translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@keyframes fetihCtxOut {
  to { opacity: 0; transform: scale(.97) translateY(-2px); }
}
#fetih-ctx .fcx-label {
  padding: 6px 10px 4px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: #888; font-weight: 600;
}
#fetih-ctx .fcx-sep {
  height: 1px; background: rgba(255,255,255,.1); margin: 5px 6px;
}
#fetih-ctx .fcx-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 8px;
  background: transparent; color: #eee; cursor: pointer; text-align: left;
  font: inherit; position: relative;
}
#fetih-ctx .fcx-item:hover,
#fetih-ctx .fcx-item:focus,
#fetih-ctx .fcx-item.active {
  background: #fff; color: #111; outline: none;
}
#fetih-ctx .fcx-item:hover .fcx-hint,
#fetih-ctx .fcx-item.active .fcx-hint { color: #555; }
#fetih-ctx .fcx-item:disabled,
#fetih-ctx .fcx-item.disabled {
  opacity: .38; cursor: not-allowed; pointer-events: none;
}
#fetih-ctx .fcx-item.danger { color: #ff6b6b; }
#fetih-ctx .fcx-item.danger:hover,
#fetih-ctx .fcx-item.danger.active { background: #c0392b; color: #fff; }
#fetih-ctx .fcx-item .lucide { width: 15px; height: 15px; flex-shrink: 0; opacity: .9; }
#fetih-ctx .fcx-item .fcx-text { flex: 1; min-width: 0; }
#fetih-ctx .fcx-hint {
  margin-left: auto; font-family: var(--mono, ui-monospace, monospace);
  font-size: 10px; color: #777; flex-shrink: 0;
}
#fetih-ctx .fcx-caret { margin-left: 6px; opacity: .55; font-size: 11px; }
#fetih-ctx .fcx-sub {
  position: absolute; left: calc(100% + 4px); top: -6px; min-width: 180px;
  background: #0c0c0c; border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px; padding: 6px; display: none;
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
  animation: fetihCtxIn .12s ease-out;
}
#fetih-ctx .fcx-item.has-sub:hover > .fcx-sub,
#fetih-ctx .fcx-item.has-sub.open > .fcx-sub,
#fetih-ctx .fcx-item.has-sub:focus-within > .fcx-sub { display: block; }
#fetih-ctx .fcx-item.has-sub.flip-sub > .fcx-sub {
  left: auto; right: calc(100% + 4px);
}
#fetih-ctx .fcx-item.has-sub.flip-up > .fcx-sub {
  top: auto; bottom: -6px;
}

/* Hide legacy absolute menu when global system owns it */
#ctx-menu.fetih-ctx-legacy { display: none !important; }

body.fetih-no-native-ctx, body.fetih-no-native-ctx * {
  -webkit-touch-callout: none;
}
